networkGetTunablesRegistrationInt
_NETWORK_GET_TUNABLES_REGISTRATION_INT0x0D94071E55F4C9CEThe GTA V native _NETWORK_GET_TUNABLES_REGISTRATION_INT of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetTunablesRegistrationInt, in JavaScript and in Lua.
networkGetTunablesRegistrationInt(
tunableName: Hash,
defaultValue: number
): numbernetworkGetTunablesRegistrationInt(
tunableName: Hash,
defaultValue: integer
): integer⚠
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 result = networkGetTunablesRegistrationInt(tunableName, defaultValue);Lua
local result = networkGetTunablesRegistrationInt(tunableName, defaultValue)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
tunableName | Hash | number | integer |
defaultValue | int | number | integer |
Returns
int JavaScript number, Lua integerNotes
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
int _NETWORK_GET_TUNABLES_REGISTRATION_INT(Hash tunableName, int defaultValue)- Hash
0x0D94071E55F4C9CE- Introduced
- Game build 3258 legacy numbering