I have come into a problem when putting a steam avatar image on a HUD that I am creating.
The image does work, it shows up on the HUD. My problem however is that it does not disappear when I press pause, bring up console etc. It also does not update when I change resolution. I know I have nothing updating it but I was wondering if anyone had a solution to my problem.
local Avatar function HUDValidCheck() if !LocalPlayer():IsValid() then return end if !Avatar then Avatar = vgui.Create( "AvatarImage", Panel ) Avatar:SetSize( 64, 64 ) Avatar:SetPos( 18, ScrH() - 165 ) Avatar:SetPlayer( LocalPlayer(), 64 ) end end
Any input would be appreciated.
Could Anyone reply to this with their explanation/advise or a link?