• Custom AvatarImage if ply:SteamID64()
    2 replies, posted
This is kinda stupid I was wondering how I'd be able to set a custom Avatar Image sheerly for the fact Steam doesn't support alpha. LOT = Material("data/cache_img/test.png") local avatar = panel:Add("AvatarImage") avatar:SetSize(32, 32) avatar:SetPos(205, 2) if ( ply:SteamID64() == "76561198128046613") then avatar:SetPlayer(LOT) else avatar:SetPlayer(ply) avatar:SetMouseInputEnabled(false) avatar.PaintOver = function(self, w, h) surface.SetDrawColor(225, 225, 225) surface.DrawOutlinedRect(0, 0, w, h) end end At the moment this is all that returns.. https://files.facepunch.com/forum/upload/293518/3932b2c3-ebfb-45d9-9e0d-9cca75b777b8/0b53d88316338233d43dd13dbbbb2902.png
You're setting your avatar image to a material not a player. surf_dragon
Yeah, I'm trying to have it check if it's my SteamID then set the Avatar to an image other then my Steam Avatar. And for everyone else keep it their Steam photo.
Sorry, you need to Log In to post a reply to this thread.