hp = dxCreateRenderTarget(sw(140),sh(150), true)
dxSetRenderTarget(hp, true)
dxDrawImage(0, 0, sw(140),sh(150), main.images.hp_bg, 0, 0, 0, tocolor(255, 255, 255, 255))
dxSetRenderTarget()
dxDrawImage(sw(1690),sh(5),sw(140),sh(150), main.images.bg)
local progress = getElementHealth(localPlayer)/100
dxDrawImageSection(sw(1690),sh(5)+(sh(150)-(sh(150)*progress)), sw(140), sh(150), 0, sh(150)-(sh(150)*progress), sw(140), sh(150), hp, 0, 0, 0, tocolor(255, 50, 0, 150))