RedM Natives

NETWORK_IS_IN_SESSION

Hash0xCA97246103B63917
Runtime nameNetworkIsInSession
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xCA97246103B63917

Signature

BOOL NETWORK_IS_IN_SESSION();

Returns BOOL

Usage

Lua
local retval = NetworkIsInSession()

-- always works, by hash
local retval = Citizen.InvokeNative(0xCA97246103B63917, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = NetworkIsInSession();

// by hash
const retval = Citizen.invokeNative('0xCA97246103B63917', Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xCA97246103B63917);

Sources

alloc8or RDR3 NativeDB

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