_SET_PLAYER_CAN_PICKUP_HAT
Allows or prevents player from picking up hats.
Signature
void _SET_PLAYER_CAN_PICKUP_HAT(Player player, BOOL enable); // 0xACA45DDCEF6071C4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | enable | BOOL |
Facts
| 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.
Citizen.InvokeNative(0xACA45DDCEF6071C4, -- _SET_PLAYER_CAN_PICKUP_HAT
PlayerId(), -- Player player
false -- BOOL enable
)Citizen.invokeNative("0xACA45DDCEF6071C4", // _SET_PLAYER_CAN_PICKUP_HAT
PlayerId(), // Player player
false // BOOL enable
);Function.Call((Hash)0xACA45DDCEF6071C4, // _SET_PLAYER_CAN_PICKUP_HAT
API.PlayerId(), // Player player
false // BOOL enable
);Related PLAYER natives
- _SET_PLAYER_CAN_PICKUP_ABILITY
- _SET_PLAYER_CAN_MERCY_KILL
- _SET_PLAYER_HAT_ACCESS
- _SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME
- _SET_PLAYER_AIM_WEAPON
- _SET_PLAYER_DAMAGE_INFO_OVERRIDE
- _SET_PLAYER_DEAD_EYE_AURA_BY_HASH
- _SET_PLAYER_DEFENSE_MODIFIER
- _SET_PLAYER_DEFENSE_TYPE_MODIFIER
- _SET_PLAYER_EXPLOSIVE_WEAPON_DAMAGE_MODIFIER
- _SET_PLAYER_HAS_DISCOVERED_CHARACTER_NAME_MP
- _SET_PLAYER_HAS_DISCOVERED_CHARACTER_NAME_SP
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.