Advertisement
Guest User

Untitled

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