RedM Natives

_SET_PLAYER_CAN_PICKUP_HAT

Enables or disables the "Pick Up" prompt for a hat on the ground for the specified player.

Hash0xACA45DDCEF6071C4
Runtime nameSetPlayerCanPickupHat
NamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PLAYER_CAN_PICKUP_HAT(Player player, BOOL enable);

Parameters

NameTypeDescription
playerPlayer—
enableBOOL—

Returns void

Description

alloc8or RDR3 NativeDB

Enables or disables the "Pick Up" prompt for a hat on the ground for the specified player. When set to true, the player will see a prompt to pick up the hat if they are near it.
Video: https://imgur.com/gallery/0xaca45ddcef6071c4-dzlnm8Z

VORPCORE RDR3natives

Enables or disables the Pick Up prompt for a hat on the ground for the specified player. When set to true, the player will see a prompt to pick up the hat if they are near it.

Usage

Lua
SetPlayerCanPickupHat(player, enable)

-- always works, by hash
Citizen.InvokeNative(0xACA45DDCEF6071C4, player, enable)
JavaScript and C#
JavaScript
SetPlayerCanPickupHat(player, enable);

// by hash
Citizen.invokeNative('0xACA45DDCEF6071C4', player, enable);
C#
Function.Call((Hash)0xACA45DDCEF6071C4, player, enable);
  • 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.