NetworkClient

networkIsPlayerAParticipant

NETWORK_IS_PLAYER_A_PARTICIPANT0x3CA58F6CB7CBD784

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_PLAYER_A_PARTICIPANT(Player player)
Hash
0x3CA58F6CB7CBD784

Open in the interactive natives reference