I use this on my HUD, but is from the top down.
I wanted it to be from the bottom up, does anyone know how to do this?
local screenW,screenH = guiGetScreenSize()
local resW,resH = 1280,720
local sW,sH = (screenW/resW), (screenH/resH)
local Health = getElementHealth (localPlayer)
dxDrawRectangle(40*sW, 559.2*sH, 11*sW, 138*sH, tocolor(0, 0, 0, 80), false, false)
dxDrawRectangle(40*sW, 559.2*sH, 11*sW, 138*sH/100*Health, tocolor(0, 255, 0, 240), false, false)