Short question. How can I change the code below to show a 64x64 avatar instead of the texture?
[lua] if !DermaShown then
PlayerIcon = vgui.Create( "DImage" )
PlayerIcon:SetSize( 64, 64 )
PlayerIcon:SetPos(5, 5)
PlayerIcon:SetModel( "vgui/aot/corps" )
DermaShown = true
end
[/lua]
Thanks :)
Why don't you just use AvatarImage?
- [url]http://wiki.garrysmod.com/page/VGUI/Elements/AvatarImage[/url]
I guess you could do a HTML or something. And then just link it to the players avatars URL path. This is however just a guess. Try [URL="samuelmaddock.github.io/glua-docs/"]samuelmaddock.github.io/glua-docs/[/URL]
It's an awesome documentation!
Hope it helped somehow :P
Why not just use this instead?
[URL]http://wiki.garrysmod.com/page/VGUI/Elements/AvatarImage[/URL]
Edit: Ninja'd
Sorry, you need to Log In to post a reply to this thread.