NetworkClient

networkIsPlayerActive

NETWORK_IS_PLAYER_ACTIVE0xB8DFD30D6973E135

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

SignatureJavaScript
networkIsPlayerActive(player: Player): boolean
SignatureLua
networkIsPlayerActive(player: Player): boolean

Usage

JavaScript
const result = networkIsPlayerActive(player);
Lua
local result = networkIsPlayerActive(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_PLAYER_ACTIVE(Player player)
Hash
0xB8DFD30D6973E135

Open in the interactive natives reference