tweak - ESX.UseItem - better warning print

This commit is contained in:
Mycroft
2022-05-19 21:13:23 +01:00
committed by GitHub
parent 9701347ff5
commit 0bab2058a6
+1 -1
View File
@@ -262,7 +262,7 @@ function ESX.UseItem(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.')
print(('[^3WARNING^7] Item ^5"%s"^7 was used but does not exist!'):format(item))
end
end