# PED::_IS_META_PED_USING_COMPONENT

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

## Signature

```c
BOOL _IS_META_PED_USING_COMPONENT(Ped ped, Hash component);
```

## Parameters

- `ped` (`Ped`)
- `component` (`Hash`)

## Returns

`BOOL`

## Description

*Source: VORPCORE RDR3natives*

checks if a ped is using a component category
see component category hashes here https://raw.githubusercontent.com/femga/rdr3_discoveries/refs/heads/master/clothes/cloth_hash_names.lua
Old name: _IS_META_PED_USING_COMPONENT

*Source: femga rdr3_discoveries*

```
    //0xFB4891BD7578CDC1   -- _IS_PED_COMPONENT_EQUIPPED(ped_id,category_id)
Citizen.InvokeNative(0xFB4891BD7578CDC1 ,PlayerPedId(), 0x9925C067)  -- for example, check if hat is on.
    -------------------------------------------------------------------
```

## Usage

### Lua

```lua
local retval = IsMetaPedUsingComponent(ped, component)

-- always available, by hash
local retval = Citizen.InvokeNative(0xFB4891BD7578CDC1, ped, component, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsMetaPedUsingComponent(ped, component);

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

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xFB4891BD7578CDC1, ped, component);
```

- 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.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives, femga rdr3_discoveries.*
