Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local VEL = math.Round(LocalPlayer():GetVelocity():Length())
- surface.CreateFont( "MyFont", {
- font = "DefaultLarge",
- size = 50,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false
- })
- surface.CreateFont( "VelFont", {
- font = "DefaultLarge",
- size = 40,
- weight = 600,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- surface.SetTextColor( 46, 46, 254, 255)
- surface.SetTextPos( 950, 1008 )
- surface.SetFont( "MyFont" )
- surface.DrawText( VEL )
- hook.Add( "HUDPaint", "Velocity", function()
- draw.DrawText( "Velocity:", "VelFont", ScrW() * 0.457, ScrH() * 0.936, Color( 46, 46, 254, 255 ), TEXT_ALIGN_CENTER )
- end )
- function CoolHUD()
- draw.RoundedBox( 0, ScrW() * 0.4195, ScrH() * 0.973, (LocalPlayer():GetVelocity():Length()/130)*100,25,Color(46, 46, 254, 255))
- draw.RoundedBox( 4, ScrW() * 0.4195, ScrH() * 0.973, 500, 25, Color( 40, 40, 40, 120 ) )
- end
- hook.Add( "HUDPaint", "CoolHUD", CoolHUD )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement