function ERPHUD()
local client = LocalPlayer()
if !client:Alive() then return end
if (client:GetActiveWeapon() == NULL or weapon == "Camera") then return end
// Draw the box in the bottom ( DOOM95-style )
draw.RoundedBox(0, 0, (ScrH()/4)*3, ScrW(), (ScrH()/4), Color(0,0,0,200))
// Health
//draw.RoundedBox(3, 5, 5, 200, 100, Color(0,0,0,200))
//draw.SimpleText(client:Health() .. "%", "ScoreboardText", 100, 50, Color(86, 104, 86, 255), 0, 0)
end
hook.Add("HUDPaint", "ERPHUD", ERPHUD)
function hidehud(name)
for k, v in pairs{"CHudGMod", "CHudChat", "CHudWeaponSelection", "CHudTrain", "CHudMessage", "CHudMenu", "CHudWeapon", "CHudCloseCaption"} do
if name == v then return false end
return true
end
end
hook.Add("HUDShouldDraw", "hidehud", hidehud)