RedM Natives

_NETWORK_SESSION_REQUEST_SESSION_NOMINATED

Hash0x4F4672457FF597D1
Runtime nameNetworkSessionRequestSessionNominated
NamespaceNETWORK
SideClient
NameCommunity guess
Docs
Since build1436

Signature

BOOL _NETWORK_SESSION_REQUEST_SESSION_NOMINATED(int flags, int userHash, int p2, Any* sessionRequestId);

Parameters

NameTypeDescription
flagsint—
userHashint—
p2int—
sessionRequestIdAny*—

Returns BOOL

Usage

Lua
local retval, sessionRequestId = NetworkSessionRequestSessionNominated(flags, userHash, p2, sessionRequestId)

-- always works, by hash
local retval, sessionRequestId = Citizen.InvokeNative(0x4F4672457FF597D1, flags, userHash, p2, Citizen.PointerValueIntInitialized(sessionRequestId), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, sessionRequestId] = NetworkSessionRequestSessionNominated(flags, userHash, p2, sessionRequestId);

// by hash
const [retval, sessionRequestId] = Citizen.invokeNative('0x4F4672457FF597D1', flags, userHash, p2, Citizen.pointerValueIntInitialized(sessionRequestId), Citizen.returnResultAnyway());
C#
var sessionRequestId = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x4F4672457FF597D1, flags, userHash, p2, 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.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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