diff --git a/[core]/es_extended/server/functions.lua b/[core]/es_extended/server/functions.lua index 49ee3a8e9..ef9915e1c 100644 --- a/[core]/es_extended/server/functions.lua +++ b/[core]/es_extended/server/functions.lua @@ -455,12 +455,12 @@ function ESX.RegisterUsableItem(item, cb) Core.UsableItemsCallbacks[item] = cb end -function ESX.UseItem(source, item, ...) +function ESX.UseItem(source, item) if ESX.Items[item] then local itemCallback = Core.UsableItemsCallbacks[item] if itemCallback then - local success, result = pcall(itemCallback, source, item, ...) + local success, result = pcall(itemCallback, source, item) if not success then return result and print(result) or print(('[^3WARNING^7] An error occured when using item ^5"%s"^7! This was not caused by ESX.'):format(item))