Skip to content

Commit

Permalink
fix(voice): fix not overriding volume for new people added to call
Browse files Browse the repository at this point in the history
  • Loading branch information
AvarianKnight committed Dec 29, 2022
1 parent ba0f895 commit 3379e45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/init/proximity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ function addNearbyPlayers()
MumbleAddVoiceChannelListen(playerServerId)
MumbleAddVoiceTargetChannel(voiceTarget, playerServerId)

for source, _ in pairs(callData) do
for source, _ in pairs(callData) do
if source ~= playerServerId then
MumbleAddVoiceTargetChannel(voiceTarget, source)
end
end
end


Expand Down
3 changes: 2 additions & 1 deletion client/module/phone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RegisterNetEvent('pma-voice:syncCallData', function(callTable, channel)
end)

RegisterNetEvent('pma-voice:addPlayerToCall', function(plySource)
callData[plySource] = true
toggleVoice(plySource, true, 'call')
callData[plySource] = true
end)

RegisterNetEvent('pma-voice:removePlayerFromCall', function(plySource)
Expand Down

0 comments on commit 3379e45

Please sign in to comment.