# British Server Sided Sirens

## Product Information

Purchase -  [Tebex Store - British Server Sided Sirens](https://store.lgmods.co.uk/package/5971004)

This product adds over 20 British siren tones to your FiveM server, making them available to use with popular ELS scripts. The sirens themselves are 'drag and drop' to install and only require your ELS script to be modified to load the tones you decide to use.

The installation instructions on this page will be showing how to install the sirens for oELS by OM Solutions, which we highly recommend. Installation to other ELS scripts should be similar in concept.

{% embed url="<https://omsolutions.co.uk/product/emergency-lighting-system/>" fullWidth="false" %}

{% hint style="warning" %}
Be aware that this product is encrypted and distributed via Tebex for the FiveM platform only. Editing of some content will be restricted.

You cannot install this product directly into GTA5 as a modification and must use the FiveM platform to use it as a streamed resource.
{% endhint %}

{% hint style="info" %}
Trying to install London Server Sided Sirens instead? [Visit this page](https://app.gitbook.com/o/ARQRcHDGc00ICE1mxaxI/s/SJErWBfgQSVIbNNy8O52/)
{% endhint %}

## Contents

<table data-full-width="false"><thead><tr><th width="226">File/[Folder]</th><th width="289">Information</th><th>Required to be configured?</th><th data-hidden></th></tr></thead><tbody><tr><td>[data]</td><td>File required to manage how certain parts of the addon works. Do not edit</td><td>No - Do not edit</td><td></td></tr><tr><td>[dlc_lgmods]</td><td>This folder includes all the sound files. Do not alter the file names or structure.</td><td>No - Do not edit</td><td></td></tr><tr><td>.fxap</td><td>A FiveM file required to be included within the resource folder for the modification to load</td><td>No - Do not edit</td><td></td></tr><tr><td>fxmanifest.lua</td><td>FiveM config file to determine what files need to be loaded/streamed. Do not edit</td><td>No - Do not edit</td><td></td></tr><tr><td>README.txt</td><td>A file that does a poorer job at explaining what to do compared to this page! It has no functionality</td><td>No - Do not edit</td><td></td></tr></tbody></table>

{% hint style="danger" %}
Do not edit the files within this resource folder unless you know what you are doing. LGMods will not provide assistance to you if you have edited files outside of what has been set out to be edited by the customer.

Configuration must be made in your ELS script to enable these to work on vehicles.
{% endhint %}

## Installation

{% hint style="info" %}
These instructions assume you have a working FiveM server that you can already connect to without issue. Please see [here](https://docs.fivem.net/docs/server-manual/setting-up-a-server/) for more information on setting up a FiveM server.
{% endhint %}

1. Find the 'resources' folder within your FiveM server installation. It should be in the same location as your server.cfg.&#x20;
2. Download the LG Mods product from your [FiveM Keymaster](https://keymaster.fivem.net/), if you haven't already.
3. Extract the files from the ZIP archive you downloaded into the 'Resources' folder.
4. The folder inside the 'Resources' folder should be 'LGMods\_Sirens' and within it you see the files listed above.&#x20;

{% hint style="info" %}
If you find another folder inside the LGMods\_Sirens folder, then you need to make sure the contents are moved so that the files above are within the first directory you open from the resources folder, otherwise the addon will not load
{% endhint %}

5. Open your server.cfg and find where you see a number of lines that start with the word 'ensure'.  The default resources are usually included and appear like below.&#x20;

```lua
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
```

6. Below these lines is where you will add this resource with the following line

```
ensure LGMods_Sirens
```

7. Restart your server. Some resources can be loaded while the server is running using the start command, however sound files can usually have problems using this method as such we recommend you restart your server after installation.

{% hint style="info" %}
All players that join must 'stream' the asset to their computer for the first time they connect to the server. There may be a short delay when first joining a server for any siren sounds to work, before they are cached. Depending on the server and clients internet connection, there maybe a small period where the sirens don't start immediately. Please be patient and try again after one minute
{% endhint %}

## Configuration

The configuration of this product is done within your ELS script. The below instructions are based upon [oELS by OM Solutions](https://omsolutions.co.uk/product/emergency-lighting-system/), which we highly recommend.

The files we will be looking to modify in the oELS directory are;

* Config.lua
* \_Default.json (or an existing .json file you have made to configure oELS for your vehicle already)

### Configuring oELS

1. Open **Config.lua** in a text editor (Windows Notepad is fine, but Notepad++ is a free alternative that makes reading Lua and JSON files easier)
2. Scroll down to the line that has 'Config.Soundpacks = {'&#x20;
3. Replace this section with the following code;

```lua
Config.Soundpacks = {
     "DLC_LGMODS\\sirenpack_one",
     "DLC_LGMODS\\sirenpack_two",
     "DLC_LGMODS\\sirenpack_three"
}
```

{% hint style="warning" %}
You may include other sound packs in this section if you have them installed from other siren packs. You must ensure that the formatting of the JSON array remains valid (check for the quotes and a comma at the end of all but the last line). Be aware of the double backslashes \\\ too.
{% endhint %}

4. Save Config.lua and close it
5. Open your .json file which is in the ELS folder of the ELS resource. If you haven't made one yet, edit \_Default.json&#x20;
6. Within this file scroll to the bottom of the file looking for where it mentions "sirens". It should by default look like this;

```lua
 "sirens": {
        "enabled": true,
        "bullHorn": {
            "enabled": true,
            "soundFile": "SIRENS_AIRHORN",
            "soundPack": 0
        },
        "sounds": [
            {
                "soundFile": "RESIDENT_VEHICLES_SIREN_WAIL_01",
                "soundPack": 0
            },
            {
                "soundFile": "VEHICLES_HORNS_SIREN_2",
                "soundPack": 0
            },
            {
                "soundFile": "VEHICLES_HORNS_SIREN_1",
                "soundPack": 0
            }
        ]
    },
```

7. The lines that require editing are where it mentions "soundFile" and "soundPack" in four different places. A soundFile will be within one of the three soundPack files. To use a siren tone you must put the soundFile from the table below for the siren you want. You must also make sure you are using the relevant soundPack shown next to it in the table below.
8. Once you have finished, save the file. The filename MUST be the same name you have given the vehicle files and in the vehicle.meta. For example a car named POLVAN1 would be saved as POLVAN1.json.
9. Restart your FiveM server.&#x20;

{% hint style="info" %}
You will need to repeat this for every vehicle you wish to assign the LGMods Siren Pack sirens to.

If you have any issues be sure to check the F8 console raising any errors, otherwise check for typing errors.
{% endhint %}

### Siren Pack List

#### RSG MCS 32 Siren (Police Post 2012 Fleet)

<table><thead><tr><th width="213">soundFile</th><th width="323">soundPack</th><th>Description</th></tr></thead><tbody><tr><td>SIREN_ALPHA</td><td>SIRENPACK_ONE_SOUNDSET</td><td>Wail</td></tr><tr><td>SIREN_BRAVO</td><td>SIRENPACK_ONE_SOUNDSET</td><td>Yelp</td></tr><tr><td>SIREN_CHARLIE</td><td>SIRENPACK_ONE_SOUNDSET</td><td>Phaser</td></tr><tr><td>SIREN_DELTA</td><td>SIRENPACK_ONE_SOUNDSET</td><td>Bullhorn</td></tr></tbody></table>

***

#### Whelen Alpha (Police Pre 2012 Fleet)

<table><thead><tr><th width="213">soundFile</th><th width="322">soundPack</th><th>Description</th></tr></thead><tbody><tr><td>SIREN_ECHO</td><td>SIRENPACK_ONE_SOUNDSET</td><td>Wail</td></tr><tr><td>SIREN_FOXTROT</td><td>SIRENPACK_ONE_SOUNDSET</td><td>Yelp</td></tr><tr><td>SIREN_GOLF</td><td>SIRENPACK_ONE_SOUNDSET</td><td>Two-Tone</td></tr><tr><td>SIREN_HOTEL</td><td>SIRENPACK_ONE_SOUNDSET</td><td>Bullhorn</td></tr></tbody></table>

***

#### Premier Hazard 7004 (Police Carriers)

<table><thead><tr><th width="212">soundFile</th><th width="321">soundPack</th><th>Description</th></tr></thead><tbody><tr><td>SIREN_LIMA</td><td>SIRENPACK_TWO_SOUNDSET</td><td>Wail</td></tr><tr><td>SIREN_MIKE</td><td>SIRENPACK_TWO_SOUNDSET</td><td>Yelp</td></tr><tr><td>SIREN_NOVEMBER</td><td>SIRENPACK_TWO_SOUNDSET</td><td>Phaser</td></tr><tr><td>SIREN_HOTEL</td><td>SIRENPACK_TWO_SOUNDSET</td><td>Bullhorn</td></tr></tbody></table>

***

#### Whelen Alpha 12R (Fire Appliances)

<table><thead><tr><th width="212">soundFile</th><th width="320">soundPack</th><th>Description</th></tr></thead><tbody><tr><td>SIREN_INDIA</td><td>SIRENPACK_TWO_SOUNDSET</td><td>Wail</td></tr><tr><td>SIREN_JULIETT</td><td>SIRENPACK_TWO_SOUNDSET</td><td>Yelp</td></tr><tr><td>SIREN_KILO</td><td>SIRENPACK_TWO_SOUNDSET</td><td>Phaser</td></tr><tr><td>SIREN_HOTEL</td><td>SIRENPACK_TWO_SOUNDSET</td><td>Bullhorn</td></tr></tbody></table>

***

#### Whelen Euro 1 (Ambulance)

<table><thead><tr><th width="210">soundFile</th><th width="322">soundPack</th><th>Description</th></tr></thead><tbody><tr><td>SIREN_QUEBEC</td><td>SIRENPACK_THREE_SOUNDSET</td><td>Wail</td></tr><tr><td>SIREN_ROMEO</td><td>SIRENPACK_THREE_SOUNDSET</td><td>Yelp</td></tr><tr><td>SIREN_TANGO</td><td>SIRENPACK_THREE_SOUNDSET</td><td>Bullhorn</td></tr></tbody></table>

***

#### Whelen Alpha (Ambulance RRV Tones)

<table><thead><tr><th width="209">soundFile</th><th width="326">soundPack</th><th>Description</th></tr></thead><tbody><tr><td>SIREN_UNIFORM</td><td>SIRENPACK_THREE_SOUNDSET</td><td></td></tr><tr><td>SIREN_VICTOR</td><td>SIRENPACK_THREE_SOUNDSET</td><td></td></tr><tr><td>SIREN_WHISKEY</td><td>SIRENPACK_THREE_SOUNDSET</td><td></td></tr><tr><td>SIREN_XRAY</td><td>SIRENPACK_THREE_SOUNDSET</td><td>Bullhorn</td></tr></tbody></table>

### Example

Let's give an example of the block of code relating to the sirens. Here I have changed the bullhorn file to SIREN\_DELTA which is part of the SIRENPACK\_ONE\_SOUNDSET. I then use SIREN\_ALPHA and SIREN\_BRAVO for the sirens also part of SIRENPACK\_ONE\_SOUNDSET. However, I have decided to use a different third siren and instead going with SIREN\_NOVEMBER of the SIRENPACK\_TWO\_SOUNDSET.

```lua
"sirens": {
        "enabled": true,
        "bullHorn": {
            "enabled": true,
            "soundFile": "SIREN_DELTA",
            "soundPack": "SIRENPACK_ONE_SOUNDSET"
        },
        "sounds": [
            {
                "soundFile": "SIREN_ALPHA",
                "soundPack": "SIRENPACK_ONE_SOUNDSET"
            },
            {
                "soundFile": "SIREN_BRAVO",
                "soundPack": "SIRENPACK_ONE_SOUNDSET"
            },
            {
                "soundFile": "SIREN_NOVEMBER",
                "soundPack": "SIRENPACK_TWO_SOUNDSET"
            }
        ]
    },
```

{% hint style="info" %}
You can add more sirens by repeating the blocks, making sure to put a comma after the } for all but the last siren.
{% endhint %}
