NetworkClient

networkDoesEntityExistWithNetworkId

NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID0x18A47D074708FD68

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
netIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID(int netId)
Hash
0x18A47D074708FD68

Open in the interactive natives reference