# PED::_UPDATE_SHOP_ITEM_WEARABLE_STATE

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

## Signature

```c
void _UPDATE_SHOP_ITEM_WEARABLE_STATE(Ped ped, Hash componentHash, Hash wearableState, int p3, BOOL isMp, int p5);
```

## Parameters

- `ped` (`Ped`)
- `componentHash` (`Hash`)
- `wearableState` (`Hash`)
- `p3` (`int`)
- `isMp` (`BOOL`)
- `p5` (`int`)

## Returns

`void`

## Description

Possible way to pull up / down bandana for male and female models: https://imgur.com/a/Zr4pjze
Params: p3 = 0, p4 = true, p5 = 1
wearableState: https://github.com/Jump-On-Studios/RedM-jo_libs/blob/main/jo_libs/modules/component/g_client.lua#L138

## Usage

### Lua

```lua
UpdateShopItemWearableState(ped, componentHash, wearableState, p3, isMp, p5)

-- always available, by hash
Citizen.InvokeNative(0x66B957AAC2EAAEAB, ped, componentHash, wearableState, p3, isMp, p5)
```

### JavaScript

```js
UpdateShopItemWearableState(ped, componentHash, wearableState, p3, isMp, p5);

// by hash
Citizen.invokeNative('0x66B957AAC2EAAEAB', ped, componentHash, wearableState, p3, isMp, p5);
```

### C#

```csharp
Function.Call((Hash)0x66B957AAC2EAAEAB, ped, componentHash, wearableState, p3, isMp, p5);
```

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