NetworkClient

networkGetGameMode

NETWORK_GET_GAME_MODE0x4C9034162368E206

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

SignatureJavaScript
networkGetGameMode(): number
SignatureLua
networkGetGameMode(): integer

Usage

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

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int NETWORK_GET_GAME_MODE()
Hash
0x4C9034162368E206
Introduced
Game build 2060 legacy numbering

Open in the interactive natives reference