The Lab
PLAYER native

_SET_PLAYER_CAN_PICKUP_HAT

returns void2 paramsbuild 1207

Allows or prevents player from picking up hats.

Signature

C
void _SET_PLAYER_CAN_PICKUP_HAT(Player player, BOOL enable); // 0xACA45DDCEF6071C4 b1207

Parameters

#NameType
1playerPlayer
2enableBOOL

Facts

Facts about _SET_PLAYER_CAN_PICKUP_HAT
Name
_SET_PLAYER_CAN_PICKUP_HAT
Hash
0xACA45DDCEF6071C4
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xACA45DDCEF6071C4, -- _SET_PLAYER_CAN_PICKUP_HAT
  PlayerId(), -- Player player
  false -- BOOL enable
)
JavaScript
Citizen.invokeNative("0xACA45DDCEF6071C4", // _SET_PLAYER_CAN_PICKUP_HAT
  PlayerId(), // Player player
  false // BOOL enable
);
C#
Function.Call((Hash)0xACA45DDCEF6071C4, // _SET_PLAYER_CAN_PICKUP_HAT
  API.PlayerId(), // Player player
  false // BOOL enable
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.