PedClient

getNumberOfPedPropDrawableVariations

GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS0x5FAF9754E789FB47

The 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.

SignatureJavaScript
getNumberOfPedPropDrawableVariations(ped: Ped, propId: number): number
SignatureLua
getNumberOfPedPropDrawableVariations(ped: Ped, propId: integer): integer

Usage

JavaScript
const result = getNumberOfPedPropDrawableVariations(ped, propId);
Lua
local result = getNumberOfPedPropDrawableVariations(ped, propId)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
propIdintnumberinteger

Returns

int JavaScript number, Lua integer

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_PROP_DRAWABLE_VARIATIONS(Ped ped, int propId)
Hash
0x5FAF9754E789FB47

Open in the interactive natives reference