I did, but there is a problem the image is too big
local hudS = {}
--hudS.bgX, hudS.bgY = ConvertAbsoluteToRelative( 300, 20 ) -- Y position of background
hudS.bgW, hudS.bgH = 0, 0
hudS.fX, hudS.fY = 339, 800 -- Y position of fill
hudS.fW, hudS.fH = 100, 190
--dxDrawImage(hudS.bgX, hudS.bgY, hudS.bgW, hudS.bgH, myTexture["144"])
local currHeight = hudS.fH / 100 * getElementHealth(localPlayer)
dxDrawImageSection(hudS.fX, hudS.fY, hudS.fW-, currHeight, hudS.bgW, hudS.bgH, hudS.fW, currHeight, "heart.png")