100hp:
50hp:
1hp:
Here is the code
local screenX, screenY = guiGetScreenSize ( );
local maxAngle = 180;
addEventHandler ( "onClientRender", root,
function ( )
local hp = getElementHealth ( localPlayer ) * ( maxAngle / 100 );
dxDrawCircle ( ( screenX - 50 ) / 2, ( screenY - 50 ) / 2, 50, 5, 1, 0, hp, tocolor ( 255, 0, 0, 255 ), false );
end
);