overextended / oxmysql

MySQL resource for FXServer.
https://overextended.dev/oxmysql
GNU Lesser General Public License v3.0
316 stars 194 forks source link

@bb-trucker/server.lua:242: attempt to compare nil with number #158

Closed Maxhero54 closed 1 year ago

Maxhero54 commented 1 year ago

Issue checklist

Please put x inside of the box that matches your issue.

Describe the bug sorry my english not well.. my issued script truck_logistic i didint have truck keys (i mean when spawned truck all doors locked i didint open ) and below Error when i try chose use normal transport jobs (mean not need own any truck)

plus addon Trucks same

Screenshots @bb-trucker/server.lua:242 below https://prnt.sc/Ie2X3CNy956A

Code Error on console below [ script:bb-trucker] SCRIPT ERROR: @bb-trucker/server.lua:242: attempt to compare nil with number [ script:bb-trucker] > ref (@bb-trucker/server.lua:242) [ script:bb-trucker] > (@oxmysql/dist/build.js:22252) [ script:bb-trucker] > processTicksAndRejections (node:internal/process/task_queues:96)

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

Server details QBcore
v5.0.1 atop FXServer 6117 Windows 10

Database details

thanks

thelindat commented 1 year ago

attempt to compare nil with number

Does that sound like a MySQL error?

SCRIPT ERROR: @bb-trucker/server.lua:242

That's the source of the problem.

Maxhero54 commented 1 year ago

Thanks for swift replay do you have idea how can i solve it ?

script SS https://prnt.sc/Ie2X3CNy956A