try this
function dxDrawLoading(x, y, width, height, x2, y2, size, color, color2, color3, loadText, second, police)
if not start then start = getTickCount() end
local seconds = second
local with = interpolateBetween(0,0,0,width,0,0, (getTickCount() - start) / ((start + tonumber(seconds)) - start), "Linear")
local text = interpolateBetween(0,0,0,100,0,0,(getTickCount() - start) / ((start + tonumber(seconds)) - start),"Linear")
dxDrawText ( loadText.."... "..math.floor(text).."%", x2, y2+1 , width, height, color3, size, police )
dxDrawRectangle(x, y ,width ,height -10, color)
dxDrawRectangle(x, y, with ,height -10, color2)
end