RedM Natives

NETWORK_GET_GAME_MODE

Hash0x225640E09EFFDC3F
Runtime nameNetworkGetGameMode
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207

Signature

int NETWORK_GET_GAME_MODE();

Returns int

Usage

Lua
local retval = NetworkGetGameMode()

-- always works, by hash
local retval = Citizen.InvokeNative(0x225640E09EFFDC3F, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetworkGetGameMode();

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

Sources

alloc8or RDR3 NativeDB

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