Change players avatar from server

From Valve Developer Community
Jump to navigation Jump to search

Instructions on how you can change players avatars on your hosted source dedicated server.
This will not affect their real Steam profile avatar. You are just replacing a picture on the server.


Player avatar changed from server.


  1. To enable this feature on the server, change cvar sv_reliableavatardata to true
    You can add this in ...cfg/server.cfg, it will reset setting on every map load.
    sv_reliableavatardata true
  2. Optional: To change all players avatar to one default picture.
    Create picture, pixel size 64 x 64, save as PNG format, into your own game ...<MOD>/avatars/ folder. Name file as "default.png"
    For example CS2 Counter-Strike 2
    ...steamapps\common\Counter-Strike 2\game\csgo\avatars\default.png


  3. Change avatar by SteamID64: Repeat process same way as above, but save PNG file as using player SteamID64 serial.
    For example Counter-Strike 2
    ...steamapps\common\Counter-Strike 2\game\csgo\avatars\76561197988592905.png
  4. Max avatar PNG size on server: each PNG file size is limited to 16KB.


See also

sv_reliableavatardata


Here YouTube video