VOIP Integration

From this section, you can learn how to integrate your own voip.

You can find voip integrations in no-payphone/integration/voip

Voip integration is simple. You only need to add 2 functions, one of them adds the player to the call and the other one removes the player from the call.

Ready Integrations


Example


This is an example for pma-voice. You can find this integration in

no-payphone/config/integration/voip/pma-voice.lua

if _IS_SERVER or not HasResource("pma-voice") then return end

-- CLIENT START

local PMA_VOICE = exports["pma-voice"]

---@param callId number
Config.Voip.AddPlayerToCall = function(callId)
    return PMA_VOICE:addPlayerToCall(callId)
end

---@param callId number
Config.Voip.RemovePlayerFromCall = function(callId)
    return PMA_VOICE:removePlayerFromCall()
end

Last updated