_SET_PLAYER_HAT_ACCESS
Based on its name and signature, here is our best reading:
Sets hat access permissions for player based on flag.
Signature
void _SET_PLAYER_HAT_ACCESS(Player player, int flag, BOOL enable); // 0xA0C683284DF027C7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | flag | int |
| 3 | enable | BOOL |
Facts
| Name | _SET_PLAYER_HAT_ACCESS |
|---|---|
| Hash | 0xA0C683284DF027C7 |
| 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(0xA0C683284DF027C7, -- _SET_PLAYER_HAT_ACCESS
PlayerId(), -- Player player
0, -- int flag
false -- BOOL enable
)Citizen.invokeNative("0xA0C683284DF027C7", // _SET_PLAYER_HAT_ACCESS
PlayerId(), // Player player
0, // int flag
false // BOOL enable
);Function.Call((Hash)0xA0C683284DF027C7, // _SET_PLAYER_HAT_ACCESS
API.PlayerId(), // Player player
0, // int flag
false // BOOL enable
);Related PLAYER natives
- _SET_PLAYER_CAN_PICKUP_HAT
- _SET_PLAYER_HAS_DISCOVERED_CHARACTER_NAME_MP
- _SET_PLAYER_HAS_DISCOVERED_CHARACTER_NAME_SP
- _SET_PLAYER_HEALTH_RECHARGE_TIME_MODIFIER
- _SET_PLAYER_HUNTING_WAGON
- _SET_PLAYER_AIM_WEAPON
- _SET_PLAYER_CAN_MERCY_KILL
- _SET_PLAYER_CAN_PICKUP_ABILITY
- _SET_PLAYER_COOPERATE_PROMPT_THIS_FRAME
- _SET_PLAYER_DAMAGE_INFO_OVERRIDE
- _SET_PLAYER_DEAD_EYE_AURA_BY_HASH
- _SET_PLAYER_DEFENSE_MODIFIER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.