From 81de01e90e3551dd383b73759d2e1c3e28cc6a20 Mon Sep 17 00:00:00 2001 From: Arctos2win <116841243+Arctos2win@users.noreply.github.com> Date: Sun, 17 Sep 2023 15:04:21 +0200 Subject: [PATCH] use locales in inventory. --- [core]/es_extended/client/functions.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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)