structura foldere
mutat kq- folders in un singur folder [kq]
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user