NetworkClient

isNetworkIdOwnedByParticipant

IS_NETWORK_ID_OWNED_BY_PARTICIPANT0xA1607996431332DF

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
netIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL IS_NETWORK_ID_OWNED_BY_PARTICIPANT(int netId)
Hash
0xA1607996431332DF
Formerly
_NETWORK_CAN_NETWORK_ID_BE_SEEN

Open in the interactive natives reference