Git Product home page Git Product logo

wmserversirens's Introduction

WMServerSirens - Server Sided Sirens

We’ve only gone and done it! Ladies and gentleman, after many strenuous hours of hard work, we’ve finally developed server side sirens for FiveM! We’ve seen a constant demand for this resource and that’s given us a huge motivational boost to develop it. You can now add server side sirens to your server which can be used in conjunction with a majority of siren scripts (eg. luxart). You can also change the air/bullhorn!

This documentation will assist with the installation of sirens and provide a starting point for developers, configuring the plugin for use with their ELS scripts.

LONDON STUDIOS DISCORD - Join HERE. WALSHEY MODIFICATIONS DISCORD - Join HERE.

Installation

Video on how to install

Download the resource from GitHub here. Step 1: Copy ‘wm-serversirens’ to your resources folder. Step 2: Open your server.cfg and write“ensure wm-serversirens” anywhere in the config. Step 3: Follow our documentation on adding custom sirens below!

Adding custom sirens

We’ve provided the ability for you to add custom sirens without any knowledge of code or development. After following our simple guide, you’ll be cooking on gas in no time!

You’ll be required to use OpenIV or another AWC editing program to add or edit custom sirens into the game. Our plugin comes ready with 3 siren pack AWC files ready to edit.

Step 1: Navigate to “dlc_wmsirens” in the directory.

Step 2: Navigate to the “oac” folder.

Step 3: Change the .wav files with your custom .wav files. Do not change the file names, this is very important, WMServerSirens will not function properly if you do this.

Step 4: After editing the siren pack, navigate to the .oac file and drag it into OpenIV. This will compile the .AWC file together and allow you to use it in your server.

Step 5: Drag and drop the AWC file you previously created into “dlc_wmserversirens”, replacing the base siren pack. Do not change the name of the siren pack.

Step 6: Start up your server and go for a celebratory drive! Let off some fireworks.

Configuring with ELS

Out of the box, this won’t work immediately with every ELS script and will require some tweaking. Essentially, most ELS scripts use the “PlaySoundFromEntity” FiveM native function. This is what you’ll use to play our sirens, however it will need to play the custom siren, referencing one of the sirens from our three siren packs, which you can edit.

Requesting the audio: At the top of your ELS script, you’ll need to request the audio for the custom sirens, essentially downloading it for all clients, as these are external sounds.

RequestScriptAudioBank(“DLC_WMSIRENS\\SIRENPACK_ONE”, false)

If you’ve only made changes to the first siren pack, you’ll only need to include the first one.

Playing the custom sounds: To play a siren from a vehicle, use the following native:

PlaySoundFromEntity(-1, “SIREN_ALPHA”, veh, “DLC_WMSIRENS_SOUNDSET”, 0, 0)

“veh” = The vehicle the player is in, we recommend using GetVehiclePedIsUsing(PlayerPedId()).

Example:

In there, you’d change VEHICLES_HORNS_SIREN_1, with “SIREN_ALPHA”. However, you would need to edit the ELS script to use the “DLC_WMSERVERSIRENS_SOUNDSET” custom DLC when playing the sound from the entity.

On the other hand, you could use an if statement in code, checking the current vehicle and then play the right siren.

Naming convention:

As you may notice, the sirens you’ll be editing are all named using the phonetic alphabet, this will be used to keep track of the siren number for our development purposes.

A quick google search will reveal the full list of the alphabet for you.

Feedback and suggestions

We thank you for downloading this resource, we've worked extremely hard on it and we hope you enjoy using it. However, we will always be looking for feedback and suggestions in the comments below.

We'd like to credit Double Doppler for his British sirens, included in the resource.

wmserversirens's People

Contributors

londonstudios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wmserversirens's Issues

doenst work with MrDaGree/ELS-FiveM

I have MrDaGree/ELS-FiveM my vehicles need it to work the leds, I followed the installation video I configured lux_vehcontrol as necessary, but it doesn't work the sound of the sirens, how do I fix this or what do I need to do?

Add more sounds?

We're now having 8 sound options (alpha, bravo, charlie, delta, echo, foxtrot, golf and hotel), is it possible to add more? Like india, juliet, kilo, lima...

I tried it myself but I'm having trouble figuring out how the hashes work etc.

Audio 'render distance'

Hey there,

We noticed that when player A starts driving with the sirens on (custom sound) and drives to player B, player B hears the default GTA siren in stead of the custom sound. Player A hears the correct sound. This only happens if the siren was started quite far away from player A. When started within a certain range, this problem doesn't exist.

So is there some kind of 'rendering distance' but for audio going on?
Anyone else experiencing this issue?

Stopping the Audio Once Triggered

I've tried in multiple different ways to be able to stop the audio once I start playing it but I cannot figure it out. I've tried storing it locally and in a table and using the StopSound native to no avail. Any help would be appreciated!

Sirens still default

I've changed the Sirens to Custom Sirens, restarted the Server, Script started successfully but the Sirens are still the default GTA Sirens

No Sound anymore

Hello!
I use your Ressource for a long Time now. I try add new Siren's (of course same name) and this doesnt work.

Any Suggestion?

Friendly Regards
Boomatisch

Server crashes with the updates to lux_vehiclecontrol

hey, i have been looking for a script like this for a while and tried to use it, followed your video on how to install them, but when i edit the lux_vehcontrol client.lua with what you have my server crashes players out
error1
error3
error 2
.

doenst work with els

i have elsplus because my vehicles need that but it doenst work with this script how do i fix this or what do i need to change in the els file for the vehicle?

Help wanted

Hello!,
nice Release!. I use it on my Server. I want to ask if it is possible to "stream" a custom Police Horn? So if anybody press E we hear a other Police Horn ... is that possible? And can we add Custom Siren's for Police and for Fire?

I use LuxVehiclecontrol :)
I hope you can help me
Friendly Regards
Boomatisch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.