# PLAYER::_SET_PLAYER_CAN_PICKUP_HAT

- **Hash:** `0xACA45DDCEF6071C4`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `SetPlayerCanPickupHat`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_CAN_PICKUP_HAT

## Signature

```c
void _SET_PLAYER_CAN_PICKUP_HAT(Player player, BOOL enable);
```

## Parameters

- `player` (`Player`)
- `enable` (`BOOL`)

## Returns

`void`

## Description

*Source: 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

*Source: 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

```lua
SetPlayerCanPickupHat(player, enable)

-- always available, by hash
Citizen.InvokeNative(0xACA45DDCEF6071C4, player, enable)
```

### JavaScript

```js
SetPlayerCanPickupHat(player, enable);

// by hash
Citizen.invokeNative('0xACA45DDCEF6071C4', player, enable);
```

### C#

```csharp
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.*
