HUDClient

setMinimapInSpectatorMode

SET_MINIMAP_IN_SPECTATOR_MODE0x1A5CD7752DD28CD3

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

SignatureJavaScript
setMinimapInSpectatorMode(toggle: boolean, ped: Ped): void
SignatureLua
setMinimapInSpectatorMode(toggle: boolean, ped: Ped)

Usage

JavaScript
setMinimapInSpectatorMode(toggle, ped);
Lua
setMinimapInSpectatorMode(toggle, ped)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_MINIMAP_IN_SPECTATOR_MODE(BOOL toggle, Ped ped)
Hash
0x1A5CD7752DD28CD3
Formerly
KEY_HUD_COLOUR

Open in the interactive natives reference