NetworkClient

networkDoesNetworkIdExist

NETWORK_DOES_NETWORK_ID_EXIST0x38CE16C96BD11344

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
netIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_DOES_NETWORK_ID_EXIST(int netId)
Hash
0x38CE16C96BD11344

Open in the interactive natives reference