Simple Pay 'n' Spray creator 1.2
264
5
264
5
I made this script with the aim of giving more life to the mod maps and cities, bringing the classic Pay 'n' Spray from the old GTAs games. The paynspray.cs script is light, simple and open, editable, and I intend to add more things to it, for now it has the following characteristics:
version 1.2:
_the cost of the painting saved in the ini file, charge: 100 (default value) is now the percentage value to be charged of the value of each class in addition to the generic value for vehicles without a defined class. If you put 50 then half the value will be charged, if 0 then the painting will not be charged, good if you are using mod characters that do not have money. If you enter a negative value like: -9000, then you will receive a certain amount of money :)
_added for each point the option for the vehicle to receive random tuning with the paint job (default: false)
_added for each point the option to repair the vehicle or not in the paint job (default: true)
_the points saved in paynspray.ini now have this new format that is easier to edit:
[name:'Pay'n'Spray'] posX:-1683.663, posY:488.0537, posZ:128.5429, charge:200, sound:'spray.ogg', iconBlip:'LosSantosCustoms', respectPursuit:True, acceptAllVeh:True, vehTuning:False, repairVeh:True
_added in the paynspray.config file the option to change the notification message of each script action (default: messages in Brazilian Portuguese)
version 1.1:
_fixed the bug of duplicating icons on the map every time the paynspray.config and paynspray.ini files are reloaded with the Ctrl+C key
_now the painting only occurs when the car is stopped over the mark (credits to floydturbo)
_added fade in/out function for smooth vehicle color change (credits to floydturbo)
_added the function to show the blip icon on the map and radar only when the player is close, option added in the paynspray.config file (credits to floydturbo)
_added the default function for pay'n'spray to refuse emergency and police vehicles, and this is configured individually for each point created on the map, in the paynspray.ini file (credits to floydturbo)
_added the default function for pay'n'spray to refuse the vehicle if it is wanted and in the police's field of vision (isWantedAndHasBeenSeenByCops), and this can be configured individually for each point created on the map, in the paynspray.ini file (credits to floydturbo)
_added the function to charge the amount for each type of vehicle, if the vehicle does not have a defined type (mod), then the default rate (100) is charged, and each amount can be configured in the paynspray.config file (credits to votrinhan88)
_added the possibility of naming each pay'n'spray point created individually in the paynspray.ini file (default description: Pay'n'Spray)
_added the possibility of changing each pay'n'spray blip icon created individually in the paynspray.ini file (default blip icon name: LosSantosCustoms)
version 1.0:
_add Pay'n'Spray points only when you are in the vehicle by pressing the keys: Ctrl +E
_If you are in chase mode, your wanted level is lost
_this Paynspray changes the primary and secondary colors (if the vehicle has it) of your vehicle randomly by RGB, not just following the standard colors of each vehicle.
_if you manually modify the files, reload the configuration files payspray.config and the saved points file payspray.ini by pressing the Ctrl+C keys during the game
_A new one can only be created at a minimum distance of 10 units from another point.
_in addition to the marking on the ground, the blip icon is added to the map.
_the activation keys and default value can be changed in the config file
_the saved x y z points, the amount to be charged for each pay'n'spray point and which audio file will be played can be changed in the .ini file.
_with an interval of approximately 7 seconds between paint job changes
Known bugs:
_ sometimes it doesn't emit the spray sound (spray.ogg file)
_whenever you reload the .ini files with the Ctrl+C keys, the old points on the map remain causing duplication in navigation, but when you restart the game the problem disappears and the script starts only with the valid blibs points :)
_______put the files in script folder
version 1.2:
_the cost of the painting saved in the ini file, charge: 100 (default value) is now the percentage value to be charged of the value of each class in addition to the generic value for vehicles without a defined class. If you put 50 then half the value will be charged, if 0 then the painting will not be charged, good if you are using mod characters that do not have money. If you enter a negative value like: -9000, then you will receive a certain amount of money :)
_added for each point the option for the vehicle to receive random tuning with the paint job (default: false)
_added for each point the option to repair the vehicle or not in the paint job (default: true)
_the points saved in paynspray.ini now have this new format that is easier to edit:
[name:'Pay'n'Spray'] posX:-1683.663, posY:488.0537, posZ:128.5429, charge:200, sound:'spray.ogg', iconBlip:'LosSantosCustoms', respectPursuit:True, acceptAllVeh:True, vehTuning:False, repairVeh:True
_added in the paynspray.config file the option to change the notification message of each script action (default: messages in Brazilian Portuguese)
version 1.1:
_fixed the bug of duplicating icons on the map every time the paynspray.config and paynspray.ini files are reloaded with the Ctrl+C key
_now the painting only occurs when the car is stopped over the mark (credits to floydturbo)
_added fade in/out function for smooth vehicle color change (credits to floydturbo)
_added the function to show the blip icon on the map and radar only when the player is close, option added in the paynspray.config file (credits to floydturbo)
_added the default function for pay'n'spray to refuse emergency and police vehicles, and this is configured individually for each point created on the map, in the paynspray.ini file (credits to floydturbo)
_added the default function for pay'n'spray to refuse the vehicle if it is wanted and in the police's field of vision (isWantedAndHasBeenSeenByCops), and this can be configured individually for each point created on the map, in the paynspray.ini file (credits to floydturbo)
_added the function to charge the amount for each type of vehicle, if the vehicle does not have a defined type (mod), then the default rate (100) is charged, and each amount can be configured in the paynspray.config file (credits to votrinhan88)
_added the possibility of naming each pay'n'spray point created individually in the paynspray.ini file (default description: Pay'n'Spray)
_added the possibility of changing each pay'n'spray blip icon created individually in the paynspray.ini file (default blip icon name: LosSantosCustoms)
version 1.0:
_add Pay'n'Spray points only when you are in the vehicle by pressing the keys: Ctrl +E
_If you are in chase mode, your wanted level is lost
_this Paynspray changes the primary and secondary colors (if the vehicle has it) of your vehicle randomly by RGB, not just following the standard colors of each vehicle.
_if you manually modify the files, reload the configuration files payspray.config and the saved points file payspray.ini by pressing the Ctrl+C keys during the game
_A new one can only be created at a minimum distance of 10 units from another point.
_in addition to the marking on the ground, the blip icon is added to the map.
_the activation keys and default value can be changed in the config file
_the saved x y z points, the amount to be charged for each pay'n'spray point and which audio file will be played can be changed in the .ini file.
_with an interval of approximately 7 seconds between paint job changes
Known bugs:
_ sometimes it doesn't emit the spray sound (spray.ogg file)
_whenever you reload the .ini files with the Ctrl+C keys, the old points on the map remain causing duplication in navigation, but when you restart the game the problem disappears and the script starts only with the valid blibs points :)
_______put the files in script folder
Tải lên lần đầu: 04 Tháng ba, 2025
Cập nhật lần cuối: 1 hours ago
Last Downloaded: 1 ngày trước
12 Bình luận
More mods by schio84dude:
I made this script with the aim of giving more life to the mod maps and cities, bringing the classic Pay 'n' Spray from the old GTAs games. The paynspray.cs script is light, simple and open, editable, and I intend to add more things to it, for now it has the following characteristics:
version 1.2:
_the cost of the painting saved in the ini file, charge: 100 (default value) is now the percentage value to be charged of the value of each class in addition to the generic value for vehicles without a defined class. If you put 50 then half the value will be charged, if 0 then the painting will not be charged, good if you are using mod characters that do not have money. If you enter a negative value like: -9000, then you will receive a certain amount of money :)
_added for each point the option for the vehicle to receive random tuning with the paint job (default: false)
_added for each point the option to repair the vehicle or not in the paint job (default: true)
_the points saved in paynspray.ini now have this new format that is easier to edit:
[name:'Pay'n'Spray'] posX:-1683.663, posY:488.0537, posZ:128.5429, charge:200, sound:'spray.ogg', iconBlip:'LosSantosCustoms', respectPursuit:True, acceptAllVeh:True, vehTuning:False, repairVeh:True
_added in the paynspray.config file the option to change the notification message of each script action (default: messages in Brazilian Portuguese)
version 1.1:
_fixed the bug of duplicating icons on the map every time the paynspray.config and paynspray.ini files are reloaded with the Ctrl+C key
_now the painting only occurs when the car is stopped over the mark (credits to floydturbo)
_added fade in/out function for smooth vehicle color change (credits to floydturbo)
_added the function to show the blip icon on the map and radar only when the player is close, option added in the paynspray.config file (credits to floydturbo)
_added the default function for pay'n'spray to refuse emergency and police vehicles, and this is configured individually for each point created on the map, in the paynspray.ini file (credits to floydturbo)
_added the default function for pay'n'spray to refuse the vehicle if it is wanted and in the police's field of vision (isWantedAndHasBeenSeenByCops), and this can be configured individually for each point created on the map, in the paynspray.ini file (credits to floydturbo)
_added the function to charge the amount for each type of vehicle, if the vehicle does not have a defined type (mod), then the default rate (100) is charged, and each amount can be configured in the paynspray.config file (credits to votrinhan88)
_added the possibility of naming each pay'n'spray point created individually in the paynspray.ini file (default description: Pay'n'Spray)
_added the possibility of changing each pay'n'spray blip icon created individually in the paynspray.ini file (default blip icon name: LosSantosCustoms)
version 1.0:
_add Pay'n'Spray points only when you are in the vehicle by pressing the keys: Ctrl +E
_If you are in chase mode, your wanted level is lost
_this Paynspray changes the primary and secondary colors (if the vehicle has it) of your vehicle randomly by RGB, not just following the standard colors of each vehicle.
_if you manually modify the files, reload the configuration files payspray.config and the saved points file payspray.ini by pressing the Ctrl+C keys during the game
_A new one can only be created at a minimum distance of 10 units from another point.
_in addition to the marking on the ground, the blip icon is added to the map.
_the activation keys and default value can be changed in the config file
_the saved x y z points, the amount to be charged for each pay'n'spray point and which audio file will be played can be changed in the .ini file.
_with an interval of approximately 7 seconds between paint job changes
Known bugs:
_ sometimes it doesn't emit the spray sound (spray.ogg file)
_whenever you reload the .ini files with the Ctrl+C keys, the old points on the map remain causing duplication in navigation, but when you restart the game the problem disappears and the script starts only with the valid blibs points :)
_______put the files in script folder
version 1.2:
_the cost of the painting saved in the ini file, charge: 100 (default value) is now the percentage value to be charged of the value of each class in addition to the generic value for vehicles without a defined class. If you put 50 then half the value will be charged, if 0 then the painting will not be charged, good if you are using mod characters that do not have money. If you enter a negative value like: -9000, then you will receive a certain amount of money :)
_added for each point the option for the vehicle to receive random tuning with the paint job (default: false)
_added for each point the option to repair the vehicle or not in the paint job (default: true)
_the points saved in paynspray.ini now have this new format that is easier to edit:
[name:'Pay'n'Spray'] posX:-1683.663, posY:488.0537, posZ:128.5429, charge:200, sound:'spray.ogg', iconBlip:'LosSantosCustoms', respectPursuit:True, acceptAllVeh:True, vehTuning:False, repairVeh:True
_added in the paynspray.config file the option to change the notification message of each script action (default: messages in Brazilian Portuguese)
version 1.1:
_fixed the bug of duplicating icons on the map every time the paynspray.config and paynspray.ini files are reloaded with the Ctrl+C key
_now the painting only occurs when the car is stopped over the mark (credits to floydturbo)
_added fade in/out function for smooth vehicle color change (credits to floydturbo)
_added the function to show the blip icon on the map and radar only when the player is close, option added in the paynspray.config file (credits to floydturbo)
_added the default function for pay'n'spray to refuse emergency and police vehicles, and this is configured individually for each point created on the map, in the paynspray.ini file (credits to floydturbo)
_added the default function for pay'n'spray to refuse the vehicle if it is wanted and in the police's field of vision (isWantedAndHasBeenSeenByCops), and this can be configured individually for each point created on the map, in the paynspray.ini file (credits to floydturbo)
_added the function to charge the amount for each type of vehicle, if the vehicle does not have a defined type (mod), then the default rate (100) is charged, and each amount can be configured in the paynspray.config file (credits to votrinhan88)
_added the possibility of naming each pay'n'spray point created individually in the paynspray.ini file (default description: Pay'n'Spray)
_added the possibility of changing each pay'n'spray blip icon created individually in the paynspray.ini file (default blip icon name: LosSantosCustoms)
version 1.0:
_add Pay'n'Spray points only when you are in the vehicle by pressing the keys: Ctrl +E
_If you are in chase mode, your wanted level is lost
_this Paynspray changes the primary and secondary colors (if the vehicle has it) of your vehicle randomly by RGB, not just following the standard colors of each vehicle.
_if you manually modify the files, reload the configuration files payspray.config and the saved points file payspray.ini by pressing the Ctrl+C keys during the game
_A new one can only be created at a minimum distance of 10 units from another point.
_in addition to the marking on the ground, the blip icon is added to the map.
_the activation keys and default value can be changed in the config file
_the saved x y z points, the amount to be charged for each pay'n'spray point and which audio file will be played can be changed in the .ini file.
_with an interval of approximately 7 seconds between paint job changes
Known bugs:
_ sometimes it doesn't emit the spray sound (spray.ogg file)
_whenever you reload the .ini files with the Ctrl+C keys, the old points on the map remain causing duplication in navigation, but when you restart the game the problem disappears and the script starts only with the valid blibs points :)
_______put the files in script folder
Tải lên lần đầu: 04 Tháng ba, 2025
Cập nhật lần cuối: 1 hours ago
Last Downloaded: 1 ngày trước
This would be better if it checked to see if the player's location is known to the police before activating. An option to disable all on-screen notifications would be good too. The feature that would take this to the next level would be a fade to black.
I like that you used a .cs file because I can just make changes to it myself
I changed the script so that the blips only show up when you are near them. I made it so that emergency vehicles are not allowed in the Pay N Spray. And most importantly: now if the player "isWantedAndHasBeenSeenByCops" they will not be allowed to use the Pay N Spray.
https://pastebin.com/Dtdccrj1
I also translated the notifications and comments into English for ease of use. I'm just doing this for fun, I hope you don't mind. I'm using this in LCPP
@schio84dude Great mod. You can visit my code in Pay n' Spray to compute the car-fixing cost if you want :)
Mod link: https://www.gta5-mods.com/scripts/pay-n-spray-lcpp
GitHub link: https://github.com/votrinhan88/paynspray-lcpp/blob/main/PaynSprayLCPP/PaynSprayLCPP.cs
+ Worth checking: BASE_COST, ServiceFixVehicle(), andComputeCost()
@floydturbo I'm sorry for having to translate it into English, the next files I'll upload in both languages ENG PTBR. Thank you for adjusting and editing the script, the changes in the points mentioned are amanzing! The intention is that everyone can change and modify it to their liking. If you don't mind I'll upload your file as v1.1. Thank you very much for help.
@votrinhan88 I downloaded your mod and it's amazing. I don't have much programming knowledge, so I created scripts thinking about making it flexible, editable, and with the basics. I had seen this function in your mod, but I didn't even think about putting it in my script because I don't intend to copy existing mods. I had already created this script before seeing your mod, and I really appreciate you sharing this line of code. I'll implement it later. Thanks :)
I'm really enjoying being able to share some ideas, and I've received incredible support from everyone, much more than I imagined. I feel welcomed. I've been working on a script for a few months and it's almost ready. I can't wait to share it this week :) It's a particular mod and something I dreamed of having in GTA, but no one had done it due to the limitations of the game. I found a way to at least simulate the function via script, and it's coming out amazing. I'm sure a lot of people will like it and everyone will be able to modify and implement it as they wish.
I made a few more changes. The respray will not happen until the player's vehicle comes to a stop. There is a fade out to black before the respray, then a fade back in afterwards.
https://pastebin.com/q7vhUuFZ
I'm still trying to get the spray.ogg file to play, it never worked for me. I tried using the native carwash spray sound from here but couldn't get it working yet:
https://raw.githubusercontent.com/DurtyFree/gta-v-data-dumps/refs/heads/master/soundNames.json
@floydturbo I was never able to get the fade in/out function to work, thank you very much, the detail of the stopped car is something very important
Forgot to mention that I commented out the blip creation lines because I am using this in Liberty City and it already has blips for Pay 'n' Spray
You can do whatever you want with the file, I didn't really make any of it anyway. You provided the template to expand on. I just think it is fun to use ChatGPT to help me to modify scripts. I've made a few simple ones already and it's so satisfying to be the only person in the world using new script features.
Next I would like to use NAudio to play a .wav file of the respray sound effect from one of the older games. And I would like a fresh paint cloud FX to trigger on the player's vehicle when it fades back in.
Right now I like it that the car is not repaired but you could obviously add that or any number of other features. It's fun to just sit and look through the native functions from here and think of ideas for what to do next: https://natives.altv.mp/
@floydturbo Your ideas on the respray sound and smoke effects have been stolen (by me ...) and will be added to my next Pay n' Spray LCPP version. But I plan to use sound and smoke from the original games to avoid dependencies.
@votrinhan88 Very cool, I'll download it as soon as you make it available
since you make real proper mods i was wondering if you could help me in trying to make the las ventras police vehicle pack and fierro police cruiser to spawn in the dlc map expansion naturally.
@sueonetwo I didn't receive a notification for your message, so I didn't see it before. Next time, mark my name so I'll be noticed. If you just want them to appear running around there, you can use the 'simple traffic creator' and define that vehicle name for that route, even create a group to randomize between them. But since there are already native routes, it's best to change it through the popgroup file. I'm working on a script to make this change, but for now it only works properly when the player is in a police chase and together with an edited popgroup file. Send me the link to those vehicles so I can see what I can do here.