SetVehicleParams for a already spawned car - 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)
+--- Thread: SetVehicleParams for a already spawned car (
/showthread.php?tid=347462)
SetVehicleParams for a already spawned car -
Geniuss - 02.06.2012
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
Re: SetVehicleParams for a already spawned car -
DaRealShazz - 02.06.2012
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.
Re: SetVehicleParams for a already spawned car -
Geniuss - 02.06.2012
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
Re: SetVehicleParams for a already spawned car -
Scott - 02.06.2012
Use ManualVehicleEngineAndLights and then you can use
SetVehicleParamsEx to set an individual vehicles engine state.
Re: SetVehicleParams for a already spawned car -
Geniuss - 02.06.2012
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