_GET_STATION_AT_INDEX
Returns the station hash for a given train track and station index.
Hash
0x9CC94A948EAF5372Runtime name
GetStationAtIndexNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_GET_STATION_FROM_TRAIN_STATION_INDEXSignature
Hash _GET_STATION_AT_INDEX(int trackIndex, int stationIndex);Parameters
| Name | Type | Description |
|---|---|---|
trackIndex | int | — |
stationIndex | int | — |
Returns Hash
Description
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.
Returns the station hash for a track and station index.
- trackIndex: int — From 0 to 24
- stationIndex: int — From 0 to 7
Usage
local retval = GetStationAtIndex(trackIndex, stationIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9CC94A948EAF5372, trackIndex, stationIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetStationAtIndex(trackIndex, stationIndex);
// by hash
const retval = Citizen.invokeNative('0x9CC94A948EAF5372', trackIndex, stationIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
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.