[Pre-Release] Boombox

Hmm what if you did a call to server with the object id and then got the server part to send it back to all clients?

Not sure if it will work but it might, since you then tell there client that this object plays music.

I am so proud of you :clap:

1 Like

https://images.illusivetea.me/2o99l1.mp4

Im working on one from scratch which is based all on decors for the setting and such. Not tested it with others yet, but on my side its working pretty well.

1 Like

wouldn’t it be easier to just trigger the boombox to play whatever station the closest boombox they are near is playing? So that people can hear the music from the boombox and just play the station clientside at the location of the closest boombox? like a check or something

wow guys, thats some interesting work here!

Can’t this be used with “InteractionSound ([Release] Play Custom Sounds for Interactions)”? Add custom songs & play to everyone within a radius of like 10 meters?

InteractSound_SV:PlayWithinDistance(10, "radio_one", 0.5)

Full songs would more then likely be to large.

How is this going?

They’re definitely too big. I’ve been thinking about getting the JS Radio working with this. It definitely should be possible. Just need to integrate this script with it and have it call the same nuimessage that the JS Radio does. Now, as far as other people hearing it properly, that’s another story.

Been waiting for something like this for ages, amazing for party RP and festivals, hopefully you get it working so you can have it on the ground and everyone else can hear it

Waiting for server-side sound.
Will be awesome!

Server side please!

Definitely waiting for serverside.

Working flawlessly server side on vRP 2 :kissing::kissing_smiling_eyes::kissing_closed_eyes: thanks! @Imagic

server

local vRPboombox = class(“vRPboombox”, vRP.Extension)

function vRPboombox:__construct()
vRP.Extension.__construct(self)

end

– TUNNEL
vRPboombox.tunnel = {}

function vRPboombox.tunnel:setAudio()
local audio = “http://198.7.59.204:20244/stream.mp3
local user = vRP.users_by_source[source]
if user:hasPermission(“boom.box”) then
vRP.EXT.Audio.remote._setAudioSource(-1, “BoomBox”, audio, 0.5, 0,0,0, 15, user.source)
else
vRP.EXT.Base.remote._notify(user.source, “Only admins can play music using the boombox”)
end
end

function vRPboombox.tunnel:stopAudio()
local user = vRP.users_by_source[source]
if user:hasPermission(“boom.box”) then
vRP.EXT.Audio.remote._removeAudioSource(-1, “BoomBox”)
end
end

vRP:registerExtension(vRPboombox)

I’m patiently waiting for the pushes that @Imagic needs from FiveM to start converting over my server :slight_smile:

Hi G.Bronson,

Any chance you can also make this work, or make a separate mod, for in game radio’s in apartments and houses?

I’ve been looking for a mod for my server that can allow the player to use the in game radio stations through the radio’s in their houses. I’ve been searching for a long time with no luck so if a mod for this already exists, I would really appreciate if someone could link it.

nice job. waiting for more update :smiley:

Can u share? Ill Fix for server

1 Like

hot to add esx ?

would love a serverside version of this with custom youtube url or something