setFakeSpectatorMode
SET_FAKE_SPECTATOR_MODE0xCD74233600C4EA6BThe 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.
setFakeSpectatorMode(toggle: boolean): voidsetFakeSpectatorMode(toggle: boolean)Usage
JavaScript
setFakeSpectatorMode(toggle);Lua
setFakeSpectatorMode(toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
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.
Setter for getFakeSpectatorMode
Reference
- Namespace
- HUD HUD
- In the game
void SET_FAKE_SPECTATOR_MODE(BOOL toggle)- Hash
0xCD74233600C4EA6B- Introduced
- Game build 505 legacy numbering