NetworkClient

networkIsInSession

NETWORK_IS_IN_SESSION0xCA97246103B63917

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

SignatureJavaScript
networkIsInSession(): boolean
SignatureLua
networkIsInSession(): boolean

Usage

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

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_IN_SESSION()
Hash
0xCA97246103B63917

Open in the interactive natives reference