mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Update functions.lua
This commit is contained in:
@@ -259,7 +259,11 @@ function ESX.RegisterUsableItem(item, cb)
|
||||
end
|
||||
|
||||
function ESX.UseItem(source, item, data)
|
||||
Core.UsableItemsCallbacks[item](source, item, data)
|
||||
if ESX.Items[item] then
|
||||
Core.UsableItemsCallbacks[item](source, item, data)
|
||||
else
|
||||
print('Item "' .. item .. '" was called(requested), but does not exist.')
|
||||
end
|
||||
end
|
||||
|
||||
function ESX.GetItemLabel(item)
|
||||
|
||||
Reference in New Issue
Block a user