My First Hud :D

I’m learning LUA and after an hour and a half or so I managed to create this :smiley:

Don’t hate because it’s my first one, but I think it looks alright!

Oh, sorry, forgot about that.

now try to make the hud in job colour

Not bad for a first HUD. Better than my first HUD by a lot

Better than my first too. :stuck_out_tongue:

Tell me how you did the bars? (health, armor)

It is a neat algorithm that I can’t remember.

If you want to make an armor and health bar do this.
function HPAR()
local ply = LocalPlayer()
local HP = ply:Health()
local AR = ply:Armor()

 draw.RoundedBox(0,20,ScrH() - 60,math.Clamp(HP,0,100)*2,20,Color(220,0,0,255)) 
 draw.RoundedBox(0,20,ScrH() - 35,math.Clamp(AR,0,100)*2,20,Color(220,0,0,255))


I like it :smiley: