This resource creates a usable boombox item.
Using the item places the object on the ground giving anyone near access to a menu to play music.
It accepts youtube urls, you can pause, resume, stop, and change the volume of the audio.
Preview:
https://medal.tv/games/gta-v/clips/4KeJhpohKXePa/JhzHWjffDVEZ?invite=cr-MSxxVlksMjQxMDUxMjgs
Requires:
qb-core
qb-menu
qb-input
qb-inventory
xsound
Place the "html" folder in qb-inventory.
Add the following to qb-core shared.lua in QBShared.Items;
["boombox"] = {["name"] = "boombox", ["label"] = "Boombox", ["weight"] = 5000, ["type"] = "item", ["image"] = "boombox.png", ["unique"] = true, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Play some music anywhere."},