GET_CURRENT_STATION_FOR_TRAIN
Returns the current station index of train.
Signature
int GET_CURRENT_STATION_FOR_TRAIN(Vehicle train); // 0x86FA6D8B48667D75 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | train | Vehicle |
Facts
| Name | GET_CURRENT_STATION_FOR_TRAIN |
|---|---|
| Hash | 0x86FA6D8B48667D75 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x86FA6D8B48667D75, -- GET_CURRENT_STATION_FOR_TRAIN
0, -- Vehicle train
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x86FA6D8B48667D75", // GET_CURRENT_STATION_FOR_TRAIN
0, // Vehicle train
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x86FA6D8B48667D75, // GET_CURRENT_STATION_FOR_TRAIN
0 // Vehicle train
);Related VEHICLE natives
- _GET_CURRENT_TRACK_FOR_TRAIN
- _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA
- _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
- _GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX
- _GET_TRAIN_TRACK_FROM_TRAIN_VEHICLE
- GET_TRACK_INDEX_OF_TRAIN
- GET_TRAIN_CARRIAGE
- GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
- _GET_CHECKPOINT_TRAIN_SPAWN_LOCATION
- _GET_NEAREST_TRAIN_TRACK_POSITION
- _GET_NUM_CARS_FROM_TRAIN_CONFIG
- _GET_STATION_AT_INDEX
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.