Skip to content

Commit

Permalink
fix(radio): fix copy paste issue causing radioChannel to not be ste
Browse files Browse the repository at this point in the history
- fixes #224
  • Loading branch information
AvarianKnight committed Dec 7, 2021
1 parent cc1663b commit 23919f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/module/radio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23919f9

Please sign in to comment.