RedM Natives

_GET_STATION_COORDS_FROM_TRAIN_STATION_DATA

Returns Coords of vStation p0 - NET_TRAIN_MANAGER_GET_TRAIN_STATION_DATA _GET_P* - _GET_T*

Hash0xBA958F68031DDBFC
Runtime nameGetStationCoordsFromTrainStationData
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Vector3 _GET_STATION_COORDS_FROM_TRAIN_STATION_DATA(int trackIndex, int stationIndex);

Parameters

NameTypeDescription
trackIndexint—
stationIndexint—

Returns Vector3

Description

Returns Coords of vStation
p0 - NET_TRAIN_MANAGER_GET_TRAIN_STATION_DATA
_GET_P* - _GET_T*

Usage

Lua
local retval = GetStationCoordsFromTrainStationData(trackIndex, stationIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0xBA958F68031DDBFC, trackIndex, stationIndex, Citizen.ResultAsVector())
JavaScript and C#
JavaScript
const retval = GetStationCoordsFromTrainStationData(trackIndex, stationIndex);

// by hash
const retval = Citizen.invokeNative('0xBA958F68031DDBFC', trackIndex, stationIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
Vector3 retval = Function.Call<Vector3>((Hash)0xBA958F68031DDBFC, 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

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