Sirens and emergency lights
Emergency lights are set up in three places: the lights in the model, a siren setting in carcols.meta, and a line in carvariations.meta that joins the two. ModFiveM does all three, from a preset, with an ID that is free.
How emergency lights work
A car’s emergency lights are bones in the model named siren1 to siren20, so a car can have up to 20 lights. Each light usually has a glass part beside it, siren_glass1 and so on, that glows when it flashes.
How the lights flash is a siren setting in carcols.meta: for each light its colour, how it turns and when it flashes. Every setting has an ID:
<Sirens> <Item> <id value="187" /> <name>polcruiser</name> <sequencerBpm value="600" /> <sirens> <!-- one <Item> per light: siren1 to siren20 --> </sirens> </Item></Sirens>The car uses a setting by its ID, in carvariations.meta:
<Item> <modelName>polcruiser</modelName> <!-- colours, kits and windows… --> <sirenSettings value="187" /></Item>Set up the lights
Open Sirens. The view shows each siren light on the car.
Choose a preset, such as blue and red, all blue or amber. ModFiveM writes a siren setting for the car’s lights.
Change the colour or the flash of single lights if you want.
Bon à savoir
If the car has no siren bones, ModFiveM adds them where you place the lights. They flash as light in the game; a light bar whose glass lights up needs a model with glass parts of its own.
A free siren ID
Siren setting IDs go from 1 to 255, and the whole server shares them. A 0 in carvariations.meta means the car has no siren setting.
If two cars on your server use the same ID, the setting loaded last wins and the other car flashes the wrong lights. The broken lights show up on a car you did not touch, which makes this hard to find.
ModFiveM picks an ID no carcols file in the resource uses. For another one, type it in the Siren ID field.
Before you export, search your server’s other car resources for the number in their carcols.meta files. If no other car has
id value="187", keep it.
Attention
Every car with sirens needs an ID of its own. When you add several police cars, give each one a different ID.
Lightbars and extras
Extras are parts a car can show or hide, named extra_1, extra_2 and so on: a lightbar, a push bar, a roof sign. Extras lists them, and there you can remove an extra for good or make it always on.
Light controllers on many servers, such as ULC, switch extras on and off together with the lights. Make sure the extras they should use are on the car.