[RELEASE][ESX]wasabi_boombox

DEPRECIATED, SEE V2 HERE:

wasabi_boombox

This resource was created as a free portable boombox script capable of playing youtube links.

Created for my personal server so I figured I’d share.

I’m aware that the outdated version of nh-context and nh-keyboard are being used in this. I’ll update when I do for my personal server or if I get a chance. Until then someone else is more than welcome to make a PR.

Credits:

Features:

  • Usable boombox
  • Full animations and boombox prop
  • Play any youtube song
  • Adjust volume
  • Stop music on boombox pick-up
  • Play music truly anywhere
  • Uses 0.00ms on idle and 0.01ms~ when boombox prop attached to hand

Requirements:

Installation:

  • Download wasabi_boombox
  • Download requirements
  • Make sure script and requirements are in resources directory
  • Make sure the following are running in your server.cfg:
ensure nh-context
ensure nh-keyboard
ensure qtarget
ensure xsound
ensure wasabi_boombox

Extra Information:

  • Inventory image included in the InventoryImage directory
  • You must add the item boombox(or whatever config item is set as) to your items database/table.

Video Preview:

Click here if video doesn’t work

Download:
Github

My Other Releases:

11 Likes

I have an error in client/client 111

2 Likes

Hmm going to look now and double check that I didn’t make any mistakes.

Edit: Seems to be working fine, even downloaded from github and tried again in test environment.

Please PM me so I can assist if needed.

2 Likes

Are you using ZF or NH context ? Let me know so i can help you out quick.

1 Like

Yep, everything works out of the box 100% ! Thank you for the script bro !

1 Like

No worries.
I put this together for my server so I usually release if it seems useful to others.

2 Likes

I’m using everything fine I just have that error

Show me what you have on nh-context - client at line 3.

Try this and let me know if it’s working, also make sure you clear the cache before you start the server.

RegisterNUICallback("dataPost", function(data, cb)
    SetNuiFocus(false)
    TriggerEvent(data.event, data.arg1, data.arg2, data.arg3)
    cb('ok')
end)
1 Like

nice work bro

:heavy_heart_exclamation: :heavy_heart_exclamation: :heavy_heart_exclamation:

Hey man nice to see. Looks amazing, Thanks for the credits hope you enjoy!

Nice Script

Got a dubing bug here.
The boom box on the fridge is from a mapping. So permanently installed.
I think it’s great that you can interact with them. So you can map a fixed boom box for a gang or similar without having these guys to always put an extra one up. But the problem is that he recognizes this as a “boombox that has been put in place” and collects it over and over again.

Does it help if I change the item? Would like to keep the function that you can also interact with “fixed boomboxes”.

and the function that you cannot set up another boom box in the max range.
we all know those stupid players who think they have to exploit everything

1 Like

Be nice to have it for QB CORE!

Just patched and pushed update. Thank you for letting me know.

I don’t really work in qb core, although there isn’t much to change. If someone can assist me in registering items for use in qb I can easy make it interchangeable.

all works now <3 thanks!

if someone wants the mouse to become a pointer when hovering, like in the video, so that it is easier to see that you can click here, just add the line “cursor: pointer;” by .button:hover in the nh-context/ui/main.css

.button:hover{
background-color: #30475e;;
cursor: pointer;
}

1 Like

Bug: If another player picks up the boombox, it is not in their inventory and the music continues. you can no longer stop them by placing them again

Give me just a few hours and I’ll release bug fix. I appreciate you for reporting these :slight_smile:

1 Like