Hey guys, i am currently having a little problem getting the Avatar Image vgui function working, this is the little bit of code i am using:
[code]
local imgAvatar = vgui.Create( "AvatarImage", SheetTabOne )
surface:DrawTexturedRect( imgAvatar:SetPlayer( v ), 0, 0, 128, 128 )
[/code]
Which outputs:
[img]http://img14.imageshack.us/img14/9202/99609db6bfc944c98c73bfc.png[/img]
and the reason i have the width and height vectors set to 0 is because i increase them i get this:
[img]http://img507.imageshack.us/img507/2676/7486deaefbaa4abbabc8022.png[/img]
Thats with [code]surface:DrawTexturedRect( imgAvatar:SetPlayer( v ), 250, 50, 128, 128 )[/code]
I am aware that there may be elements missing but the wiki is currently down, any other information that may be required please ask.
Sorry, you need to Log In to post a reply to this thread.