• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Change Vehicle Color After Respawn
#1
Question 
Hello everybody! I have a question about a possible problem I am facing. I added some vehicles using the "AddStaticVehicleEx" function with a respawn delay of 300 seconds, and with colors already defined. Is it possible to make the colors change after it respawns? The way I'm trying to make this work is to use the "OnVehicleSpawn" callback with the "ChangeVehicleColor" function. However, after the vehicle is respawned, the color remains the same.

PHP Code:
public OnVehicleSpawn(vehicleid)
{
ChangeVehicleColor(vehicleidrandom(127), random(127));
return 
1;

RECEBA! É O CARA DA LUVA DE PEDREIRO!
GRAÇAS A DEUS PAI! O MELHOR DO MUNDO!

[Image: giphy.gif]
  Reply


Messages In This Thread
Change Vehicle Color After Respawn - by LuvaDePedreiro - 2024-06-28, 12:54 PM

Forum Jump: