# TASK::_IS_HAT_BEING_PICKED_UP

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

## Signature

```c
BOOL _IS_HAT_BEING_PICKED_UP(Object hatObject);
```

## Parameters

- `hatObject` (`Object`)

## Returns

`BOOL`

## Description

*Source: alloc8or RDR3 NativeDB*

Returns true while a hat is being picked up
_IS_A* - _IS_D*

*Source: VORPCORE RDR3natives*

new name _IS_CARRIABLE_HAT_PICKUP_AVAILABLE, Checks if a carriable hat object on the ground can currently be picked up

## Usage

### Lua

```lua
local retval = IsHatBeingPickedUp(hatObject)

-- always available, by hash
local retval = Citizen.InvokeNative(0x11CD066F54DA0133, hatObject, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsHatBeingPickedUp(hatObject);

// by hash
const retval = Citizen.invokeNative('0x11CD066F54DA0133', hatObject, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x11CD066F54DA0133, hatObject);
```

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