The Lab
VEHICLE native

_GET_JUNCTION_COORDS_FOR_TRAIN_TRACK

returns Vector32 paramsbuild 1207

Returns the coordinates of junction junctionIndex on trainTrack.

Signature

C
Vector3 _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK(Hash trainTrack, int junctionIndex); // 0x785639D89F8451AB b1207

Parameters

#NameType
1trainTrackHash
2junctionIndexint

Facts

Facts about _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
Name
_GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
Hash
0x785639D89F8451AB
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(0x785639D89F8451AB, -- _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
  GetHashKey("name"), -- Hash trainTrack
  0, -- int junctionIndex
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0x785639D89F8451AB", // _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
  GetHashKey("name"), // Hash trainTrack
  0, // int junctionIndex
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0x785639D89F8451AB, // _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
  (uint)API.GetHashKey("name"), // Hash trainTrack
  0 // int junctionIndex
);
All VEHICLE natives

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