PedClientChecked by LS:MP

getNumberOfPedTextureVariations

GET_NUMBER_OF_PED_TEXTURE_VARIATIONS0x8F7156A3142A6BAD

The GTA V native GET_NUMBER_OF_PED_TEXTURE_VARIATIONS of the PED namespace, as LS:MP client scripts call it: the global function getNumberOfPedTextureVariations, in JavaScript and in Lua.

SignatureJavaScript
getNumberOfPedTextureVariations(
  ped: Ped,
  componentId: number,
  drawableId: number
): number
SignatureLua
getNumberOfPedTextureVariations(
  ped: Ped,
  componentId: integer,
  drawableId: integer
): integer

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
componentIdintnumberinteger
drawableIdintnumberinteger

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_TEXTURE_VARIATIONS(Ped ped, int componentId, int drawableId)
Hash
0x8F7156A3142A6BAD

Open in the interactive natives reference