Skip to content

Commit

Permalink
Merge pull request esx-framework#818 from Kuuzoo/patch-1
Browse files Browse the repository at this point in the history
Only show Default Inventory if Config enabled.
  • Loading branch information
Benzo00 authored Jan 8, 2023
2 parents 90c9777 + 1abd1fb commit a8c424f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions [esx]/es_extended/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down

0 comments on commit a8c424f

Please sign in to comment.