Код:
public OnVehicleSpawn(vehicleid)
{
if(vehicleid==Tuned)
{
AddVehicleComponent(Tuned,1026);
AddVehicleComponent(Tuned,1027);
AddVehicleComponent(Tuned,1028);
AddVehicleComponent(Tuned,1032);
AddVehicleComponent(Tuned,1080);
AddVehicleComponent(Tuned,1138);
AddVehicleComponent(Tuned,1141);
AddVehicleComponent(Tuned,1171);
ChangeVehiclePaintjob(Tuned,2);
}
if(vehicleid==Tuned1)
{
AddVehicleComponent(Tuned,1026);
AddVehicleComponent(Tuned,1027);
AddVehicleComponent(Tuned,1028);
AddVehicleComponent(Tuned,1032);
AddVehicleComponent(Tuned,1080);
AddVehicleComponent(Tuned,1138);
AddVehicleComponent(Tuned,1141);
AddVehicleComponent(Tuned,1171);
ChangeVehiclePaintjob(Tuned,2);
}
if(vehicleid==Tuned2)
{
AddVehicleComponent(Tuned,1026);
AddVehicleComponent(Tuned,1027);
AddVehicleComponent(Tuned,1028);
AddVehicleComponent(Tuned,1032);
AddVehicleComponent(Tuned,1080);
AddVehicleComponent(Tuned,1138);
AddVehicleComponent(Tuned,1141);
AddVehicleComponent(Tuned,1171);
ChangeVehiclePaintjob(Tuned,2);
}
if(vehicleid==Tuned3)
{
AddVehicleComponent(Tuned,1026);
AddVehicleComponent(Tuned,1027);
AddVehicleComponent(Tuned,1028);
AddVehicleComponent(Tuned,1032);
AddVehicleComponent(Tuned,1080);
AddVehicleComponent(Tuned,1138);
AddVehicleComponent(Tuned,1141);
AddVehicleComponent(Tuned,1171);
ChangeVehiclePaintjob(Tuned,2);
}
if(vehicleid==Tuned4)
{
AddVehicleComponent(Tuned,1026);
AddVehicleComponent(Tuned,1027);
AddVehicleComponent(Tuned,1028);
AddVehicleComponent(Tuned,1032);
AddVehicleComponent(Tuned,1080);
AddVehicleComponent(Tuned,1138);
AddVehicleComponent(Tuned,1141);
AddVehicleComponent(Tuned,1171);
ChangeVehiclePaintjob(Tuned,2);
}
if(vehicleid==Tuned5)
{
AddVehicleComponent(Tuned,1026);
AddVehicleComponent(Tuned,1027);
AddVehicleComponent(Tuned,1028);
AddVehicleComponent(Tuned,1032);
AddVehicleComponent(Tuned,1080);
AddVehicleComponent(Tuned,1138);
AddVehicleComponent(Tuned,1141);
AddVehicleComponent(Tuned,1171);
ChangeVehiclePaintjob(Tuned,2);
}
if(vehicleid==Tuned6)
{
AddVehicleComponent(Tuned,1026);
AddVehicleComponent(Tuned,1027);
AddVehicleComponent(Tuned,1028);
AddVehicleComponent(Tuned,1032);
AddVehicleComponent(Tuned,1080);
AddVehicleComponent(Tuned,1138);
AddVehicleComponent(Tuned,1141);
AddVehicleComponent(Tuned,1171);
ChangeVehiclePaintjob(Tuned,2);
}
return 1;
}