Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. function hidehud(name)
  2.     for k, v in pairs{"CHudhealth", "CHudBattery"} do
  3.         if name == v then return false end
  4.     end
  5. end
  6. hook.Add("HudShouldDraw", "hidehud", hidehud)
  7.  
  8. function GM:HUDPaint()
  9.  
  10.     self.BaseClass:HUDPaint()
  11.    
  12.     surface.CreateFont("44v2", 100, 400, false, false, "44v2")
  13.    
  14.     surface.SetTextColor( 164,220,255,255 )
  15.     surface.SetTextPos( 34, (ScrH()/2)+(ScrH()/4) )
  16.     surface.SetFont("44v2")
  17.     surface.DrawText(LocalPlayer():Health())
  18.    
  19.     print(LocalPlayer():Health())
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement