NetworkClientNot in this build

networkGetTunablesRegistrationFloat

_NETWORK_GET_TUNABLES_REGISTRATION_FLOAT0x367E5E33E7F0DD1A

The 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.

SignatureJavaScript
networkGetTunablesRegistrationFloat(
  tunableName: Hash,
  defaultValue: number
): number
SignatureLua
networkGetTunablesRegistrationFloat(
  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

ParameterTypeJavaScriptLua
tunableNameHashnumberinteger
defaultValuefloatnumbernumber

Returns

float JavaScript number, Lua number

Notes

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

Open in the interactive natives reference