From 769c0d84f1a969ad7ddb065932aef4db3da17c51 Mon Sep 17 00:00:00 2001 From: Slypher <39607799+Slypher@users.noreply.github.com> Date: Sun, 18 Oct 2020 16:39:23 -0300 Subject: [PATCH] Null values in notifications Resolving null values in the notification when removing/placing an object in the arsenal --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index 7d2bb3ba..a93d0f92 100644 --- a/server/main.lua +++ b/server/main.lua @@ -118,7 +118,7 @@ AddEventHandler('esx_policejob:getStockItem', function(itemName, count) if xPlayer.canCarryItem(itemName, count) then inventory.removeItem(itemName, count) xPlayer.addInventoryItem(itemName, count) - xPlayer.showNotification(_U('have_withdrawn', count, inventoryItem.label)) + xPlayer.showNotification(_U('have_withdrawn', count, inventoryItem.name)) else xPlayer.showNotification(_U('quantity_invalid')) end @@ -140,7 +140,7 @@ AddEventHandler('esx_policejob:putStockItems', function(itemName, count) if sourceItem.count >= count and count > 0 then xPlayer.removeInventoryItem(itemName, count) inventory.addItem(itemName, count) - xPlayer.showNotification(_U('have_deposited', count, inventoryItem.label)) + xPlayer.showNotification(_U('have_deposited', count, inventoryItem.name)) else xPlayer.showNotification(_U('quantity_invalid')) end