The Lab
VEHICLE native

_GET_STATION_COORDS_FROM_TRAIN_STATION_DATA

returns Vector32 paramsbuild 1207

Returns the coordinates of station stationIndex on track trackIndex.

Signature

C
Vector3 _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA(int trackIndex, int stationIndex); // 0xBA958F68031DDBFC b1207

Parameters

#NameType
1trackIndexint
2stationIndexint

Facts

Facts about _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA
Name
_GET_STATION_COORDS_FROM_TRAIN_STATION_DATA
Hash
0xBA958F68031DDBFC
Namespace
Returns
Vector3
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local coords = Citizen.InvokeNative(0xBA958F68031DDBFC, -- _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA
  0, -- int trackIndex
  0, -- int stationIndex
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0xBA958F68031DDBFC", // _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA
  0, // int trackIndex
  0, // int stationIndex
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0xBA958F68031DDBFC, // _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA
  0, // int trackIndex
  0 // int stationIndex
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.