HUDClient

setMinimapSonarSweep

SET_MINIMAP_SONAR_SWEEP0x6B50FC8749632EC1

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

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

Usage

JavaScript
setMinimapSonarSweep(toggle);
Lua
setMinimapSonarSweep(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_MINIMAP_SONAR_SWEEP(BOOL toggle)
Hash
0x6B50FC8749632EC1
Introduced
Game build 2189 legacy numbering
Formerly
_SET_MINIMAP_SONAR_ENABLED

Open in the interactive natives reference