The Lab
NETWORK native

NETWORK_SESSION_REQUEST_SESSION_COMPETITIVE

returns BOOL5 paramsbuild 1207

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

Signature

C
BOOL NETWORK_SESSION_REQUEST_SESSION_COMPETITIVE(int flags, int matchType, int userHash, int p3, Any* sessionRequestId); // 0x309BBEBEA8A3986C b1207

Parameters

#NameType
1flagsint
2matchTypeint
3userHashint
4p3int
5sessionRequestIdAny* (out pointer)

Facts

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