AudioClient

setGpsActive

SET_GPS_ACTIVE0x3BD3F52BA9B1E4E8

The GTA V native SET_GPS_ACTIVE of the AUDIO namespace, as LS:MP client scripts call it: the global function setGpsActive, in JavaScript and in Lua.

SignatureJavaScript
setGpsActive(active: boolean): void
SignatureLua
setGpsActive(active: boolean)

Usage

JavaScript
setGpsActive(active);
Lua
setGpsActive(active)

Parameters

ParameterTypeJavaScriptLua
activeBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void SET_GPS_ACTIVE(BOOL active)
Hash
0x3BD3F52BA9B1E4E8

Open in the interactive natives reference