SetVehicleParamsEx lights daytime
#1

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?
Reply
#2

You can't, why doing it?
Reply
#3

I made a blinker system, but it does not work in daylight.
Reply
#4

The lights work on daytime only with ManualVehicleEngineAndLights, I guess. Atleast for me.
Reply
#5

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
Reply
#6

Engine must be turned on.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)