I am going to start releasing some of my smaller scripts, and then possibly some of the bigger ones.
The first on my list of scripts to release is my InteractSound which I essentially use to play interaction sounds that are not included within GTA V’s sounds. For example, handcuff sound effects. Or, a warning tone for a server restart, etc.
This particular script will allow you to play any .ogg sound file on any single client, all clients, or only clients within the specified range of the player’s Ped for the player you pass it. I plan to extend the distance-related event to include the functionality of making the audio file play quieter the further you are away from the “source”. The resource really only provides events and an NUI interface that runs in the background to play the sounds.
As with 95% of the work I do, this script (among with others) is very well documented both with comments in the script and the documentation page which is linked below.
Let me know if you have questions! Reply here or find me on Discord. It’s the same name in both places.