qbcore-framework / qb-inventory

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

[BUG] Item Duplication #512

Closed JDot-Cv closed 6 months ago

JDot-Cv commented 6 months ago

Summary

Item duplicate with trunk & gloveboxes

Reproduction

1) Put the item into the trunk/glovebox from inventory 2) Store vehicle 3) remove vehicle and remove from trunk but leave inventory open 4) disconnect or restart server

Expected behavior

Remove item from trunk to inventory or delete duplicate

Actual behavior

Duplicates Item

Additional context

No response

Last Updated

Today (v2.0.0)

Custom Resources

Multiple but nothing that interferes with inventory loaf garage for vehicles

Resource Rename

N/A

GhzGarage commented 6 months ago

I tried this by following your steps. I could not duplicate the item when quitting the game with the inventory open. I was able to replicate it with shutting the server off via txadmin so I added a handler for it here https://github.com/qbcore-framework/qb-inventory/commit/1430e8ddc0dfe4c23e20b0d29b61e543788388be