Closed Jamie-Blake closed 1 year ago
This issue has had 60 days of inactivity & will close within 7 days
replace this in your qb-vehiclefailure client.lua
local function DamageRandomComponent()
end
if healthEngineNew ~= healthEngineCurrent then SetVehicleEngineHealth(vehicle, healthEngineNew) local dmgFactr = (healthEngineCurrent - healthEngineNew) if dmgFactr > 0.8 then DamageRandomComponent() end end
if healthBodyNew ~= healthBodyCurrent then SetVehicleBodyHealth(vehicle, healthBodyNew) DamageRandomComponent() end
if healthPetrolTankNew ~= healthPetrolTankCurrent then SetVehiclePetrolTankHealth(vehicle, healthPetrolTankNew) end
also download and replace qb-garages with this
Whenever I put a vehicle into any of the garages when it is damaged, and then take it out again the damage does not save.
Steps to reproduce the behaviour:
Expected behaviour When a car with damage is put in to the garage it should come out looking the same
Questions (please complete the following information):
qb-
to something custom? noI have attached a screenshot of the error i am getting in the console.