# VEHICLE::_GET_TRAIN_POSITION_ON_TRACK

- **Hash:** `0x1E8A921112891651`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `GetTrainPositionOnTrack`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_GET_TRAIN_POSITION_ON_TRACK

## Signature

```c
Vector3 _GET_TRAIN_POSITION_ON_TRACK(int trackIndex);
```

## Parameters

- `trackIndex` (`int`)

## Returns

`Vector3`

## Usage

### Lua

```lua
local retval = GetTrainPositionOnTrack(trackIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0x1E8A921112891651, trackIndex, Citizen.ResultAsVector())
```

### JavaScript

```js
const retval = GetTrainPositionOnTrack(trackIndex);

// by hash
const retval = Citizen.invokeNative('0x1E8A921112891651', trackIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());
```

### C#

```csharp
Vector3 retval = Function.Call<Vector3>((Hash)0x1E8A921112891651, trackIndex);
```

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