-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(extra-natives/five): add getters for new track junction
- Loading branch information
1 parent
0dec7bf
commit 34ff92a
Showing
4 changed files
with
94 additions
and
0 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
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,14 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
game: gta5 | ||
--- | ||
## GET_TRACK_JUNCTION_COUNT | ||
|
||
```c | ||
int GET_TRACK_JUNCTION_COUNT(); | ||
``` | ||
|
||
|
||
## Return value | ||
Returns the number of track junctions |
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,21 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
game: gta5 | ||
--- | ||
## GET_TRACK_JUNCTION_INFO | ||
|
||
```c | ||
bool GET_TRACK_JUNCTION_INFO(int junctionId, int* trackIndex, int* trackNode, int* newIndex, int* newNode, bool* direction); | ||
``` | ||
## Parameters | ||
* **junctionId**: The track junction handle | ||
* **trackIndex**: The track index a train should be on | ||
* **trackNode**: The node a train should be on | ||
* **newIndex**: The new track index for a train to be placed on | ||
* **newNode**: The new track node for a train to be placed on | ||
* **direction**: The direction a train should be traveling for this junction | ||
## Return value | ||
Returns true if junction id is valid, false otherwise. |
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: CFX | ||
apiset: client | ||
game: gta5 | ||
--- | ||
## IS_TRACK_JUNCTION_ACTIVE | ||
|
||
```c | ||
bool IS_TRACK_JUNCTION_ACTIVE(int junctionId); | ||
``` | ||
## Parameters | ||
* **junctionId**: The track junction handle | ||
## Return value | ||
Returns wether the track junction is active, if invalid junction id returns false |