fixed some stuff

involved word casing and register useable doing stuff in a tidy way uhhhhhhh... fuck you qwezert
This commit is contained in:
gononono64 committed 2025-01-14 10:55:14 -06:00
1 parent 4a70083bf6
commit 2467aa31a0
9 files changed
+42 -15

No files matched your search

+7 -2
View File
@@ -198,8 +198,13 @@ end
-- Framework.RegisterUsableItem(item, cb)
-- Registers a usable item with a callback function.
Framework.RegisterUsableItem = function(item, cb)
ESX.RegisterUsableItem(item, cb)
Framework.RegisterUsableItem = function(itemName, cb)
local func = function(src, item, itemData)
itemData = itemData or item
itemData.metadata = itemData.metadata or itemData.info or {}
cb(src, itemName, itemData)
end
ESX.RegisterUsableItem(itemName, func)
end
Framework.Commands = {}