Save vehicle damage: esx_advancedgarage

Hey there!

I recently installed esx_advancedgarage on my server.
This resource is great but there is only one that that I would like to modify and I’m not really sure of how I should go about doing that.
I have already removed the lines that prompt you to repair the vehicle in case it is damaged, check below:

Also, I’ve made sure my es_extended/client/functions.lua has the propshealth etc. Everything should work correctly based on what others have done.

My issue is the following…
When I damage a vehicle and store it, I check the database and it’s stored with the correct values (low engine health etc). However, when I go and retrieve the car from the garage, it’s health is fully restored (I guess mods too would be restored if I had any).

Is there anyone who has already tweaked this resource to support this feature?
I would really be glad if someone could help me out with this!

As I said on the above post, the car gets saved with the correct values (mods, health etc). The problem arises when you try to retrieve it. Therefore I checked the function that spawns the vehicle which is the screenshot below (I’m commented some stuff).

I tried printing (vehicle) which is supposed to be the table with the vehicle stats and it returns this

My knowledge of ESX framework and LUA doesn’t let me understand and make this thing work and unfortunately I can only hope for some help from the community. Could someone assist me please?

Thanks in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.