{"hash":"0x8BDC5B998B4654EF","ns":"VEHICLE","name":"SET_VEHICLE_ENGINE_HEALTH","slug":"SET_VEHICLE_ENGINE_HEALTH","official":true,"named":true,"luaName":"SetVehicleEngineHealth","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"vehicle","type":"Vehicle"},{"name":"health","type":"float"}],"summary":"1000 is max health Begins leaking gas at around 650 health -999.90002441406 appears to be minimum health, although nothing special occurs <- false statement -4000: Engine is destroyed 0 and below: Engine catches fire and health rapidly d…","descriptions":[{"source":"alloc8or","format":"text","body":"1000 is max health\nBegins leaking gas at around 650 health\n-999.90002441406 appears to be minimum health, although nothing special occurs <- false statement\n\n-------------------------\nMinimum: -4000\nMaximum: 1000\n\n-4000: Engine is destroyed\n0 and below: Engine catches fire and health rapidly declines\n300: Engine is smoking and losing functionality\n1000: Engine is perfect"}],"examples":[],"aliases":[],"enums":[],"related":["0x90DBFFAC43B22081"],"build":"1207","gtaHash":"0x45F6D8EEF34ABEF1","gtaJhash":"0x1B760FB5","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/SET_VEHICLE_ENGINE_HEALTH","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/SET_VEHICLE_ENGINE_HEALTH.md","snippets":{"lua":"SetVehicleEngineHealth(vehicle, health)","luaInvoke":"Citizen.InvokeNative(0x8BDC5B998B4654EF, vehicle, health)","js":"SetVehicleEngineHealth(vehicle, health);","jsInvoke":"Citizen.invokeNative('0x8BDC5B998B4654EF', vehicle, health + 0.0000001);","csharp":"Function.Call((Hash)0x8BDC5B998B4654EF, vehicle, health);","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."]}}