The Lab
NETWORK native

NETWORK_SESSION_REQUEST_SESSION_SEAMLESS

returns BOOL4 paramsbuild 1207

Requests a seamless session with the given flags and type, writing the request id to sessionRequestId. Returns true if the request started.

Signature

C
BOOL NETWORK_SESSION_REQUEST_SESSION_SEAMLESS(int flags, int seamlessType, int userHash, Any* sessionRequestId); // 0x2989E131FDE37E97 b1207

Parameters

#NameType
1flagsint
2seamlessTypeint
3userHashint
4sessionRequestIdAny* (out pointer)

Facts

Facts about NETWORK_SESSION_REQUEST_SESSION_SEAMLESS
Name
NETWORK_SESSION_REQUEST_SESSION_SEAMLESS
Hash
0x2989E131FDE37E97
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, sessionRequestId = Citizen.InvokeNative(0x2989E131FDE37E97, -- NETWORK_SESSION_REQUEST_SESSION_SEAMLESS
  0, -- int flags
  0, -- int seamlessType
  0, -- int userHash
  Citizen.PointerValueInt(), -- Any* sessionRequestId
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, sessionRequestId] = Citizen.invokeNative("0x2989E131FDE37E97", // NETWORK_SESSION_REQUEST_SESSION_SEAMLESS
  0, // int flags
  0, // int seamlessType
  0, // int userHash
  Citizen.pointerValueInt(), // Any* sessionRequestId
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var sessionRequestIdArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x2989E131FDE37E97, // NETWORK_SESSION_REQUEST_SESSION_SEAMLESS
  0, // int flags
  0, // int seamlessType
  0, // int userHash
  sessionRequestIdArg // Any* sessionRequestId
);
int sessionRequestId = sessionRequestIdArg.GetResult<int>();
All NETWORK natives

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