Help with making a HUD

So I am starting to Learn LUA only now because Im a Noob. So if I learn all the tables etc Is there any programs that are good for making HUD’s? I seen in the CustomBeast’s video he uses something but Im not sure what it is. if anybody can help that would be amazing. Thanks :slight_smile:

Trust me don’t get a program to make your huds. Learn to code it yourself. You’ll get much more experience and gain from it

I know. I appreciate what your saying but if you look at thecodingbeasts vids you will understand. He makes it himself using a program that updates as he is making it so he knows if he gets something wrong he can see a visual in a tab next to him. So if he mistakes code and the hud dissapears he doesnt need to wait until he is finished and trying to use it. He knows as soon as he makes the error. You understand what I’m trying to explain ?

He is using sublime text editor. All he did was saving after every edit and having gmod as a window. Sublime is just like notepad++.

Im just like you! A noob who wants to know how to make a DarkRP Hud!

Ah ok. While im still new tho is there any program out there that will assist me ?

Watch and look at tutorials. Learning gmod lua is really easy as it is got a really little library.


----------------- WYOZI HUD BUILDER LUA CODE ------------------
--[[Build font cache]]
WHBFontCache = WHBFontCache or {}
do
	if not WHBFontCache["WHBRoboto24"] then
		surface.CreateFont( "WHBRoboto24", {
			font = [[Roboto]],
			size = 30,
		})
		WHBFontCache["WHBRoboto24"] = true
	end
	if not WHBFontCache["WHBHelvetica24"] then
		surface.CreateFont( "WHBHelvetica24", {
			font = system.IsOSX() and [[Helvetica]] or [[Tahoma]],
			size = 30,
		})
		WHBFontCache["WHBHelvetica24"] = true
	end
	if not WHBFontCache["WHBTrebuchet24"] then
		surface.CreateFont( "WHBTrebuchet24", {
			font = [[Trebuchet]],
			size = 30,
		})
		WHBFontCache["WHBTrebuchet24"] = true
	end
	if not WHBFontCache["WHBTrebuchet24"] then
		surface.CreateFont( "WHBTrebuchet24", {
			font = [[Trebuchet]],
			size = 30,
		})
		WHBFontCache["WHBTrebuchet24"] = true
	end
	if not WHBFontCache["WHBTrebuchet24"] then
		surface.CreateFont( "WHBTrebuchet24", {
			font = [[Trebuchet]],
			size = 30,
		})
		WHBFontCache["WHBTrebuchet24"] = true
	end
	if not WHBFontCache["WHBTrebuchet24"] then
		surface.CreateFont( "WHBTrebuchet24", {
			font = [[Trebuchet]],
			size = 30,
		})
		WHBFontCache["WHBTrebuchet24"] = true
	end
	if not WHBFontCache["WHBHelvetica18"] then
		surface.CreateFont( "WHBHelvetica18", {
			font = system.IsOSX() and [[Helvetica]] or [[Tahoma]],
			size = 24,
		})
		WHBFontCache["WHBHelvetica18"] = true
	end
	if not WHBFontCache["WHBTrebuchet24"] then
		surface.CreateFont( "WHBTrebuchet24", {
			font = [[Trebuchet]],
			size = 30,
		})
		WHBFontCache["WHBTrebuchet24"] = true
	end
	if not WHBFontCache["WHBRoboto24"] then
		surface.CreateFont( "WHBRoboto24", {
			font = [[Roboto]],
			size = 30,
		})
		WHBFontCache["WHBRoboto24"] = true
	end
end
--[[Frequently used variables]]
local client = LocalPlayer()
local active_weapon = client:GetActiveWeapon()
local is_alive = client:Alive() and (client.IsSpec and not client:IsSpec())
--[[WyoziHudBuilder:rect]]
do
	local x, y = 80, ScrH() - 148
	local w, h = 350, 59
	
	draw.RoundedBox( 32, x, y, w, h, Color(120, 130, 120, 255) ) 
end
--[[WyoziHudBuilder:rect]]
do
	local x, y = 77, ScrH() - 71
	local w, h = 351, 28
	
	draw.RoundedBox( 32, x, y, w, h, Color(0, 228, 255, 255) ) 
end
--[[WyoziHudBuilder:rect]]
do
	local x, y = 76, ScrH() - 42
	local w, h = 352, 25
	
	draw.RoundedBox( 32, x, y, w, h, Color(0, 239, 255, 255) ) 
end
--[[WyoziHudBuilder:infobar]]
do
	local x, y = 88, ScrH() - 38
	local w, h = 334, 17
	
	draw.RoundedBox( 32, x, y, w, h, Color(137, 137, 137, 255) ) 
	draw.RoundedBox( 32, x, y, math.max(w * (client:Armor()/100), 64), h, Color(0, 14, 255, 255) ) 
end
--[[WyoziHudBuilder:infobar]]
do
	local x, y = 87, ScrH() - 65
	local w, h = 335, 16
	
	draw.RoundedBox( 32, x, y, w, h, Color(125, 115, 115, 255) ) 
	draw.RoundedBox( 32, x, y, math.max(w * (client:Health()/100), 64), h, Color(255, 0, 0, 255) ) 
end
--[[WyoziHudBuilder:rect]]
do
	local x, y = 78, ScrH() - 101
	local w, h = 351, 29
	
	draw.RoundedBox( 32, x, y, w, h, Color(0, 250, 255, 255) ) 
end
--[[WyoziHudBuilder:infobar]]
do
	local x, y = 86, ScrH() - 96
	local w, h = 337, 18
	
	local ammo_clip = (not IsValid(active_weapon)) and -1 or (active_weapon.Clip1 and active_weapon:Clip1() or 0)
	local ammo_max = (not IsValid(active_weapon)) and -1 or ((active_weapon.Primary and active_weapon.Primary.ClipSize) or 0)
	
	draw.RoundedBox( 32, x, y, w, h, Color(132, 128, 132, 255) ) 
	draw.RoundedBox( 32, x, y, math.max(w * (ammo_clip / ammo_max), 64), h, Color(255, 0, 214, 255) ) 
end
--[[WyoziHudBuilder:text]]
do
	local x, y = 196, ScrH() - 48
	
	surface.SetTextColor(238, 255, 0, 255)
	surface.SetTextPos(x, y)
	surface.SetFont("WHBRoboto24")
	surface.DrawText([[]] .. LocalPlayer():Armor() .. [[]])
end
--[[WyoziHudBuilder:text]]
do
	local x, y = 198, ScrH() - 71
	
	surface.SetTextColor(255, 238, 0, 255)
	surface.SetTextPos(x, y)
	surface.SetFont("WHBHelvetica24")
	surface.DrawText([[]] .. LocalPlayer():Health() .. [[]])
end
--[[WyoziHudBuilder:text]]
do
	local x, y = 144, ScrH() - 103
	
	
	--[[Data variables]]
	local ammo_clip = (not IsValid(active_weapon)) and -1 or (active_weapon.Clip1 and active_weapon:Clip1----------------- WYOZI HUD BUILDER LUA CODE ------------------
]

I put this together from Wyozi Hud builder and was wondering How i implement it Do I just put it in a hud.lua file and throw it in my server or what? I want to use this as a Base template when making my next one.