NetworkClient

networkIsSessionStarted

NETWORK_IS_SESSION_STARTED0x9DE624D2FC4B603F

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

SignatureJavaScript
networkIsSessionStarted(): boolean
SignatureLua
networkIsSessionStarted(): boolean

Usage

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

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

This checks if player is playing on gta online or not.

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_SESSION_STARTED()
Hash
0x9DE624D2FC4B603F

Open in the interactive natives reference