Posts: 727
Threads: 111
Joined: May 2011
Reputation:
0
Hey guys. I have an issue whenever a player enters an interior and then exits the vehicles around change colors. I've looked for the callback RandomColor or something but I can't find it anywhere in my script. Any ideas?
Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
I'm not sure bur; Your vehicles spawn with the int -1 on CreateVehicle or AddStaticVehicle. Something like that.
Posts: 727
Threads: 111
Joined: May 2011
Reputation:
0
How is that going to change the color of the vehicle?
Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
Because -1 set to random color. So, every time (i think) you will stream vehicles a new color will be set to the vehicle.
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
Set the vehicle's color to a specific color (0 for instance = black) instead of -1 which is random as @Dayrion mentions above.
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
Can you show us the part of the code where in the vehicle is being created? (CreateVehicle, AddStaticVehicle, etc...)