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