NetworkClient

networkGetRandomInt

NETWORK_GET_RANDOM_INT0x599E4FA1F87EB5FF

The GTA V native NETWORK_GET_RANDOM_INT of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetRandomInt, in JavaScript and in Lua.

SignatureJavaScript
networkGetRandomInt(): number
SignatureLua
networkGetRandomInt(): integer

Usage

JavaScript
const result = networkGetRandomInt();
Lua
local result = networkGetRandomInt()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int NETWORK_GET_RANDOM_INT()
Hash
0x599E4FA1F87EB5FF

Open in the interactive natives reference