Skip to content

Commit 6f3f526

Browse files
committed
fix(module/phone): fix ending a call erroring for trying to call boolean
- also clears targets on the end of phone calls
1 parent 87fe191 commit 6f3f526

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/module/phone.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ RegisterNetEvent('pma-voice:removePlayerFromCall', function(plySource)
4747
end
4848
end
4949
callData = {}
50+
MumbleClearVoiceTargetPlayers(1)
5051
playerTargets(radioPressed and radioData or {}, callData)
5152
else
5253
callData[plySource] = nil
5354
toggleVoice(plySource, false, 'phone')
54-
playerTargets(radioPressed and radioData, callData)
55+
MumbleClearVoiceTargetPlayers(1)
56+
playerTargets(radioPressed and radioData or {}, callData)
5557
end
5658
end)
5759

0 commit comments

Comments
 (0)