The Lab
NETWORK native

NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH

returns BOOL3 paramsbuild 1207

Returns the boolean tunable value, or defaultValue if the tunable does not exist.

Signature

C
BOOL NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH(Hash tunableContext, Hash tunableName, BOOL defaultValue); // 0xB2AD5D29A99D4B26 b1207

Parameters

#NameType
1tunableContextHash
2tunableNameHash
3defaultValueBOOL

Facts

Facts about NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH
Name
NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH
Hash
0xB2AD5D29A99D4B26
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(0xB2AD5D29A99D4B26, -- NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH
  GetHashKey("name"), -- Hash tunableContext
  GetHashKey("name"), -- Hash tunableName
  false -- BOOL defaultValue
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xB2AD5D29A99D4B26", // NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH
  GetHashKey("name"), // Hash tunableContext
  GetHashKey("name"), // Hash tunableName
  false, // BOOL defaultValue
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xB2AD5D29A99D4B26, // NETWORK_TRY_ACCESS_TUNABLE_BOOL_HASH
  (uint)API.GetHashKey("name"), // Hash tunableContext
  (uint)API.GetHashKey("name"), // Hash tunableName
  false // BOOL defaultValue
);
All NETWORK natives

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