Exports
Client Side Exports
Radio
isRadioOpen
Check whether the radio UI is currently open.
exports['prism_radio']:isRadioOpen()Returns
booleanโtrueif the radio UI is open, otherwisefalse
isConnected
Check whether the player is currently connected to a radio frequency.
exports['prism_radio']:isConnected()Returns
booleanโtrueif connected to a frequency, otherwisefalse
getCurrentFrequency
Get the current radio frequency the player is connected to.
exports['prism_radio']:getCurrentFrequency()Returns
number | nilโ The current frequency, ornilif not connected
openRadio
Open the radio UI.
exports['prism_radio']:openRadio()closeRadio
Close the radio UI.
exports['prism_radio']:closeRadio()Automatically re-enables the radio if it was previously disabled.
toggleRadio
Toggle the radio UI state.
exports['prism_radio']:toggleRadio()setRadioEnabled
Enable or disable the radio entirely.
exports['prism_radio']:setRadioEnabled(enabled)Parameters
enabled(boolean) โ Whether the radio should be enabled
If set to
falsewhile the radio is open, it will be closed automatically.
Radio & HUD
getHudMembers
Get the list of members currently displayed in the radio HUD.
exports['prism_radio']:getHudMembers()Returns
{ name: string; isSpeaking: boolean }[]โ An array containing the current HUD members
isHudVisible
Check whether the radio HUD is currently visible.
exports['prism_radio']:isHudVisible()Returns
booleanโtrueif the HUD is visible, otherwisefalse
Last updated on