Give all cars in OnGameModeInit Components (Tune all cars)
#1

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?
Reply
#2

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
Reply
#3

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
Reply
#4

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

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)