PedClientChecked by LS:MP

getNumberOfPedDrawableVariations

GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS0x27561561732A7842

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

SignatureJavaScript
getNumberOfPedDrawableVariations(ped: Ped, componentId: number): number
SignatureLua
getNumberOfPedDrawableVariations(ped: Ped, componentId: integer): integer

Usage

JavaScript
const result = getNumberOfPedDrawableVariations(ped, componentId);
Lua
local result = getNumberOfPedDrawableVariations(ped, componentId)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
componentIdintnumberinteger

Returns

int JavaScript number, Lua integer

On 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

Open in the interactive natives reference