Gday, i run a server and i am wanted to broadcast music to players across the server. kinda like the music/radio plugins for csgo or something with cueing systems and stuff
hope someone could let me know of something i can do to achieve this. Cheers
I made something like this (named JukeBox) which could access youtube and play songs but it's not free.
I have yet to see a music player addon that's free.
To just play a sound file to all players:
[lua]
if SERVER then
util.AddNetworkString("playsound")
function PlaySoundPlayer(ply, sound)
net.Start("playsound")
net.WriteString(sound)
net.Send(ply)
end
elseif CLIENT then
net.Receive("playsound", function(ply)
surface.PlaySound(net.ReadString())
end )
end
-- Usage --
-- PlaySoundPlayer(playerEntity, soundFile) --
[/lua]
place in lua/autorun
I didnt state that i wished it to be a free way to do so. i dont mind if i have to pay for an addon
Noticed you have two threads for the same thing. Check out scriptfodder.com for all your needs :)
WolfDJ, if that still exists.
Wyozi Media Player Plus (wmc+) is pretty dank. Search it up.