MiscClientNot in this build

isSessionInitialized

IS_SESSION_INITIALIZED

The GTA V native IS_SESSION_INITIALIZED of the MISC namespace, as LS:MP client scripts call it: the global function isSessionInitialized, in JavaScript and in Lua.

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

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Misc MISC
In the game
BOOL IS_SESSION_INITIALIZED()

Open in the interactive natives reference