RedM Natives

_IS_HAT_BEING_PICKED_UP_2

Returns true while a hat is being picked up.

Hash0x4ECCC2815CA79AE2
Runtime nameIsHatBeingPickedUp_2
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_IS_CARRIABLE_HAT_PICKUP_REQUEST_ACTIVE

Signature

BOOL _IS_HAT_BEING_PICKED_UP_2(Object hatObject);

Parameters

NameTypeDescription
hatObjectObject—

Returns BOOL

Description

alloc8or RDR3 NativeDB

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

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
local retval = IsHatBeingPickedUp_2(hatObject)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4ECCC2815CA79AE2, hatObject, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsHatBeingPickedUp_2(hatObject);

// by hash
const retval = Citizen.invokeNative('0x4ECCC2815CA79AE2', hatObject, Citizen.returnResultAnyway());
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.