Native referenceFiveM

SET_GPS_DISABLED_ZONE_AT_INDEX

0xD0BC1C6FB18EE154 PATHFIND
FUNCTION SIGNATURE
void SET_GPS_DISABLED_ZONE_AT_INDEX(float x1, float y1, float z1, float x2, float y2, float z2, int index);
Property Value
Native Name SET_GPS_DISABLED_ZONE_AT_INDEX
Hash 0xD0BC1C6FB18EE154
Return Type void
Parameters x1 (float), y1 (float), z1 (float), x2 (float), y2 (float), z2 (float), index (int)

Description: Disables the GPS route displayed on the minimap while within a certain zone (area). When in a disabled zone and creating a waypoint, the GPS route is not shown on the minimap until you are outside of the zone. When disabled, the direct distance is shown on minimap opposed to distance to travel. Seems to only work before setting a waypoint.

You can clear the disabled zone with CLEAR_GPS_DISABLED_ZONE_AT_INDEX.

Setting a waypoint at the same coordinate:

Disabled Zone:

Enabled Zone (normal):

Parameters

  • x1 (float) — X coordinate of first vector.
  • y1 (float) — Y coordinate of first vector.
  • z1 (float) — Z coordinate of first vector.
  • x2 (float) — X coordinate of second vector.
  • y2 (float) — Y coordinate of second vector.
  • z2 (float) — Z coordinate of second vector.
  • index (int) — Index of zone.
Back to PATHFIND