fix event

This commit is contained in:
Arctos2win
2023-09-29 20:21:27 +02:00
parent eec2bd8f64
commit be835db4ee
+1 -1
View File
@@ -311,7 +311,7 @@ if not Config.OxInventory then
AddEventHandler('esx:removeInventoryItem', function(item, count, showNotification)
for i=1, #ESX.PlayerData.inventory do
if ESX.PlayerData.inventory[i].name == item then
ESX.UI.ShowInventoryItemNotification(false, v.label, v.count - count)
ESX.UI.ShowInventoryItemNotification(false, ESX.PlayerData.inventory[i].label, ESX.PlayerData.inventory[i].count - count)
ESX.PlayerData.inventory[i].count = count
break
end