setPedRandomComponentVariation
SET_PED_RANDOM_COMPONENT_VARIATION0xC8A9481A01E63C28The GTA V native SET_PED_RANDOM_COMPONENT_VARIATION of the PED namespace, as LS:MP client scripts call it: the global function setPedRandomComponentVariation, in JavaScript and in Lua.
setPedRandomComponentVariation(ped: Ped, p1: number): voidsetPedRandomComponentVariation(ped: Ped, p1: integer)Usage
JavaScript
setPedRandomComponentVariation(ped, p1);Lua
setPedRandomComponentVariation(ped, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
p1 | int | number | integer |
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.
p1 is always 0 in R* scripts.
List of component/props ID
gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_RANDOM_COMPONENT_VARIATION(Ped ped, int p1)- Hash
0xC8A9481A01E63C28