{"hash":"0x85D39F5E3B6D7EB0","ns":"VEHICLE","name":"_GET_TRACK_INDEX_FROM_COORDS","slug":"_GET_TRACK_INDEX_FROM_COORDS","official":false,"named":true,"luaName":"GetTrackIndexFromCoords","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"}],"summary":"Returns trackIndex","descriptions":[{"source":"alloc8or","format":"text","body":"Returns trackIndex\n_E* - _F*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_TRACK_INDEX_FROM_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_TRACK_INDEX_FROM_COORDS.md","snippets":{"lua":"local retval = GetTrackIndexFromCoords(x, y, z)","luaInvoke":"local retval = Citizen.InvokeNative(0x85D39F5E3B6D7EB0, x, y, z, Citizen.ResultAsInteger())","js":"const retval = GetTrackIndexFromCoords(x, y, z);","jsInvoke":"const retval = Citizen.invokeNative('0x85D39F5E3B6D7EB0', x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x85D39F5E3B6D7EB0, x, y, z);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","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."]}}