SA-MP Forums Archive
Give all cars in OnGameModeInit Components (Tune all 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: Give all cars in OnGameModeInit Components (Tune all cars) (/showthread.php?tid=100617)



Give all cars in OnGameModeInit Components (Tune all cars) - RyDeR` - 05.10.2009

Hello, I want to tune all vehicles when I start the server, example I want to add these codes to all cars in my server:

Код:
AddVehicleComponent(car, 1010);
AddVehicleComponent(car, 1078);
I tried with OnVehicleSpawn but it didn't work .. Anybody know how?


Re: Give all cars in OnGameModeInit Components (Tune all cars) - Nexx - 05.10.2009

You must put it onder the car like this.

AddStaticVehicleEx(560, 1279.249145, -2027.948852, 58.687099, 180.962158, -1, -1, 60000);
AddVehicleComponent(super, 1087); // Hidraulics
AddVehicleComponent(super, 1010); // Nitro


Re: Give all cars in OnGameModeInit Components (Tune all cars) - RyDeR` - 05.10.2009

Quote:
Originally Posted by Nexx
You must put it onder the car like this.

AddStaticVehicleEx(560, 1279.249145, -2027.948852, 58.687099, 180.962158, -1, -1, 60000);
AddVehicleComponent(super, 1087); // Hidraulics
AddVehicleComponent(super, 1010); // Nitro
I know this..

I want to create them all in one with the components..
I mean they all must get these components


Re: Give all cars in OnGameModeInit Components (Tune all cars) - brett7 - 05.10.2009

make it so on a player changes state to a vehicle then it gives them the mod


Re: Give all cars in OnGameModeInit Components (Tune all cars) - RyDeR` - 05.10.2009

Quote:
Originally Posted by brett7
make it so on a player changes state to a vehicle then it gives them the mod
Naah, I don't want It like you say..
It just must all AddStaticVehicles give a component..