Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit dca5e07

Browse files
committed
fix(server/inventory): usedItem callback function
1 parent 849efe6 commit dca5e07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/inventory/server.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,9 @@ RegisterServerEvent('ox_inventory:removeItem', function(name, count, metadata, s
605605
Inventory.RemoveItem(source, name, count, metadata, slot)
606606

607607
if used then
608-
local item = Items[name]
608+
local item = Items(name)
609609
if item?.cb then
610-
item.cb('usedItem', Items(name), inv, slot)
610+
item.cb('usedItem', item, inv, slot)
611611
end
612612
end
613613
end)

0 commit comments

Comments
 (0)