NetworkClient

networkHasControlOfNetworkId

NETWORK_HAS_CONTROL_OF_NETWORK_ID0x4D36070FE0215186

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

SignatureJavaScript
networkHasControlOfNetworkId(netId: number): boolean
SignatureLua
networkHasControlOfNetworkId(netId: integer): boolean

Usage

JavaScript
const result = networkHasControlOfNetworkId(netId);
Lua
local result = networkHasControlOfNetworkId(netId)

Parameters

ParameterTypeJavaScriptLua
netIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_HAS_CONTROL_OF_NETWORK_ID(int netId)
Hash
0x4D36070FE0215186

Open in the interactive natives reference