Avatar Image in HUD

Hi,

Does anyone know the code to get the players steam avatar in the HUD in gmod. Like this

Thanks



local Avatar = vgui.Create( "AvatarImage", Panel )
Avatar:SetSize( 64, 64 )
Avatar:SetPos( 4, 4 )
Avatar:SetPlayer( LocalPlayer(), 64 )


[editline]12th July 2014[/editline]

Ninja’d

Thanks :slight_smile:

Make sure you create the hud:



local Avatar = vgui.Create( "AvatarImage", Panel )


outside of the



function GM:HUDPaint( )
end


otherwise it will decrease FPS until your game lags completely :confused: