HUDClient

setGpsFlags

SET_GPS_FLAGS0x5B440763A4C8D15B

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

SignatureJavaScript
setGpsFlags(p0: number, p1: number): void
SignatureLua
setGpsFlags(p0: integer, p1: number)

Usage

JavaScript
setGpsFlags(p0, p1);
Lua
setGpsFlags(p0, p1)

Parameters

ParameterTypeJavaScriptLua
p0intnumberinteger
p1floatnumbernumber

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.

Only the script that originally called setGpsFlags can set them again. Another script cannot set the flags, until the first script that called it has called clearGpsFlags.

Doesn't seem like the flags are actually read by the game at all.

Reference

Namespace
HUD HUD
In the game
void SET_GPS_FLAGS(int p0, float p1)
Hash
0x5B440763A4C8D15B

Open in the interactive natives reference