[Pre-Release] Boombox

Working on it!

Aww man, yet another release to do a git pull request on, still using the server.lua when it’s not needed :frowning:

Yup, you’re probably right (: But because of nuub and still learning you’re more than welcome to point me in the right direction.

Np np man :slight_smile: did the git pull request.

Did it for the bag to like 3 hours ago or so haha.

1 Like

Keep us updated if you ever get it to work server side :slight_smile:

well be nice to make it work whet this that way you have nice music and not the gta 5 music

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)