diff --git a/client/init/main.lua b/client/init/main.lua index 64ded70..8c789ef 100644 --- a/client/init/main.lua +++ b/client/init/main.lua @@ -95,7 +95,7 @@ local disableSubmixReset = {} ---@param enabled boolean if the players voice is getting activated or deactivated ---@param moduleType string the volume & submix to use for the voice. function toggleVoice(plySource, enabled, moduleType) - if mutedPlayers[source] then return end + if mutedPlayers[plySource] then return end logger.verbose('[main] Updating %s to talking: %s with submix %s', plySource, enabled, moduleType) if enabled then MumbleSetVolumeOverrideByServerId(plySource, enabled and volumes[moduleType]) diff --git a/server/module/radio.lua b/server/module/radio.lua index f434819..4a083a6 100644 --- a/server/module/radio.lua +++ b/server/module/radio.lua @@ -99,7 +99,7 @@ function setPlayerRadio(source, _radioChannel) -- changed TriggerClientEvent('pma-voice:clSetPlayerRadio', source, radioChannel) end - Player(source).state.callChannel = callChannel + Player(source).state.radioChannel = radioChannel if radioChannel ~= 0 and plyVoice.radio == 0 then addPlayerToRadio(source, radioChannel) elseif radioChannel == 0 then