# PED::_GET_NUM_COMPONENT_CATEGORIES_IN_PED

- **Hash:** `0xA622E66EEE92A08D`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetNumComponentCategoriesInPed`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/_GET_NUM_COMPONENT_CATEGORIES_IN_PED

## Signature

```c
int _GET_NUM_COMPONENT_CATEGORIES_IN_PED(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`int`

## Description

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

## Usage

### Lua

```lua
local retval = GetNumComponentCategoriesInPed(ped)

-- always available, by hash
local retval = Citizen.InvokeNative(0xA622E66EEE92A08D, ped, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetNumComponentCategoriesInPed(ped);

// by hash
const retval = Citizen.invokeNative('0xA622E66EEE92A08D', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
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.*
