Car Radio Everywhere (resource MusicEverywhere) lets players play music in their cars through a small UI, and gives jobs their own music points inside their buildings. The sound is 3D and gets quieter with distance. Audio playback is handled by the xsound library, which is included.
Features
- Play music in cars, opened with the
/carradiocommand or, if you prefer, with an inventory item - The music can be heard inside and outside the car, depending on the distance to it; or set it to play only for the people in the vehicle
- Accepts YouTube links (without copyright), MP3 files and online radios
- Stop the music, loop it, raise or lower the volume and skip back and forward in seconds
- Each job can have multiple music points within its building, each with range, default volume, default link, autoplay and loop settings (examples for mechanic and unicorn included)
- Configurable distance-to-volume ratio
Requirements
- ESX
- xsound (included in the download)
Installation
- Copy
xsoundandMusicEverywhereinto your resources folder. - Add
ensure xsoundand thenensure MusicEverywhereto your server.cfg. - Set the command or item and your job zones in
config.lua.