NetworkClient

networkIsInSpectatorMode

NETWORK_IS_IN_SPECTATOR_MODE0x048746E388762E11

The GTA V native NETWORK_IS_IN_SPECTATOR_MODE of the NETWORK namespace, as LS:MP client scripts call it: the global function networkIsInSpectatorMode, in JavaScript and in Lua.

SignatureJavaScript
networkIsInSpectatorMode(): boolean
SignatureLua
networkIsInSpectatorMode(): boolean

Usage

JavaScript
const result = networkIsInSpectatorMode();
Lua
local result = networkIsInSpectatorMode()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_IS_IN_SPECTATOR_MODE()
Hash
0x048746E388762E11

Open in the interactive natives reference