SA-MP Forums Archive
How to add moded cars - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to add moded cars (/showthread.php?tid=243702)



How to add moded cars - wheelman_WM - 24.03.2011

Hey how can i add moded cars in my server ?


Re: How to add moded cars - Mike_Peterson - 24.03.2011

Make a variable like:
new VehicleA;
Then you'll need to spawn the vehicle like
VehicleA = AddStaticVehicle(blablabla

then you can use the addvehiclecomponent function
AddVehicleComponent(VehicleA,1010); // This adds nos to the vehicle (i thought)

See, easy?


AW: How to add moded cars - Pablo Borsellino - 24.03.2011

With AddVehicleComponent(Vehicleid,ComponentID); you can Add Tuningparts to a specific vehicle. Not all Tuningparts work for every Vehicle like 10xNos (Component ID 1010) dont works for a Monster Truck (Model ID 444). You can see all Tuningparts here »click me«.