getNumberOfPedDrawableVariations
GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS0x27561561732A7842The GTA V native GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS of the PED namespace, as LS:MP client scripts call it: the global function getNumberOfPedDrawableVariations, in JavaScript and in Lua.
getNumberOfPedDrawableVariations(ped: Ped, componentId: number): numbergetNumberOfPedDrawableVariations(ped: Ped, componentId: integer): integerUsage
JavaScript
const result = getNumberOfPedDrawableVariations(ped, componentId);Lua
local result = getNumberOfPedDrawableVariations(ped, componentId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
componentId | int | number | integer |
Returns
int JavaScript number, Lua integerOn LS:MP
ℹ
Checked by LS:MP
componentId must be between 0 and 11. Otherwise the call is ignored and returns 0: nothing reaches the game, and no error is raised.
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
int GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS(Ped ped, int componentId)- Hash
0x27561561732A7842