Create Sprays
This is a tutorial of how to create custom sprays / add your own image to spray objects
Fetching Image Name
To replace the image of an existing spray, we will need to know the name of the texture of inside the said spray
Open Texture Toolkit and load one of the sprays (.ydr) files provided in the script

After you done that, your program should look like this:

The texture name of this file is "saints_spray_dif", so the name of our image that is going to replace is will be: "saints_spray_dif.dds"
Adjusting The Image
Take your image, convert it to dds and resize it to the size shown above (512x512). Without doing this, the program will not let us replace the texture
Replacing The Texture
Go back to Texture Toolkit, Press On "Import" under "Edit" and import your image

After that, go to "File" and use "Save As" to save it (recommended the file name to be spray_gangname) There is one last step before we can can test it in game
Adding File To YTYP
Think of the YTYP file as an "fxmanifest" file, its a file that handles all of our sprays and registers them as props Open The YTYP file provided in the script using OpenIV (Move it to your game folder if the file doesn't open but the program does)
To edit the file, enable "Edit Mode" on the right side of OpenIV right next to the search bar, and than right click the YTYP and click "Edit"

After you done that, a text editor will open showing you all the existing sprays. Every spray is created using the "item" tags, so we will need to create a new one Copy the template here:
<Item type="CBaseArchetypeDef">
<lodDist value="500.00000000"/>
<flags value="32"/>
<specialAttribute value="0"/>
<bbMin x="0.00000000" y="0.00000000" z="0.00000000"/>
<bbMax x="0.00000000" y="0.00000000" z="0.00000000"/>
<bsCentre x="0.00000000" y="0.00000000" z="0.00000000"/>
<bsRadius value="0.00000000"/>
<hdTextureDist value="5.00000000"/>
<name>spray_gangname</name>
<textureDictionary>spray_gangname</textureDictionary>
<clipDictionary/>
<drawableDictionary/>
<physicsDictionary>spray_gangname</physicsDictionary>
<assetType>ASSET_TYPE_DRAWABLE</assetType>
<assetName>spray_gangname</assetName>
<extensions/>
</Item>
Replace the spray_gangname with the file name you saved before, and paste this codeblock under any of these tags: (IF YOU WON'T DO IT CORRECTLY YOU THE YTYP FILE WON'T WORK)
</Item>
Example:
<! -- This is one of the base sprays provided in the ytyp file --!>
<Item type="CBaseArchetypeDef">
<lodDist value="500.00000000"/>
<flags value="32"/>
<specialAttribute value="0"/>
<bbMin x="0.00000000" y="0.00000000" z="0.00000000"/>
<bbMax x="0.00000000" y="0.00000000" z="0.00000000"/>
<bsCentre x="0.00000000" y="0.00000000" z="0.00000000"/>
<bsRadius value="0.00000000"/>
<hdTextureDist value="5.00000000"/>
<name>spray_vagos</name>
<textureDictionary>spray_vagos</textureDictionary>
<clipDictionary/>
<drawableDictionary/>
<physicsDictionary>spray_vagos</physicsDictionary>
<assetType>ASSET_TYPE_DRAWABLE</assetType>
<assetName>spray_vagos</assetName>
<extensions/>
</Item>
<! -- This is our new file, under this tag ^ --!>
<Item type="CBaseArchetypeDef">
<lodDist value="500.00000000"/>
<flags value="32"/>
<specialAttribute value="0"/>
<bbMin x="0.00000000" y="0.00000000" z="0.00000000"/>
<bbMax x="0.00000000" y="0.00000000" z="0.00000000"/>
<bsCentre x="0.00000000" y="0.00000000" z="0.00000000"/>
<bsRadius value="0.00000000"/>
<hdTextureDist value="5.00000000"/>
<name>spray_aztecas</name>
<textureDictionary>spray_aztecasos</textureDictionary>
<clipDictionary/>
<drawableDictionary/>
<physicsDictionary>spray_aztecas</physicsDictionary>
<assetType>ASSET_TYPE_DRAWABLE</assetType>
<assetName>spray_aztecas</assetName>
<extensions/>
</Item>
Save the file using "Ctrl + S" / Pressing The save file in the top left
Move the YTYP file and the new Spray file / YDR file to both to the stream folder, start the script and see if it works
If after doing all of these you still haven't managed to make a new spray work, please open a ticket in my discord and i will try to assist you the best as i can
Last updated