qbcore-framework / qb-inventory

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

Huge Issue Duplicate Item #61

Closed taipham164 closed 3 years ago

taipham164 commented 3 years ago

It happen when you move all your items to stash/trunk (nothing left in personal inventory) then log out. when you log in everything in your inventory still in your personal inventory also in stash/trunk

BlackZon77 commented 3 years ago

that happens because the stash/trunk/glove box only saves when the inventory is closed, not when an item is moved

taipham164 commented 3 years ago

I did closed the inventory and logout. Still have that bug

taipham164 commented 3 years ago

https://youtu.be/YsNqnzkuIpk This is how to bug ! just get all the item out then log out !

nghiamas commented 3 years ago

me too, my server have this bug too

pushkart2 commented 3 years ago

https://github.com/qbcore-framework/qb-inventory/blob/a08738823903f74e05021210c745e804dd1a0440/server/main.lua#L972

this creates several stashes.. and not updates the existing stashes. Will fix the issue..

Same for trunk and gloves

Mane48 commented 3 years ago

@taipham164 When was the last time you updated your qb-inventory?

GhzGarage commented 3 years ago

This should fix it. https://github.com/qbcore-framework/qb-core/commit/784527b1642802792e9245a7f052599624faf220