Exports

All exports are for client

SetRadioChannel

Set radio channel

exports["tgiann-radio-v2"]:SetRadioChannel(channel, showAllUsers)

Parameters :

Name
Type
Description

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 channel

LeaveAllChannels

Disconnect from all channels to which it is connected


LeaveRadioChannel

Leave a specific channel

Parameters :

Name
Type
Description

channel

string

Channel

Example


ToggleRadioAnim


SetDisableRadioAnim

Leave a specific channel

Parameters :

Name
Type
Description

bool

Boolen

true or false

Example

GetRadioAnimState

returns the state of the radio anim verse

Example


GetConnectChannels

Returns a list of connected channels

Return :

Name
Type
Description

Channel Array

table

Channel frequency

Example


IsConnectToChannel

Does the player connect to the frequency?

Return :

Name
Type
Description

isConnected

bool

Returns true if connect to frequency

Parameters :

Name
Type
Description

channel

string

Channel Frequency

Example


ChannelIsMuted

Returns true if the microphone at the player's frequency is off

Return :

Name
Type
Description

isMuted

bool

Returns true if the microphone at the player's frequency is off

Parameters :

Name
Type
Description

channel

string

Channel Frequency

Example


SetFrequencyVolume

change the frequency's volume.

Parameters :

Name
Type
Description

channel

string

Channel Frequency

volume

number

Between 1 and 100

Example


SetMutedChannel

Turns off and on the player's microphone on Frequency

Parameters :

Name
Type
Description

channel

string

Channel Frequency

isMuted

boolen

true or false

Example


ChannelGetPlayerName

Returns the player's name in frequency

Return :

Name
Type
Description

name

bool

Returns the player's name in frequency

Parameters :

Name
Type
Description

channel

string

Channel Frequency

Example


ChannelSetPlayerName

Changes the name of the player on the frequency

Parameters :

Name
Type
Description

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 :

Name
Type
Description

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 :

Name
Type
Description

channel

string

Channel Frequency

showAllUser

boolean

Show all user

Example

Last updated