RedM Natives

NETWORK_REQUEST_SESSION_SEAMLESS

SEAMLESS_TYPE_NORMAL, SEAMLESS_TYPE_PVE, SEAMLESS_TYPE_DEV, SEAMLESS_TYPE_NO_SEAMLESS

Hash0x04019AE4956D4393
Runtime nameNetworkRequestSessionSeamless
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL NETWORK_REQUEST_SESSION_SEAMLESS(int flags, int seamlessType, Any* sessionRequestId);

Parameters

NameTypeDescription
flagsint—
seamlessTypeint—
sessionRequestIdAny*—

Returns BOOL

Description

flags:
enum eSessionRequestOptionFlags
{
	SESSION_REQUEST_OPTION_FLAG_INCLUDE_GANG_MEMBERS = (1 << 1),
	SESSION_REQUEST_OPTION_FLAG_LEADER_KEEPS_GANG = (1 << 7),
};
seamlessType:
enum eSeamlessType
{
	SEAMLESS_TYPE_NORMAL,
	SEAMLESS_TYPE_PVE,
	SEAMLESS_TYPE_DEV,
	SEAMLESS_TYPE_NO_SEAMLESS
};

Usage

Lua
local retval, sessionRequestId = NetworkRequestSessionSeamless(flags, seamlessType, sessionRequestId)

-- always works, by hash
local retval, sessionRequestId = Citizen.InvokeNative(0x04019AE4956D4393, flags, seamlessType, Citizen.PointerValueIntInitialized(sessionRequestId), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, sessionRequestId] = NetworkRequestSessionSeamless(flags, seamlessType, sessionRequestId);

// by hash
const [retval, sessionRequestId] = Citizen.invokeNative('0x04019AE4956D4393', flags, seamlessType, Citizen.pointerValueIntInitialized(sessionRequestId), Citizen.returnResultAnyway());
C#
var sessionRequestId = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x04019AE4956D4393, flags, seamlessType, sessionRequestId);
// sessionRequestId.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.