The Game Modding Community - Since 2001

Importing quality sprays (512px) with transparency

A Tutorial for Counter-Strike: Source

This is a more advanced tutorial to ensure your spray for Counter-Strike Source is at the best possible quality (512x512 px) and does not downscale to 256x256 px. This tutorial does NOT go over how to use Photoshop, Paint.NET, GIMP or whatever. You are expected to know how to make PNG images with transparent backgrounds.

Prepare your 512x512 PNG

Use your favorite image editor to downscale and crop your image properly. Your final result must be 512x512 pixels. Save it as a PNG with transparency (if applicable).

Note: You should leave at least a 1px transparent border for images with transparency. In other words, your output image is still 512x512, but your maximum drawing region would be 510x510. Failure to do so may cause your spray to have a faint white border or horizontal line at the top when sprayed in-game. This is due to a technicality with how DirectX handles textures with alpha channels.

Convert your PNG to TGA

Download VTFEdit 1.2.5

1. Click and download "Archive (743 KB)"
2. Create a folder in your documents folder called "vtfedit125-11"
3. Extract the contents (7 files) of your downloaded ZIP file to your vtfedit125-11 folder.

Use VTFEdit to set up and create your VTF and VMT files

1. Open VTFEdit.exe
2. Click File -> Import and open your TGA.
3. Leave these default options alone, but make sure resize is unchecked. Click OK.
4. Make sure Mask is enabled (View -> Mask) to enable transparency.
5. Three flags need to be checked: Eight Bit Alpha, No Mipmap, and No Level Of Detail.
6. Save as spray.vtf (File -> Save As). Save your VMT file as well (Tools -> Create VMT File -> Create).

Paste your VTF and VMT into Counter-Strike's spray directory

Copy spray.vtf file into:
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Source\cstrike\materials\vgui\logos
Copy spray.vmt file into:
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Source\cstrike\materials\vgui\logos\ui

Before you place those files, delete any existing VTF or VMT files in both folders.

You must set your spray.vtf file as read-only. (Right-click -> Properties -> check Read-only). Don't skip this step or your spray won't change.

Note: the consequence of setting this file as read-only is that you will not be able to use the inferior in-game spray image importer to change your spray.

Launch CSS and test your spray.


  • 7mo
    Davey - San avatar
    Davey - San username pic Joined 4y ago
    Ripe Supporter
    DeadArt Flag Affiliation: DeadArt
    1,840 points Ranked 2784th
    24 medals 2 legendary 2 rare
    • Returned 5000 times Medal icon
    • Became a Ripe Supporter Medal icon
    • Returned 1000 times Medal icon
    • Thanked 50 submitters Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    Davey - San avatar
    Davey - San
    DeadArt Flag
    I was thinking about doing an spray tutorial in a long time, perhaps I might do a more detailed one, but good work nonetheless!


    Digital-Artist Wannabe avatar
    Digital-Artist Wannabe


Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:


Key Authors


ushimeme avatar
ushimeme Joined 7mo ago

Sign up to access this!
Sign up to access this!
Sign up to access this!
  • Paypal Donate
Sign up to access this!



Difficulty Level
Intermediate Difficulty



  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+


  • Today's Pick Dec 28 2017


  • 1 Posts
  • 7mo Submitted
  • 5mo Modified


91 bScore
10 Rating

5 voters

Sign up to access this!

Attention Gamer! Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Join the community! Sign up now!

Already a Bananite? Login tracking pixel