Error with a QBCore Custom Garage Script (np-garage) (SOLVED)

Ok, i managed to figure out what the issue was… and to be honest I’m kind of disappointed in myself for not realizing… lol. So basically a little while ago my database was lost and i had to rebuild it. In the process of rebuilding i must ev missed one of the SQL’s which was the np-garage sql which alters the player_vehicles table and adds another column called ‘logs’ to it.

Hi and thank you in advance for trying to help! :slight_smile:

So my issue is with a script called np-garage. Simply what is going on is when i walk into the area where you spawn you’re vehicle and press “E” nothing happens and it throws an error in f8 and console, the two errors are both from (np-garage / client / main.lua) and (np-garage / server / main.lua).

Here are the two errors:

F8 Error:
SCRIPT ERROR: @np-garage/client/main.lua:73: bad argument #1 to ‘sort’ (table expected, got nil)
? (@np-garage/client/main.lua:73)
handler (@np-garage/client/core.lua:27)

Console Error:
SCRIPT ERROR: @np-garage/server/main.lua:271: bad argument #1 to ‘next’ (table expected, got nil)
handler (@np-garage/server/main.lua:271)
rawQuery (@oxmysql/dist/build.js:26449)
runMicrotasks (:0)
processTicksAndRejections (node:internal/process/task_queues:96)

And here are the files:

(np-garage / client / main.lua):
main.lua (19.7 KB)

(np-garage / server / main.lua):
main.lua (14.1 KB)

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