SA-MP Forums Archive
how to give a tuner a paintjob? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to give a tuner a paintjob? (/showthread.php?tid=300026)



how to give a tuner a paintjob? - niels44 - 28.11.2011

hey guys,
i want to make a paintjob for my vehicles in my gamemode but now i got a problem...
i made this:
Код:
public OnVehicleSpawn(vehicleid)
{
 	SetVehicleToRespawn(sultan1);
        ChangeVehiclePaintjob(sultan1,2);
	return 1;
}
Код:
new sultan1; // sultan
Код:
sultan1 = Cars[Drifters] = AddStaticVehicle(560,1245.90002441,-2035.19995117,59.59999847,270.00000000,-1,-1); //Sultan
but it isnt working.. how to make it that the sultan gets the vehicle paintjob 3 so it's got X FLOW on its car... i wnat to maek this with all my cars in teh script.. so pls help me
niels

EDIT:
i just found out that it works after i used /respawncars but now the cars dont have a spoiler anymore i gave the cars spoilers and alien roof too but that isnt on it now anymore.. psl how to fix this.. i want this having good...


Re: how to give a tuner a paintjob? - AstonDA-G - 28.11.2011

Have you tried adding the spoiler again with AddVehicleComponent under OnVehicleSpawn?


Re: how to give a tuner a paintjob? - niels44 - 28.11.2011

eehm no XD i will try it now XD thnx