mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Update esx_jobs_sv.lua
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user