Net shoppingClientNot in this build

netGameserverFlagForSessionRestart

_NET_GAMESERVER_FLAG_FOR_SESSION_RESTART

The GTA V native _NET_GAMESERVER_FLAG_FOR_SESSION_RESTART of the NETSHOPPING namespace, as LS:MP client scripts call it: the global function netGameserverFlagForSessionRestart, in JavaScript and in Lua.

SignatureJavaScript
netGameserverFlagForSessionRestart(): boolean
SignatureLua
netGameserverFlagForSessionRestart(): boolean
⚠
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 = netGameserverFlagForSessionRestart();
Lua
local result = netGameserverFlagForSessionRestart()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Net shopping NETSHOPPING
In the game
BOOL _NET_GAMESERVER_FLAG_FOR_SESSION_RESTART()

Open in the interactive natives reference