[ad_1]
FiveM Modding Tutorial
Taking a look at Superior Storage in principle it ought to be changing this in clientmain.lua
if legitimate then
if engineHealth < 990 then
if Config.UseDamageMult then
native apprasial = math.ground((1000 - engineHealth)/1000*Config.CarPoundPrice*Config.DamageMult)
reparation(apprasial, car, vehicleProps)
else
native apprasial = math.ground((1000 - engineHealth)/1000*Config.CarPoundPrice)
reparation(apprasial, car, vehicleProps)
finish
else
putaway(car, vehicleProps)
finish
else
With this
if legitimate then
putaway(car, vehicleProps)
else
Sorry I’m at work so can’t take a look at 100% however that’s what I see with a fast look
Edit: Can verify as working and likewise added within the following to make harm obtainable to view within the storage:
change this a part of the clientmain.lua
native hashVehicule = v.car.mannequin
native vehicleName = GetDisplayNameFromVehicleModel(hashVehicule)
native plate = v.plate
native labelvehicle
if Config.ShowVehicleLocation then
if v.saved then
labelvehicle="| "..plate..' | '..vehicleName..' | '.._U('loc_garage')..' |'
else
labelvehicle="| "..plate..' | '..vehicleName..' | '.._U('loc_pound')..' |'
finish
else
if v.saved then
labelvehicle="| "..plate..' | '..vehicleName..' |'
else
labelvehicle="| "..plate..' | '..vehicleName..' |'
finish
finish
to
native hashVehicule = v.car.mannequin
native vehicleName = GetDisplayNameFromVehicleModel(hashVehicule)
native plate = v.plate
native vehDamage = math.ground(v.car.well being/10)
native labelvehicle
if Config.ShowVehicleLocation then
if v.saved then
labelvehicle="| "..plate..' | '..vehicleName..' | '.._U('loc_garage')..' | '..vehDamage..'% '
else
labelvehicle="| "..plate..' | '..vehicleName..' | '.._U('loc_pound')..' | '..vehDamage..'% '
finish
else
if v.saved then
labelvehicle="| "..plate..' | '..vehicleName..' | '..vehDamage..'% '
else
labelvehicle="| "..plate..' | '..vehicleName..' | '..vehDamage..'% '
finish
finish
[ad_2]
Unique supply: https://discussion board.cfx.re/t/esx-how-to-save-vehicle-damage/475917