RedM Natives

NETWORK_IS_IN_SPECTATOR_MODE

Hash0x048746E388762E11
Runtime nameNetworkIsInSpectatorMode
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x048746E388762E11

Not called by the game's own scripts — behaviour may be incomplete.

Signature

BOOL NETWORK_IS_IN_SPECTATOR_MODE();

Returns BOOL

Usage

Lua
local retval = NetworkIsInSpectatorMode()

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

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

Sources

alloc8or RDR3 NativeDB

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