Skip to content

Commit

Permalink
feat(server/shops): add fromSlot to buyItem hook payload (#1638)
Browse files Browse the repository at this point in the history
  • Loading branch information
antond15 committed May 9, 2024
1 parent ff76405 commit 2c63cc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/shops/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ lib.callback.register('ox_inventory:buyItem', function(source, data)
shopId = shopId,
toInventory = playerInv.id,
toSlot = data.toSlot,
fromSlot = fromData,
itemName = fromData.name,
metadata = metadata,
count = count,
Expand Down

0 comments on commit 2c63cc0

Please sign in to comment.