Posts: 498
Threads: 34
Joined: Jan 2010
Reputation:
0
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?
Posts: 498
Threads: 34
Joined: Jan 2010
Reputation:
0
I made a blinker system, but it does not work in daylight.
Posts: 143
Threads: 10
Joined: Nov 2010
Reputation:
0
The lights work on daytime only with ManualVehicleEngineAndLights, I guess. Atleast for me.
Posts: 2,938
Threads: 162
Joined: May 2010
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
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
Engine must be turned on.