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:
1 parent
d5916359a6
commit
1485af3678
2 files changed
+2
-2
No files matched your search
@@ -252,7 +252,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
|
||||
QBCore.Functions.CreateUseableItem(itemName, func)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user