# PED::_GET_SHOP_ITEM_COMPONENT_CATEGORY

- **Hash:** `0x5FF9A878C3D115B8`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetShopItemComponentCategory`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/_GET_SHOP_ITEM_COMPONENT_CATEGORY

## Signature

```c
Hash _GET_SHOP_ITEM_COMPONENT_CATEGORY(Hash componentHash, int metapedType, BOOL isMP);
```

## Parameters

- `componentHash` (`Hash`)
- `metapedType` (`int`)
- `isMP` (`BOOL`)

## Returns

`Hash`

## Description

*Source: femga rdr3_discoveries*

```
0x5FF9A878C3D115B8     (by Disquse)

Use this to get the category of a ped component.
if your player is mp_male replace "VALUE" with false, and if its mp_female replace it with true.
int category = Function.Call<int>((Hash)0x5FF9A878C3D115B8, hash, VALUE, true);
```

## Usage

### Lua

```lua
local retval = GetShopItemComponentCategory(componentHash, metapedType, isMP)

-- always available, by hash
local retval = Citizen.InvokeNative(0x5FF9A878C3D115B8, componentHash, metapedType, isMP, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetShopItemComponentCategory(componentHash, metapedType, isMP);

// by hash
const retval = Citizen.invokeNative('0x5FF9A878C3D115B8', componentHash, metapedType, isMP, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x5FF9A878C3D115B8, componentHash, metapedType, isMP);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- 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.

## Related enums

- [eMetaPedType](https://natives.borderlinerp.com/enums/eMetaPedType.md) — 4 values

*Sources: alloc8or RDR3 NativeDB, femga rdr3_discoveries.*
