Files
red-valley/resources/[framework]/[addons]/qs-smartphone-pro/client/custom/voice/voice.lua
2026-03-29 21:41:17 +03:00

29 lines
878 B
Lua

local pma = exports['pma-voice']
local mumble = exports['mumble-voip']
local toko = exports['tokovoip_script']
function AddToCall(callId)
if Config.Voice == 'pma' then
Debug('callId', callId)
pma:addPlayerToCall(callId)
elseif Config.Voice == 'mumble' then
mumble:addPlayerToCall(callId)
elseif Config.Voice == 'salty' then
TriggerServerEvent('phone:addToCall', callId)
elseif Config.Voice == 'toko' then
toko:addPlayerToRadio(callId)
end
end
function RemoveFromCall(callId)
if Config.Voice == 'pma' then
pma:removePlayerFromCall()
elseif Config.Voice == 'mumble' then
mumble:removePlayerFromCall()
elseif Config.Voice == 'salty' then
TriggerServerEvent('phone:removeFromCall', callId)
elseif Config.Voice == 'toko' then
toko:removePlayerFromRadio(callId)
end
end