RedM Natives

_SET_PED_VARIATION_PRESET

Sets a predefined variation preset for the ped's appearance.

Hash0xFFA1594703ED27CA
Runtime nameSetPedVariationPreset
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_SET_PED_OUTFIT_PRESET

Signature

void _SET_PED_VARIATION_PRESET(Ped ped, int variationIndex);

Parameters

NameTypeDescription
pedPed—
variationIndexint—

Returns void

Description

alloc8or RDR3 NativeDB

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.

VORPCORE RDR3natives

doesnt seem to work on story characters possibly need to uese the metaped natives for those

Usage

Lua
SetPedVariationPreset(ped, variationIndex)

-- always works, by hash
Citizen.InvokeNative(0xFFA1594703ED27CA, ped, variationIndex)
JavaScript and C#
JavaScript
SetPedVariationPreset(ped, variationIndex);

// by hash
Citizen.invokeNative('0xFFA1594703ED27CA', ped, variationIndex);
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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