new car; public OnGameModeInit() { car=AddStaticVehicle(542,-1834.9572,1288.3302,31.5905,23.2091,3,82); AddVehicleComponent(car, 1010); // 10x Nitro AddVehicleComponent(car, 1014); // Spoiler Champ AddVehicleComponent(car, 1019); // Twin Exhaust AddVehicleComponent(car, 1082); // Wheels Import AddVehicleComponent(car, 1144); // Square vents AddVehicleComponent(car, 1145); // Square vents AddVehicleComponent(car, 1087); // Hydraulics AddVehicleComponent(car, 1086); // Stereo ChangeVehicleColor(car,3,115); }
public OnVehicleSpawn(vehicleid) { if(vehicleid==car) { AddVehicleComponent(car, 1010); // 10x Nitro AddVehicleComponent(car, 1014); // Spoiler Champ AddVehicleComponent(car, 1019); // Twin Exhaust AddVehicleComponent(car, 1082); // Wheels Import AddVehicleComponent(car, 1144); // Square vents AddVehicleComponent(car, 1145); // Square vents AddVehicleComponent(car, 1087); // Hydraulics AddVehicleComponent(car, 1086); // Stereo ChangeVehicleColor(car,3,115); } }
if(vehicleid==car)
Originally Posted by ► James_Alex
no he need it to check the vehicle id
and i think you must set a timer of 1 second in "OnVehicleSpawn" then do all the functions after the timer |