It’s not working for me, i have edited es_extended, i have no idea what i have to edit in esx_advancedgarage? it seems like something wrong.
if props.modLivery ~= nil then
SetVehicleMod(vehicle, 48, props.modLivery, false)
SetVehicleLivery(vehicle, props.modLivery)
end
if props.health ~= nil then
SetVehicleEngineHealth(vehicle, props.health+0.00)
end
modWindows = GetVehicleMod(vehicle, 46),
modLivery = GetVehicleLivery(vehicle),
health = GetVehicleEngineHealth(vehicle)
}
end
This is how mine does looks like, at the end of each one i changed, anything else i have to change?
You have everything correctly, I’ve never used esx_advancedgarage so can’t help you in what you have to edit further, considerer asking this guy Michael8t6 since he uses esx_advancegarage, I can only help you in kuana garage or eden garage v2
After following the steps, with esx_advancedgarage, I can store the car if its 100% but if it has any damage on it, nothing happens, it doesn’t put the car away. Any idea why?
Looking at Advanced Garage in theory it should be replacing this in client\main.lua
if valid then
if engineHealth < 990 then
if Config.UseDamageMult then
local apprasial = math.floor((1000 - engineHealth)/1000*Config.CarPoundPrice*Config.DamageMult)
reparation(apprasial, vehicle, vehicleProps)
else
local apprasial = math.floor((1000 - engineHealth)/1000*Config.CarPoundPrice)
reparation(apprasial, vehicle, vehicleProps)
end
else
putaway(vehicle, vehicleProps)
end
else
With this
if valid then
putaway(vehicle, vehicleProps)
else
Sorry I’m at work so can’t test 100% but that’s what I see with a quick glance
Edit: Can confirm as working and also added in the following to make damage available to view in the garage:
change this part of the client\main.lua
local hashVehicule = v.vehicle.model
local vehicleName = GetDisplayNameFromVehicleModel(hashVehicule)
local plate = v.plate
local labelvehicle
if Config.ShowVehicleLocation then
if v.stored then
labelvehicle = '| '..plate..' | '..vehicleName..' | '.._U('loc_garage')..' |'
else
labelvehicle = '| '..plate..' | '..vehicleName..' | '.._U('loc_pound')..' |'
end
else
if v.stored then
labelvehicle = '| '..plate..' | '..vehicleName..' |'
else
labelvehicle = '| '..plate..' | '..vehicleName..' |'
end
end
to
local hashVehicule = v.vehicle.model
local vehicleName = GetDisplayNameFromVehicleModel(hashVehicule)
local plate = v.plate
local vehDamage = math.floor(v.vehicle.health/10)
local labelvehicle
if Config.ShowVehicleLocation then
if v.stored then
labelvehicle = '| '..plate..' | '..vehicleName..' | '.._U('loc_garage')..' | '..vehDamage..'% '
else
labelvehicle = '| '..plate..' | '..vehicleName..' | '.._U('loc_pound')..' | '..vehDamage..'% '
end
else
if v.stored then
labelvehicle = '| '..plate..' | '..vehicleName..' | '..vehDamage..'% '
else
labelvehicle = '| '..plate..' | '..vehicleName..' | '..vehDamage..'% '
end
end
It’s not wroking for me, the only thing that is working is the engine, but when the car parts are broken/damaged it wont save them when i take it out again from the garage, i’m using esx_advancedgarage
Maybe you could try to detect if a player take out his car and for exemple his engine life is below 300 ( I don’t remember how many health an engine have) it remove for exemple some random doors and destroy the glasses to make it look broken?
So, to be clear to everyone this only saves vehicle damage, not vehicle appearance, for that you need to add a couple more lines. With that said this guy may be able to help you out guys, hit em up and ask him politily Jager_Bom
i’m using eden garage and was wondering if I could show the state of the car in the menu to get a vehicle. also was wondering how to save the appearance if anyone could help
Hello there! When I follow the steps you said, I can’t open the menu and I get the following error.
Can you help me!!? please
I am using:esx_advancedgarage