# VEHICLE::_GET_STATION_AT_INDEX

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

## Signature

```c
Hash _GET_STATION_AT_INDEX(int trackIndex, int stationIndex);
```

## Parameters

- `trackIndex` (`int`)
- `stationIndex` (`int`)

## Returns

`Hash`

## Description

*Source: alloc8or RDR3 NativeDB*

Returns the station hash for a given train track and station index.
Notes:
- trackIndex is typically 0..24 and stationIndex 0..7.
- Returns 0 if the pair is invalid/out of range.

*Source: VORPCORE RDR3natives*

Returns the station hash for a track and station index.
- trackIndex: int — From 0 to 24
- stationIndex: int — From 0 to 7

## Usage

### Lua

```lua
local retval = GetStationAtIndex(trackIndex, stationIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0x9CC94A948EAF5372, trackIndex, stationIndex, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetStationAtIndex(trackIndex, stationIndex);

// by hash
const retval = Citizen.invokeNative('0x9CC94A948EAF5372', trackIndex, stationIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x9CC94A948EAF5372, trackIndex, stationIndex);
```

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