qbcore-framework / qb-inventory

Slot Based Inventory System Used With QB-Core :school_satchel:
GNU General Public License v3.0
50 stars 376 forks source link

script error [BUG] #346

Closed Andey2021 closed 2 years ago

Andey2021 commented 2 years ago

on server start up and player load in we get this error

[ script:qb-inventory] SCRIPT ERROR: @qb-inventory/server/main.lua:1068: attempt to call a nil value (field 'AddPlayerMethod') [ script:qb-inventory] > handler (@qb-inventory/server/main.lua:1068) [ script:qb-inventory] > [global chunk] (@qb-core/server/player.lua:538) [ script:qb-inventory] > ref (@qb-core/server/player.lua:24) [ script:qb-inventory] > (@oxmysql/dist/build.js:21958) [ script:qb-inventory] > runMicrotasks (:0) [ script:qb-inventory] > processTicksAndRejections (node:internal/process/task_queues:96) [ script:qb-inventory] > async rawExecute (@oxmysql/dist/build.js:21911)

anyone know a fix for this

D4isDAVID commented 2 years ago

Your qb-core is probably outdated, try updating it.

Andey2021 commented 2 years ago

ill try that now but i think im running at the current version

Andey2021 commented 2 years ago

it is updated to the latest version of qb core but still getting the same error

D4isDAVID commented 2 years ago

I can't replicate this issue with latest qb-inventory and qb-core. Please update those resources.

Aigle12 commented 1 year ago

same probb