tick = getTickCount()
function teste()
local health = getElementHealth(getLocalPlayer())
local animteste = interpolateBetween(0, 0, 0, health, 0, 0, (getTickCount() - tick)/1000, "Linear")
dxDrawRectangle(x*1080, y*740, x*80/100*animteste, y*30, tocolor(255, 255, 255, 255), false)
end
obs: o codigo ai não pegou o