RedM Natives

NETWORK_HAS_CONTROL_OF_NETWORK_ID

Hash0x4D36070FE0215186
Runtime nameNetworkHasControlOfNetworkId
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4D36070FE0215186

Signature

BOOL NETWORK_HAS_CONTROL_OF_NETWORK_ID(int netId);

Parameters

NameTypeDescription
netIdint—

Returns BOOL

Usage

Lua
local retval = NetworkHasControlOfNetworkId(netId)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4D36070FE0215186, netId, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = NetworkHasControlOfNetworkId(netId);

// by hash
const retval = Citizen.invokeNative('0x4D36070FE0215186', netId, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x4D36070FE0215186, netId);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.