Police Flash.
#1

Hello there! I want to ask how to make a police flash system with two kinds of speed? If I am a cop, I can use /flash in any car that has lights. Then the flash has two kinds of speed like 0.5s per time or 0.2s per time. (Normal and Chasing) And how to make the lights of vehicles can be ran in day but not only nights?
Reply
#2

Use the function ManualVehicleEngineAndLights() in the callback OnGamemodeInit() to allow users to change the status of the lights/engine. After that, just make a timer with the desired time that switched on/off the lights of the vehicle; you can use the functions GetVehicleParamsEx and SetVehicleParamsEx for this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)