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:
1 parent
22b64762d1
commit
4b76a4095a
1 file changed
+1
@@ -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
|
||||
Reference in new issue
Block a user