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

Stash randomness #276

Closed MrFreex closed 2 years ago

MrFreex commented 2 years ago

Issue description: inventory opening half the times a "none" named stash, which of course doesn't exist. Issue video: https://streamable.com/jg0frx

Code causing the issue: image

Accurate description: Opening the given stash causes the inventory failing to opening correctly half the times. What is printed in F8 is the stash id (which is always correct).

Edit: fixed by adding TriggerEvent("inventory:client:SetCurrentStash", self.invid) before the call to the openInventory event.