FERNANDO-KAISER Posted August 21, 2023 Share Posted August 21, 2023 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
DiSaMe Posted August 26, 2023 Share Posted August 26, 2023 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now