The Lab
NETWORK native

NETWORK_HAS_CONTROL_OF_NETWORK_ID

returns BOOL1 parambuild 1207

Returns true if the local machine has network control of the network id.

Signature

C
BOOL NETWORK_HAS_CONTROL_OF_NETWORK_ID(int netId); // 0x4D36070FE0215186 b1207

Parameters

#NameType
1netIdint

Facts

Facts about NETWORK_HAS_CONTROL_OF_NETWORK_ID
Name
NETWORK_HAS_CONTROL_OF_NETWORK_ID
Hash
0x4D36070FE0215186
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x4D36070FE0215186, -- NETWORK_HAS_CONTROL_OF_NETWORK_ID
  0 -- int netId
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x4D36070FE0215186", // NETWORK_HAS_CONTROL_OF_NETWORK_ID
  0, // int netId
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x4D36070FE0215186, // NETWORK_HAS_CONTROL_OF_NETWORK_ID
  0 // int netId
);
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.