_GET_ANIMAL_RARITY
ARL_COMMON, ARL_RARE, ARL_LEGENDARY, ARL_NUMRARITYLEVELS
Hash
0xF8B48A361DC388AERuntime name
GetAnimalRarityNamespaceFLOCK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_ANIMAL_RARITY(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns int
Description
enum eAnimalRarityLevel
{
ARL_COMMON,
ARL_RARE,
ARL_LEGENDARY,
ARL_NUMRARITYLEVELS
};Usage
local retval = GetAnimalRarity(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xF8B48A361DC388AE, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetAnimalRarity(ped);
// by hash
const retval = Citizen.invokeNative('0xF8B48A361DC388AE', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.