NetworkClient

networkGetActivityPlayerNum

NETWORK_GET_ACTIVITY_PLAYER_NUM0x73E2B500410DA5A2

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

SignatureJavaScript
networkGetActivityPlayerNum(p0: boolean): number
SignatureLua
networkGetActivityPlayerNum(p0: boolean): integer

Usage

JavaScript
const result = networkGetActivityPlayerNum(p0);
Lua
local result = networkGetActivityPlayerNum(p0)

Parameters

ParameterTypeJavaScriptLua
p0BOOLbooleanboolean

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int NETWORK_GET_ACTIVITY_PLAYER_NUM(BOOL p0)
Hash
0x73E2B500410DA5A2

Open in the interactive natives reference