HUDClient

setFakeSpectatorMode

SET_FAKE_SPECTATOR_MODE0xCD74233600C4EA6B

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

SignatureJavaScript
setFakeSpectatorMode(toggle: boolean): void
SignatureLua
setFakeSpectatorMode(toggle: boolean)

Usage

JavaScript
setFakeSpectatorMode(toggle);
Lua
setFakeSpectatorMode(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

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
void SET_FAKE_SPECTATOR_MODE(BOOL toggle)
Hash
0xCD74233600C4EA6B
Introduced
Game build 505 legacy numbering

Open in the interactive natives reference