Jump to content

Emergency Vehicle Lights


Recommended Posts

 

 

Hello, does anyone know how I can create a system like in the video? It turns out that in the vehicle where I want to install the light bars, they don't have any function. I don't know how to make them turn on and perform that function. 

 

 

"If someone can tell me what functions I can use, I will be grateful."

Link to comment

There are functions like addVehicleSirens, setVehicleSirens and a few others that you can find by searching for "siren" in the function lists in the wiki. But I'm not familiar with them and I don't know how flexible they are.

But you can also create your own emergency lights using createMarker and attach them to a vehicle using attachElements, then control it with setMarkerColor and setMarkerSize, using either setTimer or onClientRender/onClientPreRender with getTickCount for timing, which gives you more control than the built-in siren functionality does.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...