Change players avatar from server

From Valve Developer Community
Revision as of 11:46, 6 February 2024 by Vitaliy valve (talk | contribs)
Jump to navigation Jump to search

Instructions on how you can change players avatars on your hosted CS2 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 ...game/csgo/avatars/ folder. Name file as "default.png"
    For example CS2 Counter-Strike: Global Offensive
    ...steamapps\common\Counter-Strike Global Offensive\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: Global Offensive
    ...steamapps\common\Counter-Strike Global Offensive\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