Exports
All exports are for client
SetRadioChannel
Set radio channel
exports["tgiann-radio-v2"]:SetRadioChannel(channel, showAllUsers)Parameters :
channel
string
Channel name or frequency
showAllUsers?
boolean
When connected to the channel, show all people in HUD. When false, only speakers are visible.
Example
exports["tgiann-radio-v2"]:SetRadioChannel("PD1")
exports["tgiann-radio-v2"]:SetRadioChannel(2)
exports["tgiann-radio-v2"]:SetRadioChannel("3", false)
exports["tgiann-radio-v2"]:SetRadioChannel() -- leave all channel
exports["tgiann-radio-v2"]:SetRadioChannel(0) -- leave all channel
exports["tgiann-radio-v2"]:SetRadioChannel("0") -- leave all channelLeaveAllChannels
Disconnect from all channels to which it is connected
LeaveRadioChannel
Leave a specific channel
Parameters :
channel
string
Channel
Example
ToggleRadioAnim
SetDisableRadioAnim
Leave a specific channel
Parameters :
bool
Boolen
true or false
Example
GetRadioAnimState
returns the state of the radio anim verse
Example
GetConnectChannels
Returns a list of connected channels
Return :
Channel Array
table
Channel frequency
Example
IsConnectToChannel
Does the player connect to the frequency?
Return :
isConnected
bool
Returns true if connect to frequency
Parameters :
channel
string
Channel Frequency
Example
ChannelIsMuted
Returns true if the microphone at the player's frequency is off
Return :
isMuted
bool
Returns true if the microphone at the player's frequency is off
Parameters :
channel
string
Channel Frequency
Example
SetFrequencyVolume
change the frequency's volume.
Parameters :
channel
string
Channel Frequency
volume
number
Between 1 and 100
Example
SetMutedChannel
Turns off and on the player's microphone on Frequency
Parameters :
channel
string
Channel Frequency
isMuted
boolen
true or false
Example
ChannelGetPlayerName
Returns the player's name in frequency
Return :
name
bool
Returns the player's name in frequency
Parameters :
channel
string
Channel Frequency
Example
ChannelSetPlayerName
Changes the name of the player on the frequency
Parameters :
channel
string
Channel Frequency
name
string
New player name
Example
SetShowAllUsers
Open or close the player list on the frequency. If set to false, only speaking persons will be visible.
Parameters :
channel
string
Channel Frequency
showAllUser
boolean
Show all user
Example
SetShowAllUsers
Open or close the player list on the frequency. If set to false, only speaking persons will be visible.
Parameters :
channel
string
Channel Frequency
showAllUser
boolean
Show all user
Example
Last updated