{"hash":"0x52F45D033645181B","ns":"VEHICLE","name":"GET_CLOSEST_VEHICLE","slug":"GET_CLOSEST_VEHICLE","official":true,"named":true,"luaName":"GetClosestVehicle","game":"rdr3","apiset":"client","returnType":"Vehicle","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"radius","type":"float"},{"name":"modelHash","type":"Hash"},{"name":"flags","type":"int"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xF73EB622C4F1689B","gtaJhash":"0xD7E26B2C","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/VEHICLE/GET_CLOSEST_VEHICLE","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/GET_CLOSEST_VEHICLE.md","snippets":{"lua":"local retval = GetClosestVehicle(x, y, z, radius, modelHash, flags)","luaInvoke":"local retval = Citizen.InvokeNative(0x52F45D033645181B, x, y, z, radius, modelHash, flags, Citizen.ResultAsInteger())","js":"const retval = GetClosestVehicle(x, y, z, radius, modelHash, flags);","jsInvoke":"const retval = Citizen.invokeNative('0x52F45D033645181B', x + 0.0000001, y + 0.0000001, z + 0.0000001, radius + 0.0000001, modelHash, flags, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x52F45D033645181B, x, y, z, radius, modelHash, flags);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}