M MY Multiplayer: Wiki
Side
Kind

deleteVoiceChannel

Server

Destroys a voice channel. The players who were in it stop hearing each other through it.

bool deleteVoiceChannel(element channel)

Parameters

NameTypeDescription
channelelementThe channel, from createVoiceChannel.

Returns

true if it was destroyed, false if it could not be.

Example

local radio = createVoiceChannel(0, 0)

addCommandHandler("closeradio", function()
    deleteVoiceChannel(radio)
end)

See also