[QUOTE=raBBish;23869989][url=http://wiki.garrysmod.com/?title=P.AvatarImage]P.AvatarImage[/url][/QUOTE]
Just what I was looking for, thanks.
[editline]03:27PM[/editline]
Hmmm, I have never done anything with a HUD before, so I'm not sure how I would go about this. But I want to put every player's name and steam avatar above their head. Would you have to get the vector of each player and then use ToScreen() to find the coordinates to draw their name and steam avatar or is that wrong? :D
[QUOTE=sintwins;23870112]Just what I was looking for, thanks.
[editline]03:27PM[/editline]
Hmmm, I have never done anything with a HUD before, so I'm not sure how I would go about this. But I want to put every player's name and steam avatar above their head. Would you have to get the vector of each player and then use ToScreen() to find the coordinates to draw their name and steam avatar or is that wrong? :D[/QUOTE]
pos = person:GetPos():ToScreen()
pos.x and pos.y for positioning, You would not be able to create AvatarImage in a HUDPaint hook or it will leak memory, You'd have to create it once, maybe when the player joins, send the info to everyone then set the visibility depending on when you want to display it.
Sorry, you need to Log In to post a reply to this thread.