public OnVehicleSpawn(vehicleid)
Alá is be kell rakni
public OnVehicleSpawn(vehicleid)
{
SaveLastPosition(vehicleid);
if (vehicleid == kezdkocsi)
{
AddVehicleComponent(Kezdkocsi,1026);
AddVehicleComponent(Kezdkocsi,1027);
AddVehicleComponent(Kezdkocsi,1028);
AddVehicleComponent(Kezdkocsi,1032);
AddVehicleComponent(Kezdkocsi,1138);
AddVehicleComponent(Kezdkocsi,1141);
AddVehicleComponent(Kezdkocsi,1169);
AddVehicleComponent(Kezdkocsi,1074);
AddVehicleComponent(Kezdkocsi,1009); // 2x Nitro
ChangeVehiclePaintjob(tunedcar2,2);
}
return 1;
}
Ha több van így csinálod
public OnVehicleSpawn(vehicleid)
{
SaveLastPosition(vehicleid);
if (vehicleid == tunedcar2)
{
AddVehicleComponent(tunedcar2,1169);//
AddVehicleComponent(tunedcar2,1032);//
AddVehicleComponent(tunedcar2,1010);//
AddVehicleComponent(tunedcar2,1074);//
AddVehicleComponent(tunedcar2,1139);//
AddVehicleComponent(tunedcar2,1141);//
ChangeVehiclePaintjob(tunedcar2,2);
}
if (vehicleid == kezdkocsi3)
{
AddVehicleComponent(tunedcar3,1150);//
AddVehicleComponent(tunedcar3,1053);//
AddVehicleComponent(tunedcar3,1010);// nitro
AddVehicleComponent(tunedcar3,1074);//
AddVehicleComponent(tunedcar3,1054);//
AddVehicleComponent(tunedcar3,1049);//
ChangeVehiclePaintjob(tunedcar3,2);
}
if (vehicleid == kezdkocsi4)
{
AddVehicleComponent(tunedcar4,1038);//
AddVehicleComponent(tunedcar4,1146);//
AddVehicleComponent(tunedcar4,1010);// nitro
AddVehicleComponent(tunedcar4,1149);//
AddVehicleComponent(tunedcar4,1172);//
AddVehicleComponent(tunedcar4,1074);//
ChangeVehiclePaintjob(tunedcar4,0);
}
return 1;
}