# PED::REMOVE_SHOP_ITEM_FROM_PED_BY_CATEGORY

- **Hash:** `0xDF631E4BCE1B1FC4`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `RemoveShopItemFromPedByCategory`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/REMOVE_SHOP_ITEM_FROM_PED_BY_CATEGORY

## Signature

```c
void REMOVE_SHOP_ITEM_FROM_PED_BY_CATEGORY(Ped ped, Hash componentCategory, int p2, BOOL p3);
```

## Parameters

- `ped` (`Ped`)
- `componentCategory` (`Hash`)
- `p2` (`int`)
- `p3` (`BOOL`)

## Returns

`void`

## Description

Params: p2, p3 usually 0 in R* Scripts

## Usage

### Lua

```lua
RemoveShopItemFromPedByCategory(ped, componentCategory, p2, p3)

-- always available, by hash
Citizen.InvokeNative(0xDF631E4BCE1B1FC4, ped, componentCategory, p2, p3)
```

### JavaScript

```js
RemoveShopItemFromPedByCategory(ped, componentCategory, p2, p3);

// by hash
Citizen.invokeNative('0xDF631E4BCE1B1FC4', ped, componentCategory, p2, p3);
```

### C#

```csharp
Function.Call((Hash)0xDF631E4BCE1B1FC4, ped, componentCategory, p2, p3);
```

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

*Sources: alloc8or RDR3 NativeDB.*
