_GET_NUM_COMPONENT_CATEGORIES_IN_PED
Works similar to 0x90403E8107B60E81 (_GET_NUM_COMPONENTS_IN_PED) but is used to get category hashes instead
Hash
0xA622E66EEE92A08DRuntime name
GetNumComponentCategoriesInPedNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_NUM_COMPONENT_CATEGORIES_IN_PED(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns int
Description
Works similar to 0x90403E8107B60E81 (_GET_NUM_COMPONENTS_IN_PED) but is used to get category hashes instead
Usage
local retval = GetNumComponentCategoriesInPed(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xA622E66EEE92A08D, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetNumComponentCategoriesInPed(ped);
// by hash
const retval = Citizen.invokeNative('0xA622E66EEE92A08D', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.