Exports
Open, close and connect STG Radio System V2 from your own scripts, for example a phone app or a job menu.
Other resources can open the radio or move a player to a frequency, for example from a phone app or when a player goes on duty. All exports are client side.
openRadio / closeRadio
exports['stg-radiov2']:openRadio()
exports['stg-radiov2']:closeRadio()Opens or closes the radio screen with the animation and hand prop. openRadio does not check for the radio item, so check it yourself if you need to.
joinRadio
exports['stg-radiov2']:joinRadio(1.0)Connects the player to a frequency. If they are already on a channel, they leave it first. Job frequencies from Config.SpecialFrequencies are still checked, so a player without the right job gets an error and stays disconnected.
disconnect
exports['stg-radiov2']:disconnect()Leaves the current channel.
isConnected
local connected = exports['stg-radiov2']:isConnected()Returns true while the player is on a channel.
Still having trouble?
Open a ticket on our Discord. Our team answers around 15 hours a day.