Im having the same issue with advanced garage. No entrys in jason file…
So not sure what i did but it seems to be working. The issue. It dosent seem to work properly on a 0/32 legacy server but works amazing on one sync server. The issue with 0/32 player server is it spawns non stop saved vechicles.
Please help I use esx_eden_garage
Error running system event handling function for resource esx_jb_stopvehicledespawn: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/esx_jb_stopvehicledespawn_sv.lua:21: attempt to call a nil value (global ‘NetworkGetEntityFromNetworkId’)
stack traceback:
server/esx_jb_stopvehicledespawn_sv.lua:21: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Hello, in this week i will rework again my script. I think found the solution to duplicated car.
no vehicles were saved in vehicles.json why
I managed to have the vehicle in the JSON file with esx_jb_eden_garage2 using @Deniel file and modifying in the server lua at line 73
“UPDATE owned_vehicles set state = 1, pounded = 1 where plate = @plate and owner = @identifier”,
to
“UPDATE owned_vehicles set store = 1, pound = 1 where plate = @plate and owner = @identifier”,
but I still have my vehicle duplicated, one on the garage exit marker and another near my vehicle parked
Any solutions ?
How did you managed to save in the json?
I thinks that’s how he did
Thanks for the fast reply.
I allready tried this but it doesnt work at all. It doesnt save anythin in the .json and i dont get any errorcodes or something like that
i think this is just outdatet and nobody want’s to share there change’s
Sry for my bad english
Did you download Deniel’s files ? Otherwise it will not work
I got the duplication issue with Deniel files, , so i searched in my garage script (esx_advancedgarage)… And i don’t know why, but when the garage stored my vehicle, the networkid was changing …
So if you’re using esx_advanced garage, add in client\main.lua :
(line 391)
networkid = NetworkGetNetworkIdFromEntity(vehicle)
(line 399)
replace : StoreVehicle(vehicle, vehicleProps)
by : StoreVehicle(vehicle, vehicleProps, networkid)
(do the same for boats, planes…)
(line 785)
replace
function StoreVehicle(vehicle, vehicleProps)
networkid = NetworkGetNetworkIdFromEntity(vehicle)
ESX.Game.DeleteVehicle(vehicle)
TriggerServerEvent('esx_advancedgarage:setVehicleState', vehicleProps.plate, true)
ESX.ShowNotification(_U('vehicle_in_garage'))
TriggerServerEvent('esx_jb_stopvehicledespawn:vehicleenteredingarage', networkid)
end
by
function StoreVehicle(vehicle, vehicleProps, networkid)
ESX.Game.DeleteVehicle(vehicle)
TriggerServerEvent('esx_advancedgarage:setVehicleState', vehicleProps.plate, true)
ESX.ShowNotification(_U('vehicle_in_garage'))
TriggerServerEvent('esx_jb_stopvehicledespawn:vehicleenteredingarage', networkid)
end
I hope this “fix” will be useful ;), now it’s working perfectly. Thanks to Deniel for his updated version btw 
Which esx_advancedgarage are you using because I search in client\main.lua and the line you are mentioning is’nt where you said
I tried the resources from HumanTree92 and MonsterTaerAtto on github but none of them have this line where you said
Hello ;), to be honest, i’m using a modified version (by myself)… BTW, thoses lines should be in your file, probably on another line…
Does anyone have a tip how I can get the cars deleted from the file? I only have the problem that the vehicles always restart when parking and I am not really smart from all the help