yeeted itemName
Yeeted itemName because redundant and example given previously by newb was this:
```lua
...
function(src, itemData)
...
```
This commit is contained in:
1 parent
a30b63a2cd
commit
2ee6286c7a
4 files changed
+4
-4
No files matched your search
@@ -181,7 +181,7 @@ Framework.RegisterUsableItem = function(itemName, cb)
|
||||
exports(itemName, function(event, item, inventory, slot, data)
|
||||
local slotData = exports.ox_inventory:GetSlot(inventory.id, slot)
|
||||
if event == 'usingItem' then
|
||||
cb(inventory.id, item, slotData)
|
||||
cb(inventory.id, slotData)
|
||||
return false
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in new issue
Block a user