RedM Natives

SET_PED_RANDOM_COMPONENT_VARIATION

Hash0xC8A9481A01E63C28
Runtime nameSetPedRandomComponentVariation
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC8A9481A01E63C28

Signature

void SET_PED_RANDOM_COMPONENT_VARIATION(Ped ped, int p1);

Parameters

NameTypeDescription
pedPed—
p1int—

Returns void

Usage

Lua
SetPedRandomComponentVariation(ped, p1)

-- always works, by hash
Citizen.InvokeNative(0xC8A9481A01E63C28, ped, p1)
JavaScript and C#
JavaScript
SetPedRandomComponentVariation(ped, p1);

// by hash
Citizen.invokeNative('0xC8A9481A01E63C28', ped, p1);
C#
Function.Call((Hash)0xC8A9481A01E63C28, ped, p1);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.