Hey everyone,
Trying to make an HUD, i've got a velocity meter but through draw.SimpleText i want it to be on a RoundedBox or Rectangle, like a health bar.. higher velocity higher the bar.
Can't for the life of me figure it out... any help appreciated thanks! <3
ps. Probably really simple don't judge ;)
Just create a bar but instead of "Height" put velocity.
also for the bar fraction use
[CODE]math.Clamp(pl:GetVelocity:Length(), 0, pl:GetRunSpeed() )/pl:GetRunSpeed()[/CODE]
[QUOTE=Netheous;44083461]Just create a bar but instead of "Height" put velocity.[/QUOTE]
Thanks for the response
[CODE]
draw.RoundedBox( 0, 100, 100, math.Round(ply:GetVelocity():Length() * 0.056818181, 50, Color( 255, 0, 0, 255 )
[/CODE]
My failed attempt aha, any ideas?
[editline]28th February 2014[/editline]
Sorry been an uber retard, anyone having problems with this it's
[CODE]
draw.RoundedBox( 0, 30, ScrW() / 1.88,ply:GetVelocity():Length() * 0.056818181, ScrW() - 1640, Color( 50, 80, 230, 200) )
[/CODE]
Thanks everyone for help <3
Sorry, you need to Log In to post a reply to this thread.