Hello mates,
I am configuring an ESX server and I am adding module to module without problems. However, when adding the garage module, I get this error in the console when entering the instance:
Error running call reference function for resource esx_garage: citizen:/scripting/lua/scheduler.lua:351: server/main.lua:93: attempt to index a nil value (local 'xPlayer')
stack traceback:
server/main.lua:93: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:337: in function <citizen:/scripting/lua/scheduler.lua:336>
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:336: in function <citizen:/scripting/lua/scheduler.lua:335>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:351: in function <citizen:/scripting/lua/scheduler.lua:322>
Error running system event handling function for resource es_extended: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow'
citizen:/scripting/lua/MessagePack.lua:465: in field 'any'
citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack'
citizen:/scripting/lua/scheduler.lua:563: in field '?'
server/functions.lua:60: in field 'TriggerServerCallback'
server/common.lua:74: 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>
The cars are not getting saved inside either.
Iām using: fxserver (build 20-feb-2018), essentialmode5 with es_admin2 and esplugin_mysql + ESX base and official plugins I have downloaded from github a few days ago (all updated)
Does anyone know what can it be? Every help is welcome!
Thanks
Hello mates!
I ended up solving my problem by changing all of the following lines from the server/main.lua file from:
local _source = _source
to
local _source = source
I made the change request in github so that it can be fixed if other people are experiencing this problem.
And I want to thank you for this beautiful work!
Have you installed the resource āInstanceā? Did you start it before esx_garage on server.cfg?
Have you recently downloaded the resource in github? Because a new commit was made with changes to fix problems that generated this type of error 12 days ago.
So I have this sytem and Iāve added custom new garages ectā¦ as well but I am currently trying to get a instance system in place for them to be able to visit others garages like the esx_properties system anyone else try this previously? and if so have you had it possible
Trying to add a couple garages with the ESX Garage script without luckā¦
I can enter like a second config including the marks and all for the garage, but then the system just randomly teleports you out of the garage to the outside spawn of another garage like some crazy russian rouletteā¦
Very nice script, just on my server, there is problem with saving cars. Everytime I go in or out, carās randomised. Itās saved even when server is restarted, but different livery etc. everytime.
I noticed the instance wasnāt in my cfg so ofc it didnāt run it. I rebooted the server and the car still got removed from the database automatically after i closed the server but after another restart, it worked out great and even after a server restart, the cars saved. But thanks for the help