Basically, when i press TAB to open up my inventory , its not opening up and it gives that error in the F8 console.
SCRIPT ERROR: @qb-inventory/client/main.lua:605: bad argument #1 to ‘for iterator’ (table expected, got nil)^7
this is the screenshoot from line 605
What do i do?
In the screenshot you shared, the issue lies with the loop that starts on line 605:
for k, v in pairs(QBCore.Shared.Items) do if v.type == "weapon" then table.insert(filterWeapon, v.label) end end
The error you’re seeing is because QBCore.Shared.Items is nil when the script attempts to iterate through it, so I’d say check out your shared items file