The Lab
NETWORK native

NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT

returns void3 paramsbuild 1207

Registers the calling script as a network script with the given maximum participants and instance id.

Call it at the start of the script, before registering broadcast variables.

Signature

C
void NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT(int maxNumMissionParticipants, BOOL p1, int instanceId); // 0x1CA59E306ECB80A5 b1207

Parameters

#NameType
1maxNumMissionParticipantsint
2p1BOOL
3instanceIdint

Facts

Facts about NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT
Name
NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT
Hash
0x1CA59E306ECB80A5
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0x1CA59E306ECB80A5, -- NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT
  0, -- int maxNumMissionParticipants
  false, -- BOOL p1
  0 -- int instanceId
)
JavaScript
Citizen.invokeNative("0x1CA59E306ECB80A5", // NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT
  0, // int maxNumMissionParticipants
  false, // BOOL p1
  0 // int instanceId
);
C#
Function.Call((Hash)0x1CA59E306ECB80A5, // NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT
  0, // int maxNumMissionParticipants
  false, // BOOL p1
  0 // int instanceId
);
All NETWORK natives

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