RedM Natives

_GET_TRAIN_POSITION_ON_TRACK

Hash0x1E8A921112891651
Runtime nameGetTrainPositionOnTrack
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Vector3 _GET_TRAIN_POSITION_ON_TRACK(int trackIndex);

Parameters

NameTypeDescription
trackIndexint—

Returns Vector3

Usage

Lua
local retval = GetTrainPositionOnTrack(trackIndex)

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

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

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