NetworkClientNot in this build

networkConfirmGameRestart

_NETWORK_CONFIRM_GAME_RESTART0x0A141818CA2311AD

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

SignatureJavaScript
networkConfirmGameRestart(): void
SignatureLua
networkConfirmGameRestart()
⚠
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
networkConfirmGameRestart();
Lua
networkConfirmGameRestart()

Parameters

None.

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

If the restart reason is 4 (BE_RESTART_EF_DISABLED_WITH_BE), will cause the game to exit with exit code 622011. Otherwise exits with code 622010. Has no effect when a restart hasn't been requested (reason == 0 or reason > 6).

Note that this 'confirmation' itself does not restart the game, a call to quitGame or similar is required afterwards.

Reference

Namespace
Network NETWORK
In the game
void _NETWORK_CONFIRM_GAME_RESTART()
Hash
0x0A141818CA2311AD
Introduced
Game build 3323 legacy numbering

Open in the interactive natives reference