RedM Natives

_GET_JUNCTION_COORDS_FOR_TRAIN_TRACK

Returns the world coordinates of a junction node for the given train track configuration.

Hash0x785639D89F8451AB
Runtime nameGetJunctionCoordsForTrainTrack
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Vector3 _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK(Hash trainTrack, int junctionIndex);

Parameters

NameTypeDescription
trainTrackHash—
junctionIndexint—

Returns Vector3

Description

alloc8or RDR3 NativeDB

Returns the world coordinates of a junction node for the given train track configuration.
trainTrack: see 0x09034479E6E3E269.

VORPCORE RDR3natives

Returns the world coordinates of a junction node for the given train track configuration. trainTrack: see _RETURN_TRAIN_INFO_FROM_HANDLE.

Usage

Lua
local retval = GetJunctionCoordsForTrainTrack(trainTrack, junctionIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0x785639D89F8451AB, trainTrack, junctionIndex, Citizen.ResultAsVector())
JavaScript and C#
JavaScript
const retval = GetJunctionCoordsForTrainTrack(trainTrack, junctionIndex);

// by hash
const retval = Citizen.invokeNative('0x785639D89F8451AB', trainTrack, junctionIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
Vector3 retval = Function.Call<Vector3>((Hash)0x785639D89F8451AB, trainTrack, junctionIndex);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.