Matched qbcore and esx to usable convention

Tested in both esx and qb using mrc tv which relies on itemdata.metadata (using remotes)
This commit is contained in:
gononono64 committed 2025-01-26 11:18:55 -06:00
1 parent d5916359a6
commit 1485af3678
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -202,7 +202,7 @@ 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)
cb(src, itemData)
end
ESX.RegisterUsableItem(itemName, func)
end