The Lab
NETWORK native

NETWORK_TRY_ACCESS_TUNABLE_FLOAT_HASH

returns float3 paramsbuild 1207

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

Signature

C
float NETWORK_TRY_ACCESS_TUNABLE_FLOAT_HASH(Hash tunableContext, Hash tunableName, float defaultValue); // 0xA18393089C05E49C b1207

Parameters

#NameType
1tunableContextHash
2tunableNameHash
3defaultValuefloat

Facts

Facts about NETWORK_TRY_ACCESS_TUNABLE_FLOAT_HASH
Name
NETWORK_TRY_ACCESS_TUNABLE_FLOAT_HASH
Hash
0xA18393089C05E49C
Namespace
Returns
float
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(0xA18393089C05E49C, -- NETWORK_TRY_ACCESS_TUNABLE_FLOAT_HASH
  GetHashKey("name"), -- Hash tunableContext
  GetHashKey("name"), -- Hash tunableName
  0.0, -- float defaultValue
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xA18393089C05E49C", // NETWORK_TRY_ACCESS_TUNABLE_FLOAT_HASH
  GetHashKey("name"), // Hash tunableContext
  GetHashKey("name"), // Hash tunableName
  0.0, // float defaultValue
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xA18393089C05E49C, // NETWORK_TRY_ACCESS_TUNABLE_FLOAT_HASH
  (uint)API.GetHashKey("name"), // Hash tunableContext
  (uint)API.GetHashKey("name"), // Hash tunableName
  0.0f // float defaultValue
);
All NETWORK natives

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