mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
use locales in inventory.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user