Level Bar HUD??

Hey guys so I have a level system that only has a level bar in the form of derma. I have no idea how to make it so it’s on the HUD (more specifically center top of your screen). If someone could show me how to do it that would be amazing and I would highly appreciate it. Below is the code:


 	Frame.Paint = function( self, w, h )
		DrawBlur(self, 2)
		draw.RoundedBox( 5, 0, 0, w, h, Color( 0, 0, 0, 200 ) )
		draw.RoundedBox( 0, 10, 25, w-20, 30, Color( 10, 10, 10, 255 ) )
		draw.RoundedBox( 0, 10, 60, w-20, 140, Color( 20, 20, 20, 220 ) )
		draw.RoundedBox( 0, 20, 31, 25, 15, Color( 205, 134, 44, 255 ) )

		--XP Bar
		draw.RoundedBox( 0, 101.5, 170, 390, 15, Color( 255, 255, 255, 150 ) )
		draw.RoundedBox( 0, 101.5, 170, 390 * (ST_XPAmt / ST_XPNeed) , 15, Color( 205, 134, 44, 255 ) )
	end



[lua]local function DrawXPBar()

local barLength = 390
local barHeight = 170

draw.RoundedBox( 0, ScrW()/2 - barLength/2, barHeight, barLength, 15, Color( 255, 255, 255, 150 ) )
draw.RoundedBox( 0, ScrW()/2 - barLength/2, barHeight, barLength * (ST_XPAmt / ST_XPNeed) , 15, Color( 205, 134, 44, 255 ) )

end
hook.Add( “HUDPaint”, “HUDPaint_DrawABox”, DrawXPBar)
[/lua]

Just drop that in your cl_init.lua file.