Advertisement
Guest User

Untitled

a guest
Oct 19th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.60 KB | None | 0 0
  1.  
  2.         local VEL = math.Round(LocalPlayer():GetVelocity():Length())
  3.        
  4.  surface.CreateFont( "MyFont", {
  5.         font            = "DefaultLarge",
  6.         size            = 50,
  7.         weight          = 500,
  8.         blursize        = 0,
  9.         scanlines       = 0,
  10.         antialias       = true,
  11.         underline       = false,
  12.         italic          = false,
  13.         strikeout       = false,
  14.         symbol          = false,
  15.         rotary          = false,
  16.         shadow          = false,
  17.         additive        = false,
  18.         outline         = false
  19. })
  20.  
  21. surface.CreateFont( "VelFont", {
  22.         font = "DefaultLarge",
  23.         size = 40,
  24.         weight = 600,
  25.         blursize = 0,
  26.         scanlines = 0,
  27.         antialias = true,
  28.         underline = false,
  29.         italic = false,
  30.         strikeout = false,
  31.         symbol = false,
  32.         rotary = false,
  33.         shadow = false,
  34.         additive = false,
  35.         outline = false,
  36. } )
  37.  
  38.         surface.SetTextColor( 46, 46, 254, 255)
  39.         surface.SetTextPos( 950, 1008 )
  40.         surface.SetFont( "MyFont" )
  41.         surface.DrawText( VEL )
  42.  
  43.  hook.Add( "HUDPaint", "Velocity", function()
  44.         draw.DrawText( "Velocity:", "VelFont", ScrW() * 0.457, ScrH() * 0.936, Color( 46, 46, 254, 255 ), TEXT_ALIGN_CENTER )
  45. end )
  46.  
  47.  
  48.  
  49.  function CoolHUD()
  50.         draw.RoundedBox( 0, ScrW() * 0.4195, ScrH() * 0.973, (LocalPlayer():GetVelocity():Length()/130)*100,25,Color(46, 46, 254, 255))
  51.         draw.RoundedBox( 4, ScrW() * 0.4195, ScrH() * 0.973, 500, 25, Color( 40, 40, 40, 120 ) )
  52. end
  53. hook.Add( "HUDPaint", "CoolHUD", CoolHUD )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement