RedM Natives

_SET_ANIMAL_RARITY

Hash0x8B6F0F59B1B99801
Runtime nameSetAnimalRarity
NamespaceFLOCK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_ANIMAL_RARITY(Ped ped, int rarityLevel);

Parameters

NameTypeDescription
pedPed—
rarityLevelint—

Returns void

Description

rarityLevel: see _GET_ANIMAL_RARITY

Usage

Lua
SetAnimalRarity(ped, rarityLevel)

-- always works, by hash
Citizen.InvokeNative(0x8B6F0F59B1B99801, ped, rarityLevel)
JavaScript and C#
JavaScript
SetAnimalRarity(ped, rarityLevel);

// by hash
Citizen.invokeNative('0x8B6F0F59B1B99801', ped, rarityLevel);
C#
Function.Call((Hash)0x8B6F0F59B1B99801, ped, rarityLevel);
  • 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.

See also

Sources

alloc8or RDR3 NativeDB

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