The Lab
NETWORK native

NETWORK_DOES_TUNABLE_EXIST

returns BOOL2 paramsbuild 1207

Returns true if the tunable tunableName exists in the context tunableContext.

Signature

C
BOOL NETWORK_DOES_TUNABLE_EXIST(Hash tunableContext, Hash tunableName); // 0x85E5F8B9B898B20A b1207

Parameters

#NameType
1tunableContextHash
2tunableNameHash

Facts

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

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