From ESOUI Wiki
This function returns the amount of milliseconds that must pass before the player can train a riding skill at a stable again, as well as the total wait duration.
- The amount of milliseconds that must pass until the player can increase their Carry Capacity, their mount's Stamina, or their mount's Movement Speed at a stable.
- The total amount of time that the player has to wait. If you were to call this function on the exact millisecond that the player trains at a stable, then this would equal timeMs.
local remaining, total = GetTimeUntilCanBeTrained() if remaining > 0 then local percent = math.floor((total - remaining) / total * 100) d(LocalizeString("<<1>>% of your wait time has passed.", percentage)) end