Deployable Emergency Vehicle Light lets a driver fit an emergency light to a vehicle on the spot. An undercover officer could use it, as could a paramedic or someone doing road work. While driving, use the item or run the deployment command to fit the light. Vehicles on the blacklist are excluded.
What happens when you fit the light
On a roofed vehicle, the default setup automatically picks a suitable position for the light. Players nearby can see it rotate or blink. The lights stay in sync across players, and each player sees only the lights on vehicles close to them.
L-SHIFTswitches the optional siren on or off once the light is in place.L-CRTLtakes the light off. Drivers can also remove it with a command.
You can change either keybind. The siren itself is optional, so you can leave it disabled.
Setting up vehicles and colors
You can configure vehicles individually. For a special vehicle, you can choose the light position by hand. That includes vehicles without roofs. A particular vehicle can also have its own placement animation and its own sirens. The script accepts custom sirens and lets you configure sirens, animations and light properties.
Pick a color for each vehicle from orange, blue and red. Another option is to give each color its own item. With separate items, the light displays the color of the item the driver uses.
Files and inventory requirements
The files contain the unencrypted light props. If you use the script without the item, it runs standalone and has no dependencies. Using the item requires a compatible inventory script. Examples include esx, qb and ox.
Resmon with nearby vehicles
The script is optimized for multiple lights in use at once. The reported Resmon reading is 0.00ms at idle. With one vehicle’s light in use, it measures 0.07ms. With lights deployed on 10 nearby vehicles, the reading is 0.13ms.
