The Lab
HUD native

IS_RADAR_PREFERENCE_SWITCHED_ON

returns BOOL0 paramsbuild 1207

Returns true if the radar is enabled in the player's settings.

Signature

C
BOOL IS_RADAR_PREFERENCE_SWITCHED_ON(); // 0x81E47F0EE1F2B21E b1207

Parameters

This native takes no parameters.

Facts

Facts about IS_RADAR_PREFERENCE_SWITCHED_ON
Name
IS_RADAR_PREFERENCE_SWITCHED_ON
Hash
0x81E47F0EE1F2B21E
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x81E47F0EE1F2B21E) -- IS_RADAR_PREFERENCE_SWITCHED_ON
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x81E47F0EE1F2B21E", // IS_RADAR_PREFERENCE_SWITCHED_ON
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x81E47F0EE1F2B21E); // IS_RADAR_PREFERENCE_SWITCHED_ON
All HUD natives

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