NetworkClient

networkIsNetworkIdRemotelyControlled

NETWORK_IS_NETWORK_ID_REMOTELY_CONTROLLED0x7242F8B741CE1086

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
netIdintnumberinteger

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 specified network id is controlled by someone else.

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_NETWORK_ID_REMOTELY_CONTROLLED(int netId)
Hash
0x7242F8B741CE1086
Introduced
Game build 678 legacy numbering
Formerly
_NETWORK_IS_NETWORK_ID_A_CLONE

Open in the interactive natives reference