Change DImage to show avatar

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
Thanks :slight_smile:

Why don’t you just use AvatarImage?

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
It’s an awesome documentation!
Hope it helped somehow :stuck_out_tongue:

Why not just use this instead?

Edit: Ninja’d