From 1abd1fb5b451fd8239adba584414329ccc761ff2 Mon Sep 17 00:00:00 2001 From: Kuuzoo <81863846+Kuuzoo@users.noreply.github.com> Date: Fri, 6 Jan 2023 23:01:10 +0100 Subject: [PATCH] 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! --- [esx]/es_extended/client/main.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/[esx]/es_extended/client/main.lua b/[esx]/es_extended/client/main.lua index a10df217..1ce5d165 100644 --- a/[esx]/es_extended/client/main.lua +++ b/[esx]/es_extended/client/main.lua @@ -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')