2024-06-28, 12:54 PM
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(vehicleid, random(127), random(127));
return 1;
}
RECEBA! É O CARA DA LUVA DE PEDREIRO!
GRAÇAS A DEUS PAI! O MELHOR DO MUNDO!