The Lab
PLAYER native

_SET_PLAYER_HAT_ACCESS

returns void3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Sets hat access permissions for player based on flag.

Signature

C
void _SET_PLAYER_HAT_ACCESS(Player player, int flag, BOOL enable); // 0xA0C683284DF027C7 b1207

Parameters

#NameType
1playerPlayer
2flagint
3enableBOOL

Facts

Facts about _SET_PLAYER_HAT_ACCESS
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.

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

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