[Tutorial] [TUT]How to spawn tuned car
#1

Hello there this is my first tutorial
I didnt found this kind of tutorial anywhere so i said i will make my own...

Here we go...

first we need to add variable

Код:
new mycar;
then we need to add our car and give a "name" so the server will know which car to spawn tuned
This code will spawn a sultan near LV fight club.
Код:
mycar= AddStaticVehicle(560,2120.3489,2184.1875,10.3771,2.0218,17,1);
now we need to add vehicle's components.You can find vehicle components at wiki samp.

This here will add our vehicle x10nitro
Код:
AddVehicleComponent(mycar, 1010);
we finished our tuned car now,it will spawn our sultan with x10nitro.

Here is another example:
Код:
  new mycar;
  
  OnGameModeInit();
  mycar = AddStaticVehicle(560,2120.3489,2184.1875,10.3771,2.0218,17,1); //vehicle = Sultan
  AddVehicleComponent(mycar, 1010); 
  AddVehicleComponent(mycar, 1026);
  AddVehicleComponent(mycar, 1027);
  AddVehicleComponent(mycar, 1028);
  AddVehicleComponent(mycar, 1029);
  AddVehicleComponent(mycar, 1030);
  AddVehicleComponent(mycar, 1031);
  AddVehicleComponent(mycar, 1032);
  AddVehicleComponent(mycar, 1033);
  AddVehicleComponent(mycar, 1138);
  AddVehicleComponent(mycar, 1139);
  AddVehicleComponent(mycar, 1140);
  AddVehicleComponent(mycar, 1141);
  AddVehicleComponent(mycar, 1169);
  AddVehicleComponent(mycar, 1170);
This example makes our sultan fully tuned!



I hope you like it !



Reply


Messages In This Thread
[TUT]How to spawn tuned car - by [eF]ThundeR - 11.01.2010, 17:19
Re: [TUT]How to spawn tuned car - by Martin_M - 11.01.2010, 18:20
Re: [TUT]How to spawn tuned car - by smeti - 11.01.2010, 19:16
Re: [TUT]How to spawn tuned car - by kamalhood - 14.09.2010, 05:09
Re: [TUT]How to spawn tuned car - by playbox12 - 15.09.2010, 12:53
Re: [TUT]How to spawn tuned car - by Basicz - 23.09.2010, 12:46
Re: [TUT]How to spawn tuned car - by hypoflex - 08.09.2011, 13:26
Re: [TUT]How to spawn tuned car - by Matrix69 - 01.02.2014, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)