Closed Borreke0 closed 2 months ago
@Borreke0 this should solve the issue completely
AddEventHandler('playerDropped', function()
local src = source
local inventories = { Stashes, Trunks, Gloveboxes, Drops }
for _, inventory in pairs(inventories) do
for _, inv in pairs(inventory) do
if inv.isOpen == src then
inv.isOpen = false
end
end
end
end)
@Borreke0 this should solve the issue completely
AddEventHandler('playerDropped', function() local src = source local inventories = { Stashes, Trunks, Gloveboxes, Drops } for _, inventory in pairs(inventories) do for _, inv in pairs(inventory) do if inv.isOpen == src then inv.isOpen = false end end end end)
Alright thanks! I'm going to try it and double check all the things
Still duplicates unfortunately
is there a fix for this, I am having the same issue.
Have read above. Where would the "fix" be implemented.
Summary
Item duplicate with trunk & gloveboxes
Reproduction
Expected behavior
Items needs to get deleted from the place it swapped from
Actual behavior
Seems that the item does not get deleted from the trunk/glovebox when not closing the inventory and the server has a restart or a user quits while having the inventory open.
Additional context
We tested all other interactions with the inventory and it only seems to happen with the glovebox and trunk (doing some tests still to see where and why this happens.
Last Updated
latest commit
Custom Resources
A lot but nothing to do with inventory stuff
Resource Rename
qb-inventory