Vehicle paintjob + color
#1

How do i force the paintjob to be colored as vehicle at OnVehicleSpawn or CreateVehicle?
I allready tried this:

OnVehicleSpawn(vehicleid){
ChangeVehiclePaintjob(vehicleid, vInfo[vehicleid][vPJ]);
ChangeVehicleColor(vehicleid, vInfo[vehicleid][vC1], vInfo[vehicleid][vC2]);
return 1;}

Same with CreateVehicle but the paintjobs is still having standard color, not the custom one.

Updated: I tried the same but ChangeVehicleColor(vehicleid, 3, 3); and it worked. Maybe the problem is function difficulties with vInfo array?
Reply
#2

You mean when a player is in a vehicle that he use a command /pt 1 0
/pt is a command for change colour and 1 0 is colour white and colour black
Do you mean that?
Reply
#3

Im having a vehicle system which spawns player vehicles. Everything saves fine, mods, colors etc. But when the system is trying to apply a paintjob for some vehicle while loading it, the color of the car is changing to a standard paintjob color. Thats the problem.

Update: Solved. Vehicle color 1 was reseting to id 1 after OnVehicleRespray.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)