_GET_STATION_AT_INDEX
Returns the hash of station stationIndex on track trackIndex.
Signature
Hash _GET_STATION_AT_INDEX(int trackIndex, int stationIndex); // 0x9CC94A948EAF5372 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | trackIndex | int |
| 2 | stationIndex | int |
Facts
| Name | _GET_STATION_AT_INDEX |
|---|---|
| Hash | 0x9CC94A948EAF5372 |
| Namespace | |
| Returns | Hash |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hash = Citizen.InvokeNative(0x9CC94A948EAF5372, -- _GET_STATION_AT_INDEX
0, -- int trackIndex
0, -- int stationIndex
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0x9CC94A948EAF5372", // _GET_STATION_AT_INDEX
0, // int trackIndex
0, // int stationIndex
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x9CC94A948EAF5372, // _GET_STATION_AT_INDEX
0, // int trackIndex
0 // int stationIndex
);Related VEHICLE natives
- _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA
- _GET_TRACK_INDEX_FROM_COORDS
- _GET_TRAIN_DIRECTION_FROM_INDEX
- _GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX
- _GET_TRAIN_TRACK_JUNCTION_AT_COORDS
- _GET_TRAIN_VEHICLE_FROM_TRACK_INDEX
- GET_CURRENT_STATION_FOR_TRAIN
- GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME
- GET_ROTATION_OF_VEHICLE_RECORDING_AT_TIME
- GET_TRACK_INDEX_OF_TRAIN
- IS_TRAIN_WAITING_AT_STATION
- _GET_ALL_WAGON_PASSENGERS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.