SmartSounds - London Studios - FiveMods
Goodbye, old look! Hello, new look!
We would like to inform you that FiveMods implemented exciting updates and improvements to enhance your experience on the new released rework.
Visit us here: www.fivemods.net.
This website is only accessible with limited features. Restricted features: Upload, Login, Partner program



SmartSounds - London Studios

Downloads: 396 | Uploaded: 12. Apr 2021

(0)
免費下載 ScriptsSounds Custom Sounds Play LondonStudios C# Doorbell

简介

SmartSounds is a FiveM resource allowing you to play custom sounds in-game to players nearby, featuring an easy to configure "config.ini" and the ability to just drop in any <b>mp3</b>, <b>wav</b> or <b>ogg</b> sound file.

Example usage: Create a doorbell sound, or a knock at a door!

This plugin is made by LondonStudios, we have created a variety of releases including TaserFramework, SearchHandler, ActivateAlarm and more!

Join our Discord here.

!enter image description here

Usage

/sound [name] - Plays the selected sound to yourself and nearby players.

/sounds - Lists all available sounds

/stopsounds - Stops nearby sounds

All sounds heard by nearby players reduce in volume the further away they are, the initial sound volume and the radius can all be configured in the "config.ini" file.

Installation

Download the resource from GitHub here.

1. Create a new resource folder on your server.

2. Add the contents of "resource" inside it. This includes:

"Client.net.dll", "Server.net.dll", "fxmanifest.lua", "index.html", "sounds", "SharpConfig.dll", "config.ini"

  1. In server.cfg, "ensure" SmartSounds, to make it load with your server startup.

Configuration - Adding custom sounds

This plugin can be fully configured in the "config.ini" file. If this is configured wrong, the plugin and/or certain sounds will not work and the plugin will alert you of this in-game.

```

[SmartSounds]

Commands = { doorbell, doorknock }

SoundVolume = 0.6

SoundRadius = 20.0

```

  1. Open up "config.ini".
  2. On line 2 you can add extra sounds here. They must be in the list otherwise they will be disabled. (See further steps required below for adding sounds).
  3. On line 3 you can adjust the sound volume, this must be lower than 1.0.
  4. On line 4 you can adjust the sound radius, we recommend keeping this at 20.0.

Adding custom sounds:

After you have added the command to line 2, you must specify the sound file name for each command, by creating a new section for each sound. This must be done like this:

```

[doorbell]

SoundFile = doorbell.mp3

```

The [doorbell] is the name of the command, this must match the command you entered on <b>line 2</b>.

The SoundFile = "doorbell.mp3" is the sound file name, the sound must be placed in "sounds" folder in the resource.

Please ensure you include the file type, this must be either "mp3", "wav", or "ogg".

This must be done for each extra command, in the example config.ini you'll see two commands created already.

Source Code

Please find the source code in the "src" folder. Please ensure you follow the licence in <b>"LICENCE.md"</b>.

Feedback

We appreciate feedback, bugs and suggestions related to SmartSounds and future plugins. We hope you enjoy using the resource and look forward to hearing from people!

Profile Picture创作者为 LondonStudios. Show more

此创作者的其他模组

https://storage.fivemods.net/uploads/1/hfgU5Qz73v4H/img/43PF51glKwR0JyUG7jzx1.png-Image (display)
What3Words (W3W)

This free resource is a great addition to any roleplay server, allowing the use of What3Words inside FiveM. Instead of coordinates...

https://storage.fivemods.net/uploads/1/RjqgtpiQW9s5/img/BD1w4WkJHc0VXNFRUfIi7.png-Image (display)
CustodyAlarm - London Studios

CustodyAlarm is a **FiveM** resource allowing you to activate custody alarms at custody stations. The locations can be fully custo...

https://storage.fivemods.net/uploads/1/Ao7Z5ycabErB/img/yznZMkJAD1ibmLx6Fov97.png-Image (display)
SearchHandler - London Studios

This plugin is designed to enhance the player search experience for your FiveM server, a simple resource allowing players to set t...

https://storage.fivemods.net/uploads/1/MBs68Q5qnelP/img/o465cFg9S1VLOWHyfnrv7.png-Image (display)
SmartTester - London Studios

SmartObservations is a FiveM resource enhancing the roadside testing experience. The resource includes a customisable **Bre...

https://storage.fivemods.net/uploads/1/bIUsWqA9D1uz/img/Ng5YwCLf2jqQivOB7Z687.png-Image (display)
Play Custom Sounds - London Studios

**PlayCustomSounds** is a standalone FiveM Resource allowing you to play external sounds in your FiveM server from other resources...

https://storage.fivemods.net/uploads/1/NPZY4tzcDQiF/img/S6IvZeG9wTgkLoUa2s1N7.png-Image (display)
SmartObservations - London Studios

SmartObservations is a FiveM resource which enhances the experience of taking and working with **medical observations** (eg, Heart...

https://storage.fivemods.net/uploads/1/nCafPcDXOjt6/img/yD8vji1NRwLB9Ugzkhe0l.jpg-Image (display)
Police Handbook

This modification implements a British Police Handbook into FiveM (Server Side). The command /handbook is used to display a list o...

https://storage.fivemods.net/uploads/1/NGDOafM6lpZb/img/wHlxLkV2UgGsbA5fzDCZ7.png-Image (display)
Vehicle Objects - London Studios

**Vehicle Objects** is a FiveM resource allowing you to add objects such as learner plates, pass plates and parking tickets...

https://storage.fivemods.net/uploads/1/TPtNIqSeybZp/img/s7Ta0Dm3JANoHG5yFP6K1.png-Image (display)
ActivateAlarm - LondonStudios

A FiveM resource used to activate a custom alarm sound in an area. This uses another resource called PlayCustomSounds, a standalon...