{"hash":"0x6E585A616ABB8401","ns":"VEHICLE","name":"_GET_TRAIN_VEHICLE_FROM_TRACK_INDEX","slug":"_GET_TRAIN_VEHICLE_FROM_TRACK_INDEX","official":false,"named":true,"luaName":"GetTrainVehicleFromTrackIndex","game":"rdr3","apiset":"client","returnType":"Vehicle","params":[{"name":"trackIndex","type":"int"}],"summary":"Returns train","descriptions":[{"source":"alloc8or","format":"text","body":"Returns train"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_TRAIN_VEHICLE_FROM_TRACK_INDEX","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_TRAIN_VEHICLE_FROM_TRACK_INDEX.md","snippets":{"lua":"local retval = GetTrainVehicleFromTrackIndex(trackIndex)","luaInvoke":"local retval = Citizen.InvokeNative(0x6E585A616ABB8401, trackIndex, Citizen.ResultAsInteger())","js":"const retval = GetTrainVehicleFromTrackIndex(trackIndex);","jsInvoke":"const retval = Citizen.invokeNative('0x6E585A616ABB8401', trackIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x6E585A616ABB8401, trackIndex);","notes":["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."]}}