help with HUD

i have deathrun server with HUD that i download
and that hud have velocity and i want to change the velocity text to the player name, this is the code :


draw.AAText( "Velocity" , "Deathrun_Velo", x + width + 10, y3-40, Color(255,255,255,255), TEXT_ALIGN_LEFT )

ive searched alot and i still didint find how to do that, any idies ?

You can get the velocity of the local player by doing:



LocalPlayer():GetVelocity():Length()


But it depends on what unit you want this velocity to be in. Kilometers? Meters? Miles?

i have already the velocity of the player just there :


draw.AAText( "Velocity"

where its say velocity i want to change that to the player nick name

Oh, alright. Just do



draw.AAText( LocalPlayer():Nick()


this is why i did :


draw.AAText( LocalPlayer():Nick() ), "Deathrun_Velo", x + width + 10, y3-40, Color(255,255,255,255), TEXT_ALIGN_LEFT )

and its was making scripts error

You have an extra “)” after Nick()



draw.AAText( LocalPlayer():Nick(), "Deathrun_Velo", x + width + 10, y3-40, Color(255,255,255,255), TEXT_ALIGN_LEFT )