forked from citizenfx/natives
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename various Pathfind related natives: ClearGpsDisabledZoneAtIndex,…
… GetNextGpsDisabledZoneIndex, SetGpsDisabledZoneAtIndex
- Loading branch information
1 parent
6a5afe1
commit 2dceefc
Showing
6 changed files
with
61 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
ns: PATHFIND | ||
aliases: ["0x2801D0012266DF07"] | ||
--- | ||
## CLEAR_GPS_DISABLED_ZONE_AT_INDEX | ||
|
||
```c | ||
// 0x2801D0012266DF07 | ||
void CLEAR_GPS_DISABLED_ZONE_AT_INDEX(int index); | ||
``` | ||
Clears a disabled GPS route area from a certain index previously set using SET_GPS_DISABLED_ZONE_AT_INDEX | ||
## Parameters | ||
* **index**: Index of disabled zone. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
ns: PED | ||
aliases: ["0xD3A6A0EF48823A8C"] | ||
--- | ||
## GET_NEXT_GPS_DISABLED_ZONE_INDEX | ||
|
||
```c | ||
// 0xD3A6A0EF48823A8C 0xBE92551F | ||
int GET_NEXT_GPS_DISABLED_ZONE_INDEX(int index); | ||
``` | ||
Gets the next zone that has been disabled using SET_GPS_DISABLED_ZONE_AT_INDEX. | ||
## Return value | ||
The disabled zone index |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
ns: PATHFIND | ||
aliases: ["0xD0BC1C6FB18EE154"] | ||
--- | ||
## SET_GPS_DISABLED_ZONE_AT_INDEX | ||
|
||
```c | ||
// 0xD0BC1C6FB18EE154 0x98BDB311 | ||
void SET_GPS_DISABLED_ZONE_AT_INDEX(float x1, float y1, float z1, float x2, float y2, float z2, int index); | ||
``` | ||
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: [https://i.imgur.com/P9VUuxM.png](https://i.imgur.com/P9VUuxM.png) | ||
Enabled Zone (normal): [https://i.imgur.com/BPi24aw.png](https://i.imgur.com/BPi24aw.png) | ||
## Parameters | ||
* **x1**: X coordinate of first vector. | ||
* **y1**: Y coordinate of first vector. | ||
* **z1**: Z coordinate of first vector. | ||
* **x2**: X coordinate of second vector. | ||
* **y2**: Y coordinate of second vector. | ||
* **z2**: Z coordinate of second vector. | ||
* **index**: Index of zone. |