From ESOUI Wiki
Returns the maximum number of times the player can upgrade their inventory capacity.
local upgrades = GetCurrentBackpackUpgrade() local max = GetMaxBackpackUpgrade() if upgrades < max then local slotsPerUpgrade = GetNumBackpackSlotsPerUpgrade() local remainingUpgrades = max - upgrades local remainingSlots = slotsPerUpgrade * remainingUpgrades -- d("Keep upgrading your backpack, and you'll be able to hold " .. remainingSlots .. " more items!") else d("You've fully upgraded your backpack!") end