Dismiss Notice

In the upcoming weeks mod approvals could be slower than normal.
Thank you for your patience.

Beta Custom Siren Controller 1.1

Change between Wail, Yelp, and Phaser without having to modify your vehicle.

  1. cloudcoder8
    In BeamNG Drive, you can only have one siren sound per vehicle. This mod is a custom siren controller that gives you the ability to have a Wail, Yelp, Phaser, etc... in each emergency vehicle, and you don't need to modify your vehicle if you want to change your siren tone.


    What vehicles this mod works on:

    Bruckell Bastion,

    Ibishu 200bx,

    Covet,

    Gavril Grand Marshal,

    Ibishu Hopper,

    LeGran,

    Gavril D-Series,

    Gavril Roamer,

    Hirochi SunBurst,

    Gavril H-Series,

    Soliad Wendover



    How to use this mod:
    When you are in your desired vehicle, go to the vehicle config, then the roof accessory, and then set the siren to 'Empty'. This will remove BeamNG Drive's built in siren controller, so you can use this one instead. It should work now. Press the apostrophe to turn on the siren, and press it again to turn it off. The lightbar will automatically turn on when you turn the siren on, so press the keybind you have set up toturn on/off the lightbar to turn it off. Press the semicolon key to change the siren tone.


    Here are a couple of videos showcasing this mod:

    Dual Tones:


    Single Tones:



    How to change the builtin siren tones:
    Unzip the mod, go to art, sounds, and replace the sound files that's already in the folder with your own custom sound files. Next, go to lua, common, controller, and then open the sirenTones.lua file with a text editor (such as NotePad++), and then go to the table called 'toneList', and each entry in this table will look something like this '[1] = "art/sound/Wail.wav",' the number in the entry (in this case, the place where the number 1 is), and set that number to what place in the table that entry is in. So if it's the first entry in the table, then set it to one, if it's the second entry in the table, then set it to two, if it's the third entry in the table, then set it to three, etc... Next, the text inside the quotation marks is the location of the siren tone that that entry is representing. You should not change the 'art/sound/' part. Only change the name ("Wail") to the name of your siren tone (It's case sensitive, so if the sound file name is wail, then this part of the text inside the quotation marks should be set to wail, if it's Wail, then set it to Wail), next the text behind the period should be set to the file extension name. So if the sound file is an mp3 file, then replace the ".wav" with ".mp3", or if it's an ogg file, then set it to ".ogg" instead of ".wav", etc... There must be one closing quotation mark after the file extension, and one comma after the closing quotation mark.

    Do this to each siren tone you created, and be sure to delete/replace the siren tones you removed from the table.

    Next, re-zip the file, and then put it in the BeamNG Drive mods repository folder (make sure it replaces the unmodified copy of the siren controller zip file).


    How to change the siren to dual tone:
    Fun fact... you don't need to use an audio manipulation program such as Audacity to change the siren tones to dual tone. There is a table inside the lua\common\controller\sirenTones.lua file called 'toneMaps', and there is a toneMaps table that is surrounded by this: --[[]]-- that means it's disabled. This tone maps table is what makes the siren dual tone. To 'un-disable' it, you will have to remove this thing from it: --[[]]-- Next, you will have to surround the default toneMaps table with this --[[]]--. The Dual Tone tone maps table looks something like this:
    local toneMaps = {
    [1] = {1, 2},
    [2] = {1, 3},
    [3] = {3, 4},
    [4] = {5, 3},
    [5] = {6, 5},
    }

    Each entry in the table looks a little something like this: [1] = {1, 2}, the number of the entry (in this case, the little lonely one inside of the square brackets [1]), this number must be the number of what position this entry is in the table. So if it's the first entry in the table, then it must be set to one, or if it's the second entry, then it must be set to two, or if it's the third entry, then it must be set to three. Next, we have this part {1, 2}. This 1, and 2 means that the siren associated with the first entry in the toneList table, and the siren tone associated with the second entry in the toneList table will both play at exactly the same time. These rules apply to every entry in this table. So if this entry looked like this {3, 4}, then instead of siren tone 1, and siren tone 2 playing at the same time, then the siren tones associated with the third, and fourth entries in the toneList will play at the same time rather than the first and second. This is what creates the dual tone functionality without having to use a program like Audacity. Make sure to put this: }, without the spaces after the last number in each entry.

    Next, re-zip the file, and then put it in the BeamNG Drive mods repository folder (make sure it replaces the unmodified copy of the siren controller zip file).

    If you'd like to support the development of my mods, you can donate here: https://www.buymeacoffee.com/cloudcoder8


    Known Issue(s) with this mod:

    1. Siren works on amber / orange lightbars.
    2. I forgot to add this siren to the European police cars.

Recent Updates

  1. Changed the location of the lua script.

Recent Reviews

  1. DW_GAMING
    DW_GAMING
    2/5,
    Version: 1.1
    Hey nice mod but It needs an update and, It needs to be fixed. it wonæt work for me. Iæve tried clearing cache files and, it didnæt worked.
  2. Plasmapwrdhorse
    Plasmapwrdhorse
    5/5,
    Version: 1.1
    Nice mod. It could use the rumbler too
  3. JustANormalDriver
    JustANormalDriver
    5/5,
    Version: 1.1
    FINALLY WE HAVE A MOD THATS ALL IN ONE AND NOT GOOFY AHH SEPERATE MODS TAKING UP MOD SPACES
    1. cloudcoder8
      Author's Response
      Goofy? Lol, thanks for the funny review.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice