RedM Natives

_GET_ANIMAL_RARITY

ARL_COMMON, ARL_RARE, ARL_LEGENDARY, ARL_NUMRARITYLEVELS

Hash0xF8B48A361DC388AE
Runtime nameGetAnimalRarity
NamespaceFLOCK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_ANIMAL_RARITY(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns int

Description

enum eAnimalRarityLevel
{
	ARL_COMMON,
	ARL_RARE,
	ARL_LEGENDARY,
	ARL_NUMRARITYLEVELS
};

Usage

Lua
local retval = GetAnimalRarity(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xF8B48A361DC388AE, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetAnimalRarity(ped);

// by hash
const retval = Citizen.invokeNative('0xF8B48A361DC388AE', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xF8B48A361DC388AE, ped);
  • 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.