PedClient

setPedDefaultComponentVariation

SET_PED_DEFAULT_COMPONENT_VARIATION0x45EEE61580806D63

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

SignatureJavaScript
setPedDefaultComponentVariation(ped: Ped): void
SignatureLua
setPedDefaultComponentVariation(ped: Ped)

Usage

JavaScript
setPedDefaultComponentVariation(ped);
Lua
setPedDefaultComponentVariation(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets Ped Default Clothes

Reference

Namespace
Ped PED
In the game
void SET_PED_DEFAULT_COMPONENT_VARIATION(Ped ped)
Hash
0x45EEE61580806D63

Open in the interactive natives reference