PedClientChecked by LS:MP

getPedDrawableVariation

GET_PED_DRAWABLE_VARIATION0x67F3780DD425D4FC

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

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

Usage

JavaScript
const result = getPedDrawableVariation(ped, componentId);
Lua
local result = getPedDrawableVariation(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.

Ids
0 - Head
1 - Beard
2 - Hair
3 - Torso
4 - Legs
5 - Hands
6 - Foot
7 - ------
8 - Accessories 1
9 - Accessories 2
10- Decals
11 - Auxiliary parts for torso

Reference

Namespace
Ped PED
In the game
int GET_PED_DRAWABLE_VARIATION(Ped ped, int componentId)
Hash
0x67F3780DD425D4FC

Open in the interactive natives reference