Simple Pay 'n' Spray creator 1.1
253
4
253
4
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.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
PTBR:
Fiz esse script com o intuito de dar mais vida aos mapas e cidades mod, trazendo o classico Pay 'n' Spray dos antigos jogos GTAs. O script paynspray.cs é leve, simples, aberto e editavel, e pretendo adicionar mais coisas pra ele, por hora ele possui as seguintes caracteristicas:
versão 1.1:
_corrigido problema do bug de duplicar icones no mapa a cada vez que os arquivos paynspray.config e paynspray.ini são recarregados com as teclas Ctrl+C
_agora a pintura so ocorre quando o carro estiver parado sobre a marca (creditos ao floydturbo)
_adicionada função de fade in/out para troca suave da cor do veiculo (creditos ao floydturbo)
_adicionada a função de mostrar o icone blip no mapa e radar so quando o jogador estiver proximo, opção adicionada no arquivo paynspray.config (creditos ao floydturbo)
_adicionada a função como padrão para o pay'n'spray recusar veiculos de emergencia e policia, e isso por ser configurado de maneira individual para cada ponto criado no mapa, no arquivo paynspray.ini (creditos ao floydturbo)
_adicionada a função como padrão para o pay'n'spray recusar o veiculo se estiver como procurado e no campo de visão da policia (isWantedAndHasBeenSeenByCops), e isso por ser configurado de maneira individual para cada ponto criado no mapa, no arquivo paynspray.ini (creditos ao floydturbo)
_adicionada a função para valor de cobrança para cada tipo de veiculo, se o veiculo não tiver tipo definido (mod), então é cobrado a taxa padrão (100), e cada valor pode ser configurado no arquivo paynspray.config (creditos ao votrinhan88)
_adicionada a possibilidade de nomear no arquivo paynspray.ini cada ponto pay'n'spray criado individualmente (descrição padrão: Pay'n'Spray)
_adicionada a possibilidade de aletrar no arquivo paynspray.ini cada icone blip de pay'n'spray criado individualmente (nome icone blip padrão: LosSantosCustoms)
versão 1.0:
_adicione pontos Pay'n'Spray somente quando estiver com veiculo pressionando as teclas: Ctrl +E
_se tiver em modo perseguição, seu nivel de procurado é perdido
_esse Paynspray altera as cores primarias e secundarias (se o veiculo a tiver) do seu veiculo aleatoriamente por rgb, nao seguindo apenas as cores padrões de cada veiculo
_caso modifique manualmente os arquivos, recarrege os arquivos de configuração payspray.config e o arquivo de pontos salvos payspray.ini pressionando as teclas Ctrl+C durante o jogo
_so pode ser criado um novo a uma distancia minima de 10 unidades de outro ponto.
_alem da marcação no chão é adicionado o icone blip no mapa.
_pode ser alterado no arquivo config as teclas de acionamento e o valor padrão
_pode ser alterado no arquivo .ini os pontos salvos x y z, o valor a ser cobrado pra cada ponto pay'n'spray e qual arquivo de audio sera reproduzido.
_existe um intervalo de espera de aproximadamente 7 segundos para cada vez que mudar a cor passando pelo marcador
Bugs conhecidos:
_ as vezes ele não emite o som do spray (arquivo spray.ogg)
_sempre que recarregar os arquivo .ini com as teclas Ctrl+C os pontos antigos do mapa permanecem causando duplicidade na navegação, mas ao reiniciar o game o problema somen e o script inicia somente com os pontos blibs validos :)
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
PTBR:
Fiz esse script com o intuito de dar mais vida aos mapas e cidades mod, trazendo o classico Pay 'n' Spray dos antigos jogos GTAs. O script paynspray.cs é leve, simples, aberto e editavel, e pretendo adicionar mais coisas pra ele, por hora ele possui as seguintes caracteristicas:
versão 1.1:
_corrigido problema do bug de duplicar icones no mapa a cada vez que os arquivos paynspray.config e paynspray.ini são recarregados com as teclas Ctrl+C
_agora a pintura so ocorre quando o carro estiver parado sobre a marca (creditos ao floydturbo)
_adicionada função de fade in/out para troca suave da cor do veiculo (creditos ao floydturbo)
_adicionada a função de mostrar o icone blip no mapa e radar so quando o jogador estiver proximo, opção adicionada no arquivo paynspray.config (creditos ao floydturbo)
_adicionada a função como padrão para o pay'n'spray recusar veiculos de emergencia e policia, e isso por ser configurado de maneira individual para cada ponto criado no mapa, no arquivo paynspray.ini (creditos ao floydturbo)
_adicionada a função como padrão para o pay'n'spray recusar o veiculo se estiver como procurado e no campo de visão da policia (isWantedAndHasBeenSeenByCops), e isso por ser configurado de maneira individual para cada ponto criado no mapa, no arquivo paynspray.ini (creditos ao floydturbo)
_adicionada a função para valor de cobrança para cada tipo de veiculo, se o veiculo não tiver tipo definido (mod), então é cobrado a taxa padrão (100), e cada valor pode ser configurado no arquivo paynspray.config (creditos ao votrinhan88)
_adicionada a possibilidade de nomear no arquivo paynspray.ini cada ponto pay'n'spray criado individualmente (descrição padrão: Pay'n'Spray)
_adicionada a possibilidade de aletrar no arquivo paynspray.ini cada icone blip de pay'n'spray criado individualmente (nome icone blip padrão: LosSantosCustoms)
versão 1.0:
_adicione pontos Pay'n'Spray somente quando estiver com veiculo pressionando as teclas: Ctrl +E
_se tiver em modo perseguição, seu nivel de procurado é perdido
_esse Paynspray altera as cores primarias e secundarias (se o veiculo a tiver) do seu veiculo aleatoriamente por rgb, nao seguindo apenas as cores padrões de cada veiculo
_caso modifique manualmente os arquivos, recarrege os arquivos de configuração payspray.config e o arquivo de pontos salvos payspray.ini pressionando as teclas Ctrl+C durante o jogo
_so pode ser criado um novo a uma distancia minima de 10 unidades de outro ponto.
_alem da marcação no chão é adicionado o icone blip no mapa.
_pode ser alterado no arquivo config as teclas de acionamento e o valor padrão
_pode ser alterado no arquivo .ini os pontos salvos x y z, o valor a ser cobrado pra cada ponto pay'n'spray e qual arquivo de audio sera reproduzido.
_existe um intervalo de espera de aproximadamente 7 segundos para cada vez que mudar a cor passando pelo marcador
Bugs conhecidos:
_ as vezes ele não emite o som do spray (arquivo spray.ogg)
_sempre que recarregar os arquivo .ini com as teclas Ctrl+C os pontos antigos do mapa permanecem causando duplicidade na navegação, mas ao reiniciar o game o problema somen e o script inicia somente com os pontos blibs validos :)
Перше завантаження: 04 Березня 2025
Останнє оновлення 07 Березня 2025
Last Downloaded: 1 день назад
11 коментаря
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.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
PTBR:
Fiz esse script com o intuito de dar mais vida aos mapas e cidades mod, trazendo o classico Pay 'n' Spray dos antigos jogos GTAs. O script paynspray.cs é leve, simples, aberto e editavel, e pretendo adicionar mais coisas pra ele, por hora ele possui as seguintes caracteristicas:
versão 1.1:
_corrigido problema do bug de duplicar icones no mapa a cada vez que os arquivos paynspray.config e paynspray.ini são recarregados com as teclas Ctrl+C
_agora a pintura so ocorre quando o carro estiver parado sobre a marca (creditos ao floydturbo)
_adicionada função de fade in/out para troca suave da cor do veiculo (creditos ao floydturbo)
_adicionada a função de mostrar o icone blip no mapa e radar so quando o jogador estiver proximo, opção adicionada no arquivo paynspray.config (creditos ao floydturbo)
_adicionada a função como padrão para o pay'n'spray recusar veiculos de emergencia e policia, e isso por ser configurado de maneira individual para cada ponto criado no mapa, no arquivo paynspray.ini (creditos ao floydturbo)
_adicionada a função como padrão para o pay'n'spray recusar o veiculo se estiver como procurado e no campo de visão da policia (isWantedAndHasBeenSeenByCops), e isso por ser configurado de maneira individual para cada ponto criado no mapa, no arquivo paynspray.ini (creditos ao floydturbo)
_adicionada a função para valor de cobrança para cada tipo de veiculo, se o veiculo não tiver tipo definido (mod), então é cobrado a taxa padrão (100), e cada valor pode ser configurado no arquivo paynspray.config (creditos ao votrinhan88)
_adicionada a possibilidade de nomear no arquivo paynspray.ini cada ponto pay'n'spray criado individualmente (descrição padrão: Pay'n'Spray)
_adicionada a possibilidade de aletrar no arquivo paynspray.ini cada icone blip de pay'n'spray criado individualmente (nome icone blip padrão: LosSantosCustoms)
versão 1.0:
_adicione pontos Pay'n'Spray somente quando estiver com veiculo pressionando as teclas: Ctrl +E
_se tiver em modo perseguição, seu nivel de procurado é perdido
_esse Paynspray altera as cores primarias e secundarias (se o veiculo a tiver) do seu veiculo aleatoriamente por rgb, nao seguindo apenas as cores padrões de cada veiculo
_caso modifique manualmente os arquivos, recarrege os arquivos de configuração payspray.config e o arquivo de pontos salvos payspray.ini pressionando as teclas Ctrl+C durante o jogo
_so pode ser criado um novo a uma distancia minima de 10 unidades de outro ponto.
_alem da marcação no chão é adicionado o icone blip no mapa.
_pode ser alterado no arquivo config as teclas de acionamento e o valor padrão
_pode ser alterado no arquivo .ini os pontos salvos x y z, o valor a ser cobrado pra cada ponto pay'n'spray e qual arquivo de audio sera reproduzido.
_existe um intervalo de espera de aproximadamente 7 segundos para cada vez que mudar a cor passando pelo marcador
Bugs conhecidos:
_ as vezes ele não emite o som do spray (arquivo spray.ogg)
_sempre que recarregar os arquivo .ini com as teclas Ctrl+C os pontos antigos do mapa permanecem causando duplicidade na navegação, mas ao reiniciar o game o problema somen e o script inicia somente com os pontos blibs validos :)
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
PTBR:
Fiz esse script com o intuito de dar mais vida aos mapas e cidades mod, trazendo o classico Pay 'n' Spray dos antigos jogos GTAs. O script paynspray.cs é leve, simples, aberto e editavel, e pretendo adicionar mais coisas pra ele, por hora ele possui as seguintes caracteristicas:
versão 1.1:
_corrigido problema do bug de duplicar icones no mapa a cada vez que os arquivos paynspray.config e paynspray.ini são recarregados com as teclas Ctrl+C
_agora a pintura so ocorre quando o carro estiver parado sobre a marca (creditos ao floydturbo)
_adicionada função de fade in/out para troca suave da cor do veiculo (creditos ao floydturbo)
_adicionada a função de mostrar o icone blip no mapa e radar so quando o jogador estiver proximo, opção adicionada no arquivo paynspray.config (creditos ao floydturbo)
_adicionada a função como padrão para o pay'n'spray recusar veiculos de emergencia e policia, e isso por ser configurado de maneira individual para cada ponto criado no mapa, no arquivo paynspray.ini (creditos ao floydturbo)
_adicionada a função como padrão para o pay'n'spray recusar o veiculo se estiver como procurado e no campo de visão da policia (isWantedAndHasBeenSeenByCops), e isso por ser configurado de maneira individual para cada ponto criado no mapa, no arquivo paynspray.ini (creditos ao floydturbo)
_adicionada a função para valor de cobrança para cada tipo de veiculo, se o veiculo não tiver tipo definido (mod), então é cobrado a taxa padrão (100), e cada valor pode ser configurado no arquivo paynspray.config (creditos ao votrinhan88)
_adicionada a possibilidade de nomear no arquivo paynspray.ini cada ponto pay'n'spray criado individualmente (descrição padrão: Pay'n'Spray)
_adicionada a possibilidade de aletrar no arquivo paynspray.ini cada icone blip de pay'n'spray criado individualmente (nome icone blip padrão: LosSantosCustoms)
versão 1.0:
_adicione pontos Pay'n'Spray somente quando estiver com veiculo pressionando as teclas: Ctrl +E
_se tiver em modo perseguição, seu nivel de procurado é perdido
_esse Paynspray altera as cores primarias e secundarias (se o veiculo a tiver) do seu veiculo aleatoriamente por rgb, nao seguindo apenas as cores padrões de cada veiculo
_caso modifique manualmente os arquivos, recarrege os arquivos de configuração payspray.config e o arquivo de pontos salvos payspray.ini pressionando as teclas Ctrl+C durante o jogo
_so pode ser criado um novo a uma distancia minima de 10 unidades de outro ponto.
_alem da marcação no chão é adicionado o icone blip no mapa.
_pode ser alterado no arquivo config as teclas de acionamento e o valor padrão
_pode ser alterado no arquivo .ini os pontos salvos x y z, o valor a ser cobrado pra cada ponto pay'n'spray e qual arquivo de audio sera reproduzido.
_existe um intervalo de espera de aproximadamente 7 segundos para cada vez que mudar a cor passando pelo marcador
Bugs conhecidos:
_ as vezes ele não emite o som do spray (arquivo spray.ogg)
_sempre que recarregar os arquivo .ini com as teclas Ctrl+C os pontos antigos do mapa permanecem causando duplicidade na navegação, mas ao reiniciar o game o problema somen e o script inicia somente com os pontos blibs validos :)
Перше завантаження: 04 Березня 2025
Останнє оновлення 07 Березня 2025
Last Downloaded: 1 день назад
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.