RedM Natives

_GET_NUM_COMPONENT_CATEGORIES_IN_PED

Works similar to 0x90403E8107B60E81 (_GET_NUM_COMPONENTS_IN_PED) but is used to get category hashes instead

Hash0xA622E66EEE92A08D
Runtime nameGetNumComponentCategoriesInPed
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_NUM_COMPONENT_CATEGORIES_IN_PED(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns int

Description

Works similar to 0x90403E8107B60E81 (_GET_NUM_COMPONENTS_IN_PED) but is used to get category hashes instead

Usage

Lua
local retval = GetNumComponentCategoriesInPed(ped)

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

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

Sources

alloc8or RDR3 NativeDB

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