Shopping Cart
FiveM script ESX How to save vehicle damage Modding Tutorials

[ESX] Tips on how to save car harm – Modding Tutorials

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



Unique supply: https://discussion board.cfx.re/t/esx-how-to-save-vehicle-damage/475917

Leave a Reply
FiveM ESX Scripts

The best scripts and maps

Best support

Problems? We are there to help!

Wide range of products

We have a wide range of products

100% Secure Checkout

Stripe