loljoshie / lj-inventory

GNU General Public License v3.0
91 stars 179 forks source link

items not disappearing, getting errors in console (global ply) #133

Closed klipped closed 1 year ago

klipped commented 1 year ago

no one posted this problem yet but i always have a problem using ifaks, bandage and painkillers and they dont disappear after using, it shows the message below when you use it.

[ script:lj-inventory] SCRIPT ERROR: @lj-inventory/server/main.lua:1367: attempt to index a nil value (global 'ply')

klipped commented 1 year ago

also shows this in the F8 console

[ 5726078] [b2699_GTAProce] CrBrowserMain/ Uncaught TypeError: Cannot read properties of undefined (reading 'label') (@lj-inventory/html/js/app.js:3018) [ 5726078] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @qb-ambulancejob/client/wounding.lua:57: attempt to call a nil value (global 'PainKillerLoop')^7 [ 5726094] [b2699_GTAProce] MainThrd/ ^3> ref^7 (^5@qb-core/client/functions.lua^7:130) [ 5726094] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@progressbar/client/main.lua^7:124) [ 5726094] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:479: attempt to concatenate a nil value (local 'err')^7 [ 5726094] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@progressbar/client/main.lua^7:124) [ 5726094] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: error object is not a string^7

i highly doubt the ambulance job is the problem because its updated and i double checked the coding