Exports

All exports are for client

SetRadioChannel

Set radio channel

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

Parameters :

NameTypeDescription

channel

string

Channel name or frequency

Example

exports["tgiann-radio-v2"]:SetRadioChannel("PD1")
exports["tgiann-radio-v2"]:SetRadioChannel(2)
exports["tgiann-radio-v2"]:SetRadioChannel("3")
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

exports["tgiann-radio-v2"]:LeaveAllChannels()

LeaveRadioChannel

Leave a specific channel

exports["tgiann-radio-v2"]:LeaveRadioChannel(channel)

Parameters :

NameTypeDescription

channel

string

Channel

Example

exports["tgiann-radio-v2"]:LeaveRadioChannel("1.00")

ToggleRadioAnim

exports["tgiann-radio-v2"]:ToggleRadioAnim("1.00")

SetDisableRadioAnim

Leave a specific channel

exports["tgiann-radio-v2"]:SetDisableRadioAnim(bool)

Parameters :

NameTypeDescription

bool

Boolen

true or false

Example

exports["tgiann-radio-v2"]:SetDisableRadioAnim(true)
exports["tgiann-radio-v2"]:SetDisableRadioAnim(false)

GetRadioAnimState

returns the state of the radio anim verse

exports["tgiann-radio-v2"]:GetRadioAnimState()

Example

local animIsActive = exports["tgiann-radio-v2"]:GetRadioAnimState()

Last updated