diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 6e017ab6..80f38cc9 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -1036,7 +1036,7 @@ function ESX.ShowInventory() local playerPed = ESX.PlayerData.ped local elements = { - { unselectable = true, icon = 'fas fa-box', title = 'Player Inventory' } + { unselectable = true, icon = 'fas fa-box' } } local currentWeight = 0 @@ -1075,6 +1075,8 @@ function ESX.ShowInventory() end end + elements[1].title = TranslateCap('inventory', currentWeight, Config.MaxWeight) + for _, v in ipairs(Config.Weapons) do local weaponHash = joaat(v.name) @@ -1096,12 +1098,6 @@ function ESX.ShowInventory() end end - elements[#elements + 1] = { - unselectable = true, - icon = "fas fa-weight", - title = "Current Weight: " .. currentWeight - } - ESX.CloseContext() ESX.OpenContext("right", elements, function(_, element)