Client
Exports - Clientside
openRadio
Opens the radio UI
exports.msk_radio:openRadio()closeRadio
Closes the radio UI
exports.msk_radio:closeRadio()isRadioOpen
Check if the UI is open or not
Returns
isRadioOpen - boolean - If the UI is open or not
local isRadioOpen = exports.msk_radio:isRadioOpen()isEncryptedChannel
Check if the Channel is encrypted (Config.EncryptedChannels)
Parameters
channel - number - The Channel ID
Returns
isEncryptedChannel - boolean - If the channel is encrypted or not
hasChannelPassword
Check if the channel has a password
Parameters
channel - number - The Channel ID
Returns
hasChannelPassword - boolean - If the channel has a password or not
checkChannelPassword
Check if the given password is correct
Parameters
channel - number - The Channel ID
password - string - The Password
Returns
isPasswordCorrect - boolean - If the password is correct or not
getRadioChannel
Get the current Radiochannel the player is in
Returns
channel - number - Current Radiochannel
getRadioVolume
Get the current Radiovolume
Returns
volume - number - Current Radiovolume in percent 0-100
setRadioChannel
Set the new Radiochannel
Parameters
channel - number - The Channel ID
removeRadioChannel
Remove the player from the current radio channel
Parameters
channel - number - The Channel ID - Optional, tokovoip need this!
setRadioVolume
Set the Radiovolume
Parameters
volume - number - The new Radiovolume in percent 0-100
setRadioSpeaker
Set the Radiospeaker on or off
Parameters
toggle - boolean - Activate/Deactivate
Last updated