Update esx_jobs_sv.lua

This commit is contained in:
Don
2017-08-21 14:53:07 -07:00
committed by GitHub
parent 932abda6e1
commit 4ea108d898
+2 -2
View File
@@ -53,7 +53,7 @@ local function Work(source, item)
for i=1, #item, 1 do
local itemQtty = 0
if item[i].name ~= _U('lj_delivery') then
if item[i].name ~= _U('delivery') then
itemQtty = xPlayer.getInventoryItem(item[i].db_name).count
end
@@ -62,7 +62,7 @@ local function Work(source, item)
requiredItemQtty = xPlayer.getInventoryItem(item[1].requires).count
end
if item[i].name ~= _U('lj_delivery') and itemQtty >= item[i].max then
if item[i].name ~= _U('delivery') and itemQtty >= item[i].max then
TriggerClientEvent('esx:showNotification', source, _U('max_limit') .. item[i].name)
elseif item[i].requires ~= "nothing" and requiredItemQtty <= 0 then
TriggerClientEvent('esx:showNotification', source, _U('not_enough') .. item[1].requires_name .. _U('not_enough2'))