HUDClient

getFakeSpectatorMode

GET_FAKE_SPECTATOR_MODE0xC2D2AD9EAAE265B8

The GTA V native GET_FAKE_SPECTATOR_MODE of the HUD namespace, as LS:MP client scripts call it: the global function getFakeSpectatorMode, in JavaScript and in Lua.

SignatureJavaScript
getFakeSpectatorMode(): boolean
SignatureLua
getFakeSpectatorMode(): boolean

Usage

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

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
HUD HUD
In the game
BOOL GET_FAKE_SPECTATOR_MODE()
Hash
0xC2D2AD9EAAE265B8
Introduced
Game build 505 legacy numbering

Open in the interactive natives reference