PlayerClient

isPlayerOnline

IS_PLAYER_ONLINE0xF25D331DC2627BBC

The GTA V native IS_PLAYER_ONLINE of the PLAYER namespace, as LS:MP client scripts call it: the global function isPlayerOnline, in JavaScript and in Lua.

SignatureJavaScript
isPlayerOnline(): boolean
SignatureLua
isPlayerOnline(): boolean

Usage

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

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.

Returns TRUE if the game is in online mode and FALSE if in offline mode.

This is an alias for networkIsSignedOnline.

Reference

Namespace
Player PLAYER
In the game
BOOL IS_PLAYER_ONLINE()
Hash
0xF25D331DC2627BBC

Open in the interactive natives reference