_GET_JUNCTION_COORDS_FOR_TRAIN_TRACK
Returns the world coordinates of a junction node for the given train track configuration.
Hash
0x785639D89F8451ABRuntime name
GetJunctionCoordsForTrainTrackNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Vector3 _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK(Hash trainTrack, int junctionIndex);Parameters
| Name | Type | Description |
|---|---|---|
trainTrack | Hash | — |
junctionIndex | int | — |
Returns Vector3
Description
Returns the world coordinates of a junction node for the given train track configuration.
trainTrack: see 0x09034479E6E3E269.
Returns the world coordinates of a junction node for the given train track configuration. trainTrack: see _RETURN_TRAIN_INFO_FROM_HANDLE.
Usage
local retval = GetJunctionCoordsForTrainTrack(trainTrack, junctionIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x785639D89F8451AB, trainTrack, junctionIndex, Citizen.ResultAsVector())JavaScript and C#
const retval = GetJunctionCoordsForTrainTrack(trainTrack, junctionIndex);
// by hash
const retval = Citizen.invokeNative('0x785639D89F8451AB', trainTrack, junctionIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());Vector3 retval = Function.Call<Vector3>((Hash)0x785639D89F8451AB, trainTrack, junctionIndex);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.