# VEHICLE::_GET_JUNCTION_COORDS_FOR_TRAIN_TRACK

- **Hash:** `0x785639D89F8451AB`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `GetJunctionCoordsForTrainTrack`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_GET_JUNCTION_COORDS_FOR_TRAIN_TRACK

## Signature

```c
Vector3 _GET_JUNCTION_COORDS_FOR_TRAIN_TRACK(Hash trainTrack, int junctionIndex);
```

## Parameters

- `trainTrack` (`Hash`)
- `junctionIndex` (`int`)

## Returns

`Vector3`

## Description

*Source: alloc8or RDR3 NativeDB*

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

*Source: 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

```lua
local retval = GetJunctionCoordsForTrainTrack(trainTrack, junctionIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0x785639D89F8451AB, trainTrack, junctionIndex, Citizen.ResultAsVector())
```

### JavaScript

```js
const retval = GetJunctionCoordsForTrainTrack(trainTrack, junctionIndex);

// by hash
const retval = Citizen.invokeNative('0x785639D89F8451AB', trainTrack, junctionIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());
```

### C#

```csharp
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.*
