SetVehicleParamsEx lights daytime - 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: SetVehicleParamsEx lights daytime (
/showthread.php?tid=280329)
SetVehicleParamsEx lights daytime -
KoczkaHUN - 31.08.2011
When I use SetVehicleParamsEx to turn a vehicle's lights on, it works at night.
Daytime it does nothing.
But if I use ManualVehicleEngineAndLights, it works at daytime, too.
How can I turn the lights on without using ManualVehicleEngineAndLights?
Re: SetVehicleParamsEx lights daytime -
[MWR]Blood - 31.08.2011
You can't, why doing it?
Re: SetVehicleParamsEx lights daytime -
KoczkaHUN - 31.08.2011
I made a blinker system, but it does not work in daylight.
Re: SetVehicleParamsEx lights daytime -
Coffeemonster - 31.08.2011
The lights work on daytime only with ManualVehicleEngineAndLights, I guess. Atleast for me.
Re: SetVehicleParamsEx lights daytime -
Kar - 31.08.2011
you must use ManualVehicleEngineAndLights, under onvehiclespawn, just set a timer with a interval of 0 ms to a new public called "OnRealVehicleSpawn" then use setvehicleparamsex to turn on your params there for each vehicle.
OnVehicleSpawn is actually called before a vehicle is truely spawn so you must use another callback
Re: SetVehicleParamsEx lights daytime -
MadeMan - 31.08.2011
Engine must be turned on.