NetworkClientNot in this build

networkGetGameRestartReason

_NETWORK_GET_GAME_RESTART_REASON0x7F7E8401F81CB65B

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

SignatureJavaScript
networkGetGameRestartReason(): number
SignatureLua
networkGetGameRestartReason(): 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 = networkGetGameRestartReason();
Lua
local result = networkGetGameRestartReason()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int _NETWORK_GET_GAME_RESTART_REASON()
Hash
0x7F7E8401F81CB65B
Introduced
Game build 3323 legacy numbering

Open in the interactive natives reference