I want to make it so anytime a player uses voice chat there is a sound (like a radio keying up) that plays. I don’t really care if it is heard by all players or just the local player (it’s a very, very small game mode).
util.AddNetworkString("radiokeyup") net.Receive("radiokeyup", function() BroadcastLua(surface.PlaySound("Radio_Keyup.mp3")) print ("radio check confirmed") end)
function GM:PlayerStartVoice( ply ) net.Start("radiokeyup") net.SendToServer() end
what is best sound command to play server side…i keep getting NIL errors in console…I am trying to understand the process but don’t quite grasp the relationships of server assets vs client…