Hello!
I hope i posted this in the right category, im very new to this.
I’ve added a qb-phone script and im getting 2 error messages that i’ve been trying to figure out how to solve with no luck.
This is the error messages im getting:
script:qb-core] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:741: SCRIPT ERROR: @qb-phone/server/main.lua:291: attempt to index a nil value (global ‘Garages’)
script:qb-core] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:741: SCRIPT ERROR: @qb-phone/server/main.lua:590: bad argument #1 to ‘for iterator’ (table expected, got nil)
I’ve tried to search for other people that have similar issues and tried to find if im having a similar problem but with no luck.
If anyone can point me in the right direction it would be greately appreciated, im not sure what files is needed to help me but i can post them if needed! =)
I have not changed the default garages, the weird thing is that i replaced vehicle.lua with a completely new one without editing it, and it still got the error.
Thanks for the reply,
I couldn’t get it to work. I tried multiple script and all of them failed in the same way.
Altough i think there was some old phone script files left behind that was messing with it. We are multiple people setting upp a server so i can get a bit messy and i think someone left an old phone script in on accident. I managed to get the default qb-phone script to work now after going through and removing old scripts.
Honestly setting upp a working phone is prob the most annoying part of making a server. Having new problems with the garage app not displaying where the vehicles are stored (or impounded). And all the files are default so it should work.
A problem for another day