PathfindingClientChecked by LS:MP

clearGpsDisabledZoneAtIndex

CLEAR_GPS_DISABLED_ZONE_AT_INDEX0x2801D0012266DF07

The GTA V native CLEAR_GPS_DISABLED_ZONE_AT_INDEX of the PATHFIND namespace, as LS:MP client scripts call it: the global function clearGpsDisabledZoneAtIndex, in JavaScript and in Lua.

SignatureJavaScript
clearGpsDisabledZoneAtIndex(index: number): void
SignatureLua
clearGpsDisabledZoneAtIndex(index: integer)

Usage

JavaScript
clearGpsDisabledZoneAtIndex(index);
Lua
clearGpsDisabledZoneAtIndex(index)

Parameters

ParameterTypeJavaScriptLua
indexintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

index must be between 0 and 3. Otherwise the call is ignored: nothing reaches the game, and no error is raised.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Clears a disabled GPS route area from a certain index previously set using setGpsDisabledZoneAtIndex.

Reference

Namespace
Pathfinding PATHFIND
In the game
void CLEAR_GPS_DISABLED_ZONE_AT_INDEX(int index)
Hash
0x2801D0012266DF07
Formerly
_CLEAR_GPS_DISABLED_ZONE_AT_INDEX

Open in the interactive natives reference