Skip to content

Commit

Permalink
fix(server/inventory): clear containerSlot on inventory close
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Apr 24, 2023
1 parent 08b28e0 commit b0b74ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/inventory/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function OxInventory:closeInventory(noEvent)
inv.openedBy[self.id] = nil
self.open = false
self.currentShop = nil
self.containerSlot = nil

if not noEvent then
TriggerClientEvent('ox_inventory:closeInventory', self.id, true)
Expand Down

0 comments on commit b0b74ce

Please sign in to comment.