Цитата Сообщение от DreamlØlz Посмотреть сообщение
Близко, но зачем циклы? =)


PHP код:
    hooksecurefunc("TextStatusBar_UpdateTextString", function(self
        
local mintext self.currValueself.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 minmin/max*100"%")
        
end
    end

спасибо большое)