_SET_PED_VARIATION_PRESET
Sets a predefined variation preset for the ped's appearance.
Hash
0xFFA1594703ED27CARuntime name
SetPedVariationPresetNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_SET_PED_OUTFIT_PRESETSignature
void _SET_PED_VARIATION_PRESET(Ped ped, int variationIndex);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
variationIndex | int | — |
Returns void
Description
Sets a predefined variation preset for the ped's appearance.
Works on ambient/population peds, mp_male, mp_female, and animals. Does not work on story characters such as Dutch, Sadie, or Arthur; use _EQUIP_META_PED_OUTFIT_PRESET for those.
doesnt seem to work on story characters possibly need to uese the metaped natives for those
Usage
SetPedVariationPreset(ped, variationIndex)
-- always works, by hash
Citizen.InvokeNative(0xFFA1594703ED27CA, ped, variationIndex)JavaScript and C#
SetPedVariationPreset(ped, variationIndex);
// by hash
Citizen.invokeNative('0xFFA1594703ED27CA', ped, variationIndex);Function.Call((Hash)0xFFA1594703ED27CA, ped, variationIndex);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.