forked from citizenfx/fivem
-
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.
Merge Train station natives (pr-2916)
f74a2a7 - feat(extra-natives/five): train station natives
- Loading branch information
Showing
3 changed files
with
39 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,16 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
game: gta5 | ||
--- | ||
## DOES_TRAIN_STOP_AT_STATIONS | ||
|
||
```c | ||
BOOL DOES_TRAIN_STOP_AT_STATIONS(Vehicle train); | ||
``` | ||
## Parameters | ||
* **train**: The train handle | ||
## Return value | ||
True if the train stops at stations. 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 | ||
--- | ||
## SET_TRAIN_STOP_AT_STATIONS | ||
|
||
```c | ||
void SET_TRAIN_STOP_AT_STATIONS(Vehicle train, BOOL state); | ||
``` | ||
Toggles a train's ability to stop at stations | ||
## Parameters | ||
* **train**: The train handle | ||
* **state**: True to make the train stop at stations. False to make the train not stop at stations |