{"hash":"0x1D7678F81452BB41","ns":"VEHICLE","name":"SET_VEHICLE_DAMAGE","slug":"SET_VEHICLE_DAMAGE","official":true,"named":true,"luaName":"SetVehicleDamage","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"vehicle","type":"Vehicle"},{"name":"xOffset","type":"float"},{"name":"yOffset","type":"float"},{"name":"zOffset","type":"float"},{"name":"damage","type":"float"},{"name":"radius","type":"float"},{"name":"p6","type":"BOOL"}],"summary":"Apply damage to vehicle at a location.","descriptions":[{"source":"alloc8or","format":"text","body":"Apply damage to vehicle at a location. Location is relative to vehicle model (not world).\n\nRadius of effect damage applied in a sphere at impact location"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xA1DD317EA8FD4F29","gtaJhash":"0x21B458B2","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/SET_VEHICLE_DAMAGE","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/SET_VEHICLE_DAMAGE.md","snippets":{"lua":"SetVehicleDamage(vehicle, xOffset, yOffset, zOffset, damage, radius, p6)","luaInvoke":"Citizen.InvokeNative(0x1D7678F81452BB41, vehicle, xOffset, yOffset, zOffset, damage, radius, p6)","js":"SetVehicleDamage(vehicle, xOffset, yOffset, zOffset, damage, radius, p6);","jsInvoke":"Citizen.invokeNative('0x1D7678F81452BB41', vehicle, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, damage + 0.0000001, radius + 0.0000001, p6);","csharp":"Function.Call((Hash)0x1D7678F81452BB41, vehicle, xOffset, yOffset, zOffset, damage, radius, p6);","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."]}}