The Lab
NETWORK native

NETWORK_AUTO_SESSION_SPLIT_SESSION

returns BOOL4 paramsbuild 1207

Splits the auto session, moving players into a new instance with the given limits and flags. Returns true on success.

Signature

C
BOOL NETWORK_AUTO_SESSION_SPLIT_SESSION(int playersToTake, int maxInstancePlayers, int sessionFlags, int bucketId); // 0xC223D299C670413D b1207

Parameters

#NameType
1playersToTakeint
2maxInstancePlayersint
3sessionFlagsint
4bucketIdint

Facts

Facts about NETWORK_AUTO_SESSION_SPLIT_SESSION
Name
NETWORK_AUTO_SESSION_SPLIT_SESSION
Hash
0xC223D299C670413D
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(0xC223D299C670413D, -- NETWORK_AUTO_SESSION_SPLIT_SESSION
  0, -- int playersToTake
  0, -- int maxInstancePlayers
  0, -- int sessionFlags
  0 -- int bucketId
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xC223D299C670413D", // NETWORK_AUTO_SESSION_SPLIT_SESSION
  0, // int playersToTake
  0, // int maxInstancePlayers
  0, // int sessionFlags
  0, // int bucketId
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xC223D299C670413D, // NETWORK_AUTO_SESSION_SPLIT_SESSION
  0, // int playersToTake
  0, // int maxInstancePlayers
  0, // int sessionFlags
  0 // int bucketId
);
All NETWORK natives

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