include("gf_client.lua") usermessage.Hook("gf_gmtl", function(um) local amount = um:ReadLong() scrapMetal = amount end) local Health = 0 local Armor = 0 function hud() Health = math.min(100, (Health == LocalPlayer():Health() and Health) or Lerp(0.1, Health, LocalPlayer():Health())) local DrawHealth = math.Min(Health / 100, 1) local health = LocalPlayer():Health() Armor = math.min(100, (Armor == LocalPlayer():Armor() and Armor) or Lerp(0.1, Armor, LocalPlayer():Armor())) local DrawArmor = math.Min(Armor / 100, 1) local armor = LocalPlayer():Armor() draw.RoundedBox(4, 0, 1, 2000, 25, Color(255,255,255,50)) draw.RoundedBox(0, 0, 0, 2000, 25, Color(0,0,0,230)) draw.RoundedBox(4, 24, 1, 147, 22, Color(0,0,0,255)) draw.RoundedBox(4, 209, 1, 147, 22, Color(0,0,0,255)) if health > 0 then draw.RoundedBox(4, 25, 2, 145 * DrawHealth, 20, Color(255,0,0,255)) draw.RoundedBox(4, 25, 2, 145 * DrawHealth, 10, Color(255,255,255,15)) end if armor > 0 then draw.RoundedBox(4, 210, 2, 145 * DrawArmor, 20, Color(0,0,255,255)) draw.RoundedBox(4, 210, 2, 145 * DrawArmor, 10, Color(255,255,255,15)) end draw.SimpleText(armor, "default", 270, ScrH() - 875 - 20, Color(255,255,255,255)) draw.SimpleText(health, "default", 85, ScrH() - 875 - 20, Color(255,255,255,255)) draw.SimpleText(scrapMetal, "default", 350, ScrH() - 875 - 20, Color(255,255,255,255)) draw.SimpleText("Flawless", "derp", 1343, ScrH() - 875 - 20, Color(0,150,255,255)) draw.SimpleText("Deathrun", "derp", 1385, ScrH() - 875 - 20, Color(255,255,255,255)) surface.SetDrawColor(255,255,255) surface.SetTexture(surface.GetTextureID("gui/silkicons/heart")) surface.DrawTexturedRect(-16 + 20,ScrH() - 896,16,16) surface.SetTexture(surface.GetTextureID("gui/silkicons/shield")) surface.DrawTexturedRect(-10 + 200,ScrH() - 896,16,16) end hook.Add("HUDPaint", "MyHudName", hud) function hidehud(name) for k, v in pairs({"CHudHealth", "CHudBattery", "CHudAmmo", "CHudSecondaryAmmo"}) do if name == v then return false end end end hook.Add("HUDShouldDraw", "HideOurHud:D", hidehud)