Can you help explaining me how ESX stores vehicle data in the garage scripts?

Hey guys,
I was wondering about how ESX_Advancedgarage stores all the vehicle properties in the database. I’m not really good in Lua, I use C# instead. So, does anyone know whether it stores the data as one entry somehow, or it has a cell for every single property (plate num, fuel quantity, colors, etc.)? And if it goes with the second one, how does it handle null values? For example if a car has no spoiler, the fIield has to contain a NULL value, but as far as I’m concerned, you cannot query null values from the database, because it throws an exception.
I hope you can help me with this.

It encodes all vehicle data in JSON and shoves it into the “owned_vehicles” table under the “vehicle” column, if a vehicle does not have certain parts, they show up like so in the JSON : "modDashboard":-1 for example

Thank you very much!

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