PedClientChecked by LS:MP

getPedPaletteVariation

GET_PED_PALETTE_VARIATION0xE3DD5F2A84B42281

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

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

Usage

JavaScript
const result = getPedPaletteVariation(ped, componentId);
Lua
local result = getPedPaletteVariation(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_PED_PALETTE_VARIATION(Ped ped, int componentId)
Hash
0xE3DD5F2A84B42281

Open in the interactive natives reference