NetworkClientNot in this build

networkGetGameRestartReasonMessageLabel

_NETWORK_GET_GAME_RESTART_REASON_MESSAGE_LABEL0x47B11D51FC50A259

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

SignatureJavaScript
networkGetGameRestartReasonMessageLabel(): string
SignatureLua
networkGetGameRestartReasonMessageLabel(): string
⚠
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 text = networkGetGameRestartReasonMessageLabel();
Lua
local text = networkGetGameRestartReasonMessageLabel()

Parameters

None.

Returns

string JavaScript string, Lua string

Notes

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

Returns the restart reason as a string, see networkGetGameRestartReason. Returns a null pointer when a restart hasn't been requested (reason == 0 or reason > 6).

Reference

Namespace
Network NETWORK
In the game
const char* _NETWORK_GET_GAME_RESTART_REASON_MESSAGE_LABEL()
Hash
0x47B11D51FC50A259
Introduced
Game build 3323 legacy numbering

Open in the interactive natives reference