mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Merge pull request #504 from Slypher/patch-2
Null values in notifications
This commit is contained in:
+2
-2
@@ -131,7 +131,7 @@ AddEventHandler('esx_policejob:getStockItem', function(itemName, count)
|
|||||||
if xPlayer.canCarryItem(itemName, count) then
|
if xPlayer.canCarryItem(itemName, count) then
|
||||||
inventory.removeItem(itemName, count)
|
inventory.removeItem(itemName, count)
|
||||||
xPlayer.addInventoryItem(itemName, count)
|
xPlayer.addInventoryItem(itemName, count)
|
||||||
xPlayer.showNotification(_U('have_withdrawn', count, inventoryItem.label))
|
xPlayer.showNotification(_U('have_withdrawn', count, inventoryItem.name))
|
||||||
else
|
else
|
||||||
xPlayer.showNotification(_U('quantity_invalid'))
|
xPlayer.showNotification(_U('quantity_invalid'))
|
||||||
end
|
end
|
||||||
@@ -153,7 +153,7 @@ AddEventHandler('esx_policejob:putStockItems', function(itemName, count)
|
|||||||
if sourceItem.count >= count and count > 0 then
|
if sourceItem.count >= count and count > 0 then
|
||||||
xPlayer.removeInventoryItem(itemName, count)
|
xPlayer.removeInventoryItem(itemName, count)
|
||||||
inventory.addItem(itemName, count)
|
inventory.addItem(itemName, count)
|
||||||
xPlayer.showNotification(_U('have_deposited', count, inventoryItem.label))
|
xPlayer.showNotification(_U('have_deposited', count, inventoryItem.name))
|
||||||
else
|
else
|
||||||
xPlayer.showNotification(_U('quantity_invalid'))
|
xPlayer.showNotification(_U('quantity_invalid'))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user