SetVehicleParams for a already spawned car
#1

How would i do this ?

I have some vehicles in the server that are not owned and are always unlocked im just wondering how would i make it so when a person enters the vehicle the engine will be off

Help is appreciated
Reply
#2

Quote:
Originally Posted by Geniuss
Посмотреть сообщение
How would i do this ?

I have some vehicles in the server that are not owned and are always unlocked im just wondering how would i make it so when a person enters the vehicle the engine will be off

Help is appreciated
Use "ManualVehicleEngineAndLights();" under "OnGameModeInIt". This means the people will need to start engine before they can drive.
Reply
#3

Quote:
Originally Posted by DaRealShazz
Посмотреть сообщение
Use "ManualVehicleEngineAndLights();" under "OnGameModeInIt". This means the people will need to start engine before they can drive.
But i need it so its only on vehicles that are just laying around the place not owned and wont be owned
Reply
#4

Use ManualVehicleEngineAndLights and then you can use SetVehicleParamsEx to set an individual vehicles engine state.
Reply
#5

Quote:
Originally Posted by h02
Посмотреть сообщение
Use ManualVehicleEngineAndLights and then you can use SetVehicleParamsEx to set an individual vehicles engine state.
But all my cars that are not owned and wont be owned are in a file
Reply


Forum Jump:


Users browsing this thread: