RedM Natives

_GET_STATION_AT_INDEX

Returns the station hash for a given train track and station index.

Hash0x9CC94A948EAF5372
Runtime nameGetStationAtIndex
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_GET_STATION_FROM_TRAIN_STATION_INDEX

Signature

Hash _GET_STATION_AT_INDEX(int trackIndex, int stationIndex);

Parameters

NameTypeDescription
trackIndexint—
stationIndexint—

Returns Hash

Description

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.

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
local retval = GetStationAtIndex(trackIndex, stationIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9CC94A948EAF5372, trackIndex, stationIndex, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetStationAtIndex(trackIndex, stationIndex);

// by hash
const retval = Citizen.invokeNative('0x9CC94A948EAF5372', trackIndex, stationIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
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

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