GET_TRACK_INDEX_OF_TRAIN
Hash
0x865FEC2FA899F29CRuntime name
GetTrackIndexOfTrainNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
Signature
int GET_TRACK_INDEX_OF_TRAIN(Vehicle train);Parameters
| Name | Type | Description |
|---|---|---|
train | Vehicle | — |
Returns int
Usage
local retval = GetTrackIndexOfTrain(train)
-- always works, by hash
local retval = Citizen.InvokeNative(0x865FEC2FA899F29C, train, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetTrackIndexOfTrain(train);
// by hash
const retval = Citizen.invokeNative('0x865FEC2FA899F29C', train, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x865FEC2FA899F29C, train);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.