[ESX/QBCore] Music Anywhere - A NUI-based music player script
UPDATE [21-04-2023]
- Updated for the latest ESX versions.
UPDATE [21-09-2022]
- The playlist is now saved in the database so if you add a song to the playlist you'll be able to access it anytime from anywhere even after restarting the game.
- Added delete button to delete the song from the playlist if you want to remove a song.
- Default songs options are not removed, its also there so you can also add default songs in `main.js`
- Optimized the UI design of the script
-------------------------------------------------------------------
SS-Boombox is a vehicle music/radio script with a modern UI design. With this, this script lets you play any song mainly from YouTube (with URL and sometimes with song Name) anywhere on your FiveM server.
Description
This script uses a library xsound from a developer Xogos. All players can open a good-looking UI from their vehicles and can play any YouTube Song. This script also supports music sources other than YouTube you can give it a try.
Demo
Features
- You can Play music in any vehicle.
- Music can be heard inside and outside the vehicle, depending on its distance.
- Xsound plays music from youtube (without copyright).
- You can loop music, play ▶/ pause ⏸ music, change songs, skip songs, and many more.
- You can set the music player to multiple locations and jobs in
Config.lua
. By location I mean you can set locations like the mechanic, vanilla unicorn. You can link them to the job (for eg:mechanic
) so that the person having that job can access the music player to that location. - For ESX QB-Target is not enabled you can see
Press [E] to Play Music
instead and in QBCore you'll be having the option to enable or disable it in config.lua. - You can bind this to an inventory object as well as you can add a custom command to open NUI (Configuration in
config.lua
).