The Lab
NETWORK native

NETWORK_REQUEST_SESSION_SEAMLESS

returns BOOL3 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_REQUEST_SESSION_SEAMLESS(int flags, int seamlessType, Any* sessionRequestId); // 0x04019AE4956D4393 b1207

Parameters

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

Facts

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