networkGetTunablesRegistrationFloat
_NETWORK_GET_TUNABLES_REGISTRATION_FLOAT0x367E5E33E7F0DD1AThe GTA V native _NETWORK_GET_TUNABLES_REGISTRATION_FLOAT of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetTunablesRegistrationFloat, in JavaScript and in Lua.
networkGetTunablesRegistrationFloat(
tunableName: Hash,
defaultValue: number
): numbernetworkGetTunablesRegistrationFloat(
tunableName: Hash,
defaultValue: number
): number⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
const value = networkGetTunablesRegistrationFloat(tunableName, defaultValue);Lua
local value = networkGetTunablesRegistrationFloat(tunableName, defaultValue)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
tunableName | Hash | number | integer |
defaultValue | float | number | number |
Returns
float JavaScript number, Lua numberNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Checks if the given tunable exists and returns its value. Otherwise returns defaultValue.
Possible tunable contexts must first be set up using networkSetTunablesRegistrationContexts.
Reference
- Namespace
- Network NETWORK
- In the game
float _NETWORK_GET_TUNABLES_REGISTRATION_FLOAT(Hash tunableName, float defaultValue)- Hash
0x367E5E33E7F0DD1A- Introduced
- Game build 3258 legacy numbering