From 2b25f17538ab3a4e940174a1169d7cebafb669a2 Mon Sep 17 00:00:00 2001 From: nerohiro <49454170+nerohiro@users.noreply.github.com> Date: Sun, 28 Nov 2021 15:28:28 -0600 Subject: [PATCH] fix[pma-voice]: fixing some mislabeled variables --- client/init/main.lua | 2 +- server/module/radio.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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