RedM Natives

NETWORK_SESSION_IS_REQUEST_PENDING_TRANSITION

Hash0xCCF878D50F8AB10D
Runtime nameNetworkSessionIsRequestPendingTransition
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL NETWORK_SESSION_IS_REQUEST_PENDING_TRANSITION(Any* sessionRequestId);

Parameters

NameTypeDescription
sessionRequestIdAny*—

Returns BOOL

Usage

Lua
local retval, sessionRequestId = NetworkSessionIsRequestPendingTransition(sessionRequestId)

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

// by hash
const [retval, sessionRequestId] = Citizen.invokeNative('0xCCF878D50F8AB10D', Citizen.pointerValueIntInitialized(sessionRequestId), Citizen.returnResultAnyway());
C#
var sessionRequestId = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xCCF878D50F8AB10D, 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.