fix item removal in nd_core

This must return false to not auto remove the item, while its a great concept not every framework/inventory plays the same.

People can continue to manually remove items with the exports like its been.
This commit is contained in:
MrNewb committed 2025-01-20 05:19:07 -05:00
1 parent 22b64762d1
commit 4b76a4095a
1 file changed
+1
+1
View File
@@ -186,6 +186,7 @@ Framework.RegisterUsableItem = function(itemName, cb)
local slotData = exports.ox_inventory:GetSlot(inventory.id, slot)
if event == 'usingItem' then
cb(inventory.id, item, slotData)
return false
end
end)
end