SA-MP Forums Archive
Tuning cars (Rep+) - 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: Tuning cars (Rep+) (/showthread.php?tid=311450)



Tuning cars (Rep+) - boyan96 - 16.01.2012

How i can make one tuning car and when i restart the яеиэеи tuning parts to be the same ( how to save tunning parts on car and when i restart the server the car to be spawn with the tuninng)


Re: Tuning cars (Rep+) - John Rockie - 16.01.2012

I would recommend you use this.
Click here!


Re: Tuning cars (Rep+) - thimo - 16.01.2012

AddVehiclePart


Re: Tuning cars (Rep+) - boyan96 - 16.01.2012

something more easy but how will be stant with addvehiclepart


Re: Tuning cars (Rep+) - niels44 - 16.01.2012

use this:
pawn Код:
// on top of script under #include and #defines:
new car1;
pawn Код:
// under Ongamemodeinit/onfilterscriptinit:
car1 = //yourvehicle
//so for example
car1 = AddStaticVehicle(560,2288.69995117,1388.90002441,42.59999847,0.00000000,-1,-1); //Sultan
pawn Код:
// under ongamemodeinit/onfilterscriptinit too, under your tuned car i just showed:
AddVehicleComponent(car1, 1010); // this is it: AddVehicleComponent(vehicleid, componentid);   1010 is 10x NOS
and if u want it to have it tuned after restart then just put the AddVehicleComponent under OnVehicleSpawn too and u got it.
and for a list of all the components this is a link: https://sampwiki.blast.hk/wiki/Car_Component_ID

i hope i helped you out

greets niels


Re: Tuning cars (Rep+) - thimo - 16.01.2012

And thanks to niels you havent learned shit... Great job niels!


Re: Tuning cars (Rep+) - niels44 - 16.01.2012

lol thnx thimo