Advertisement
SlenderDaddy

Untitled

Aug 12th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. draw.RoundedBox(0,
  2.  
  3. draw.RoundedBox(0, 0,
  4. draw.RoundedBox(0, 0, 10, 20, 20, Color(255,0,0,255))
  5. function TallHud ()
  6. local health = LocalPlayer():Health()
  7. draw.RoundedBox(0, 5, ScrH() - 15 - 20, health, 15, Color(255,0,0,255))
  8. draw.SimpleText(health, "default", 10, ScrH() - 15 - 40, Color(255,255,255,255))
  9. end
  10. hook.Add("HUDPaint", "TallHud", hud) -- I'll explain hooks and functions in a second
  11.  
  12. "CHUDHealth"
  13. "CHUDBattery"
  14.  
  15. function hidehud(name)
  16. for k, v in pairs({"CHudHealth", "CHudBattery"})do
  17. if name == v then return false end
  18. end
  19. end
  20. hook.Add("HUDShouldDraw", "HideOurHud:D", hidehud)
  21.  
  22. function hud() -- Consider functions like a cyber button, and everything INSIDE the function turns on when this cyber button is pressed.
  23. local health = LocalPlayer():Health()
  24. draw.RoundedBox(0, 5, ScrH() - 15 - 20, health, 15, Color(255,0,0,255))
  25. draw.SimpleText(health, "default", 10, ScrH() - 15 - 40, Color(255,255,255,255))
  26. end
  27. hook.Add("HUDPaint", "TallHud", hud) -- I'll explain hooks and functions in a second
  28.  
  29. function hidehud(name)
  30. for k, v in pairs({"CHudHealth", "CHudBattery", "CHudAmmo", "CHudSecondaryAmmo"}) do
  31. if name == v then return false end
  32. end
  33. end
  34. hook.Add("HUDShouldDraw", "HideOurHud:D", hidehud)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement