setPedPropIndex
SET_PED_PROP_INDEX0x93376B65A266EB5FThe GTA V native SET_PED_PROP_INDEX of the PED namespace, as LS:MP client scripts call it: the global function setPedPropIndex, in JavaScript and in Lua.
setPedPropIndex(
ped: Ped,
componentId: number,
drawableId: number,
TextureId: number,
attach: boolean,
p5: any
): voidsetPedPropIndex(
ped: Ped,
componentId: integer,
drawableId: integer,
TextureId: integer,
attach: boolean,
p5: any
)Usage
JavaScript
setPedPropIndex(ped, componentId, drawableId, TextureId, attach, p5);Lua
setPedPropIndex(ped, componentId, drawableId, TextureId, attach, p5)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
componentId | int | number | integer |
drawableId | int | number | integer |
TextureId | int | number | integer |
attach | BOOL | boolean | boolean |
p5 | Any | any | any |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
List of component/props ID
gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_PROP_INDEX(Ped ped, int componentId, int drawableId, int TextureId, BOOL attach, Any p5)- Hash
0x93376B65A266EB5F