mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 05:02:15 +00:00
fix(esx_inventory/client/main): use playerdata maxweight
This commit is contained in:
@@ -179,7 +179,7 @@ local function showInventory()
|
||||
ESX.PlayerData = ESX.GetPlayerData()
|
||||
local elements, totalWeight = buildInventoryElements()
|
||||
ESX.UI.Menu.Open("default", ESX.currentResourceName, "esx_inventory_main", {
|
||||
title = TranslateCap("inventory", totalWeight, ESX.GetConfig("MaxWeight")),
|
||||
title = TranslateCap("inventory", totalWeight, ESX.PlayerData.maxWeight),
|
||||
elements = elements,
|
||||
}, function(data, menu)
|
||||
local selected = data.current --[[@as InventoryElement]]
|
||||
|
||||
Reference in New Issue
Block a user