_GET_TRAIN_POSITION_ON_TRACK
Hash
0x1E8A921112891651Runtime name
GetTrainPositionOnTrackNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Vector3 _GET_TRAIN_POSITION_ON_TRACK(int trackIndex);Parameters
| Name | Type | Description |
|---|---|---|
trackIndex | int | — |
Returns Vector3
Usage
local retval = GetTrainPositionOnTrack(trackIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x1E8A921112891651, trackIndex, Citizen.ResultAsVector())JavaScript and C#
const retval = GetTrainPositionOnTrack(trackIndex);
// by hash
const retval = Citizen.invokeNative('0x1E8A921112891651', trackIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.