Only show Default Inventory if Config enabled.

On Itme Remove/Add the Default Inventory will now only show if enabled in the es_extended Config!
This commit is contained in:
Kuuzoo
2023-01-06 23:01:10 +01:00
committed by GitHub
parent 6dffa70a76
commit 1abd1fb5b4
+6 -2
View File
@@ -250,7 +250,9 @@ if not Config.OxInventory then
ESX.UI.ShowInventoryItemNotification(true, item, count)
end
ESX.ShowInventory()
if Config.EnableDefaultInventory then
ESX.ShowInventory()
end
end)
RegisterNetEvent('esx:removeInventoryItem')
@@ -267,7 +269,9 @@ if not Config.OxInventory then
ESX.UI.ShowInventoryItemNotification(false, item, count)
end
ESX.ShowInventory()
if Config.EnableDefaultInventory then
ESX.ShowInventory()
end
end)
RegisterNetEvent('esx:addWeapon')