# TASK::_IS_HAT_BEING_PICKED_UP_2

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

## Signature

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

## Parameters

- `hatObject` (`Object`)

## Returns

`BOOL`

## Description

*Source: alloc8or RDR3 NativeDB*

Returns true while a hat is being picked up. Similar to 0x11CD066F54DA0133
_IS_A* - _IS_D*

*Source: VORPCORE RDR3natives*

old name _IS_HAT_BEING_PICKED_UP_2
Returns whether a carriable hat equip request is currently active Usually becomes true right after `_REQUEST_CARRIABLE_HAT_EQUIP_TO_PED` is called

## Usage

### Lua

```lua
local retval = IsHatBeingPickedUp_2(hatObject)

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

### JavaScript

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

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

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x4ECCC2815CA79AE2, 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.*
