getNumberOfPedPropDrawableVariations
GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS0x5FAF9754E789FB47The GTA V native GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS of the PED namespace, as LS:MP client scripts call it: the global function getNumberOfPedPropDrawableVariations, in JavaScript and in Lua.
getNumberOfPedPropDrawableVariations(ped: Ped, propId: number): numbergetNumberOfPedPropDrawableVariations(ped: Ped, propId: integer): integerUsage
JavaScript
const result = getNumberOfPedPropDrawableVariations(ped, propId);Lua
local result = getNumberOfPedPropDrawableVariations(ped, propId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
propId | int | number | integer |
Returns
int JavaScript number, Lua integerNotes
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
int GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS(Ped ped, int propId)- Hash
0x5FAF9754E789FB47