I have a customized cider on my server, and I try to get local voice to work, but it doesn’t.
In sh_configuration.lua I have:
cider.configuration["Local Voice"] = true; cider.configuration["Talk Radius"] = 256;
I have this code:
– Create the voice chat radius.
EntsInRange = ents.FindInSphere( LocalPlayer():GetPos(), cider.configuration[“Talk Radius”] )
for i = 2,#EntsInRange do
if EntsInRange*:GetClass() == “player” then
if LocalPlayer().IsMuted(EntsInRange*) then
// Works like this - LocalPlayer is the player doing the muting, the player being muted
// is EntsInRange*.
EntsInRange*.InVCRadius = true
for i = 2,#player.GetAll() do
if player.GetByID(i).InVCRadius then
if LocalPlayer().IsMuted(player.GetByID(i)) then //IsMuted works pretty much the same as SetMuted.
// Do nothing, because the player is already muted, DUH.
// And yes, I know I can just use !LocalPLayer().IsMuted(player.GetByID(i)) instead, but I’ll do that when I know my script is working.
timer.Create( “VoiceChatRadius”, 1.0, 0, ChatRadius)
Can someone help me get this script working?