I worked around the problem by disabling the “return” function of a vehicle in the eden_garage script.
And modified the SQL request so that during the reboot it only passes in stored vehicles that are not in the user_parkmeter table.
esx_jb_eden_garage2 > server > main.lua
line 163
if Config.StoreOnServerStart then
AddEventHandler('onMySQLReady', function()
-- MySQL.Async.execute("UPDATE owned_vehicles SET `stored`=true WHERE `stored`=false", {})
MySQL.Async.execute("UPDATE owned_vehicles SET `stored`=true WHERE `stored`=false AND plate NOT IN (select plate from user_parkmeter)", {})
end)
end
Hi Alexandre,
Is there a way to save the appearance of damage when parking the vehicle?
The condition of the engine is well saved, but not the appearance.
nb : Im using the default server.lua on a fresh esx installation supplied with zap hosting
Hi @Rocwo, I just would like to ask you if this is for all parkmeters on map or just the 1500 ones that are added to map by yourself and can we duplicate any of it? Thanks for your reply in advance. ^^ Nifi
Sorry for posting other resource on yours, but I can delete it if you want.
This guy has done damage/fuel saving on parked cars. And it’s open source so you might learn how to do it in yours.
Any one could help please with this error im using es_extened 1.1.0 and esx_advancedgardge
UPDATING STATE
HUF 490
[ERROR] [MySQL] [ParkMeter] An error happens on MySQL for query “UPDATE owned_vehicles SET state =0 WHERE plate=‘HUF 490’”: ER_BAD_FIELD_ERROR: Unknown column ‘state’ in ‘field list’
would this be right state varchar(11) NOT NULL,
if this is right i got this error after doing it
SCRIPT ERROR: @ADT_ParkMeter/server.lua:109: attempt to index a nil value (local ‘xPlayer’)
You can use unit I think. Just try it. (I will add a .sql in futur releases, normally this column is added by other garages but now scripts don’t use state)
Hum, esx 1.1.0 deleted client xPlayer.
Try to use a less recent version.
With 1.1.0 they just destroyed the functioning of their client part, it’s a really bad version that makes many scripts incompatible.
what Version should i try to use if my server runs 1.1.0 and i don’t use wight i use limit in my items its hard to find a version that works with my setup but i have look and i can only find 1.1.2 and final and above, But it seam to me i need to stay or move forwards in es_extended builds and not Try to use a less recent version. any help would be Great ArdentLeKhey Or for now i have to not use your script im not worried about paying for a script that i cant run but its a shame because its a nice RP script and thats what my server is about