• I need to draw a line from the centre of the players screen to a position on a map
    4 replies, posted
I've got the position down, but does anyone know a way to convert a position into something the client can use to render the hud?
Needs moar searching. [url]http://wiki.garrysmod.com/?title=Vector.ToScreen[/url]
I'm searching hard and I can't find shit captain :(
He gave you the exact page you needed.. That function converts a 3d vector to a point on the client's screen. You just need to draw a line from (ScrW()/2, ScrH()/2) to the x and y that you receive from that function.
EDIT: Fixed, it all works beautifully.
Sorry, you need to Log In to post a reply to this thread.