SA-MP Forums Archive
Help: Engine off after respawn car(s) - 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: Help: Engine off after respawn car(s) (/showthread.php?tid=401614)



Help: Engine off after respawn car(s) - jakejohnsonusa - 23.12.2012

So in my GM I have ManualVehicleEngineAndLights(); it's great except for one problem... When a car respawns (either because /respawnallcars or because the spawn time has gotten to 0) the engine remains running, this is probably because it is never told to turn off, just reset it's location. But HOW do I make it turn off when it respawns?

Thanks: jakejohnsonusa


Re: Help: Engine off after respawn car(s) - [HK]Ryder[AN] - 23.12.2012

Put ManualVehicleEngineAndLights(); in the callback OnVehicleSpawn