RedM Natives

_IS_HAT_BEING_PICKED_UP

Returns true while a hat is being picked up

Hash0x11CD066F54DA0133
Runtime nameIsHatBeingPickedUp
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _IS_HAT_BEING_PICKED_UP(Object hatObject);

Parameters

NameTypeDescription
hatObjectObject—

Returns BOOL

Description

alloc8or RDR3 NativeDB

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

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

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

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

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