From ESOUI Wiki
Returns the number of usable slots that get added to the player's inventory every time they 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