Spawning a tuned vehicle?
#1

Is there any way to add ingame,pre-tuned vehicles?
Reply
#2

Yes.

Place this at the top (under the server includes)

pawn Код:
new tuner;
1) Create the vehicle as usualy under OnGameModeInit using this

pawn Код:
tuner = AddStaticVehicle....
Look here: https://sampwiki.blast.hk/wiki/AddStaticVehicle

After this line (once the vehicle has been created, maybe at the end of OnGameModeInit) you can use this

pawn Код:
AddVehicleComponent(tuner,1010); // You added nitro x 10 to your vehicle "tuner"
https://sampwiki.blast.hk/wiki/AddVehicleComponent
Reply
#3

Well..

Thanks!
Reply
#4

What about if i have Dynamic vehicle system?
Reply
#5

Quote:
Originally Posted by KeyWay
Посмотреть сообщение
What about if i have Dynamic vehicle system?
Make the cars you want spawned tuned static?
Reply
#6

Quote:
Originally Posted by Anthonyx3'
Посмотреть сообщение
Make the cars you want spawned tuned static?
What do you mean
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)