спасибо большое)Близко, но зачем циклы? =)
PHP код:
hooksecurefunc("TextStatusBar_UpdateTextString", function(self)
local min, text = self.currValue, self.TextString
if text and min then
local _, max = self:GetMinMaxValues()
text:SetFormattedText("%s - %d%s" , min>=1e4 and ('%.1fk'):format(min/1e3):gsub('%.?0+([km])$','%1') or min, min/max*100, "%")
end
end)