No siren and police lights on added police cars

Hi everyone, we’re having a problem on our server where every add-on emergency vehicle’s lights and sirens do not work. Instead we only hear the regular horn. We’ve tried it with a bunch of different cars and we always run into the same problem.

We made sure vehicleClass is set to VC_EMERGENCY and tried different values for sirenSettings but to no avail. We also tried using Luxart Vehicle Control.

Here’s the .meta files of a pack we’ve been trying to work with.

carcols.meta (55.7 KB) carvariations.meta (8.2 KB) handling.meta (13.3 KB) vehicles.meta (57.5 KB)

Any help or suggestion would be greatly appreciated.

You need to add each car individually. You can’t have evey car in one resource folder. That only works if you are replacing a vehicle and adding the custom carcol file. You will need to have say police car 5 in one resource and police car in another resource folder for this to work. Ny server has over police vehicles which I have made over 30 resource folders for them to work. It does mean if you need to edit a vehicle it will be easier to fix/edit

Woohoo, post bump
Seriously though, I have to post this message as yours is misleading.
You can have ALL cars in one resource, and there are two main ways to do so. Let me elaborate:

First One

This one is an “easier” one, and it’s explained in detail in this post

Second One

The second one is somewhat similar, but the actual process is different and that’s how I personally prefer merging vehicle files together.
As always, don’t forget to merge all stream folders first lol
Next, open each .meta file individually and copy the “contents” to a single file. The exact method varies per file, but it’s normally the <Item>*</Item> part after the CArchetype definitions and whatnot. I cant really explain this, but it’s sorta self-explanatory once you try.
It’s also a good idea to run the new .meta files through an XML Validator as it’ll pick up any syntax errors you made.

As such, there is no need to have multiple resources for each vehicle individually. You can, if you wanted to, merge literally every single vehicle into one resource and it WILL work as long as it’s done properly. Not only does the overall resource count go down that way (having too many leads to some weird issues), it also makes client loading time arguably faster, having to index fewer (but larger) files and only mount data from 4-5 files at startup instead of 40-50.

P.S. You do need to be careful with SirenIDs and other IDs specifically, though - make sure none are duplicated. Easiest way to search for them is using VSCode to look inside *.meta files for a specific number.

Thank you both for your replies. We’re no longer trying to make this specific pack work but we had a similar problem on other vehicles. It was indeed solved by changing siren IDs to random six digits integers and making sure each vehicle uses a different ID.

No particular problem with having them all in the same ressource.

1 Like