MSK Scripts
TebexGithubDiscordMusiker15
  • MSK Scripts
    • Welcome
  • Common Issues
    • Keymaster
  • Miscellaneous
    • Change Notifications
  • Scripts
    • MSK Core
      • Installation
      • Functions
        • Client
          • Ace Permission
          • Commands
          • Coords
          • Player
          • Points
          • Request
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
          • Vehicle
        • Shared
          • String
          • Math
          • Table
          • Timeout
          • Vector
        • Server
          • Ace Permission
          • Ban System
          • Commands
          • Player
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
    • MSK Banking
      • Installation
        • Paycheck Transaction
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Server Callbacks
    • MSK EngineToggle
      • Guides
      • Exports
        • Client
      • Event Handler
        • Client
        • Server
    • MSK Fuel
      • Config
      • Exports
        • Client
    • MSK Garage
      • Config
      • Exports
        • Client
    • MSK Handcuffs
      • Guides
        • General Edits for Jobs
        • Jaksam Job Creator
        • Multichar
        • ox_inventory
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Event Handlers
    • MSK Radio
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Server
    • MSK Simcard
      • Installation
        • Config.Database
      • Config
    • MSK VehicleKeys
      • Guides
        • Installation
        • Integrations
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
    • MSK Whitelist
      • Config
      • Exports
        • Client
        • Server
    • MSK Weaponammo
Powered by GitBook
On this page
  • openRadio
  • closeRadio
  • isRadioOpen
  • isEncryptedChannel
  • hasChannelPassword
  • checkChannelPassword
  • getRadioChannel
  • getRadioVolume
  • setRadioChannel
  • removeRadioChannel
  • setRadioVolume
  • setRadioSpeaker
  1. Scripts
  2. MSK Radio
  3. Exports

Client

Exports - Clientside

openRadio

Opens the radio UI

exports.msk_radio:openRadio()

closeRadio

Closes the radio UI

exports.msk_radio:closeRadio()

isRadioOpen

Check if the UI is open or not

Returns isRadioOpen - boolean - If the UI is open or not

local isRadioOpen = exports.msk_radio:isRadioOpen()

isEncryptedChannel

Check if the Channel is encrypted (Config.EncryptedChannels)

Parameters channel - number - The Channel ID

Returns isEncryptedChannel - boolean - If the channel is encrypted or not

local isEncryptedChannel = exports.msk_radio:isEncryptedChannel(channel)

-- Example
local isEncryptedChannel = exports.msk_radio:isEncryptedChannel(1)

hasChannelPassword

Check if the channel has a password

Parameters channel - number - The Channel ID

Returns hasChannelPassword - boolean - If the channel has a password or not

local hasChannelPassword = exports.msk_radio:hasChannelPassword(channel)

-- Example
local hasChannelPassword = exports.msk_radio:hasChannelPassword(5)

checkChannelPassword

Check if the given password is correct

Parameters channel - number - The Channel ID password - string - The Password

Returns isPasswordCorrect - boolean - If the password is correct or not

local isPasswordCorrect = exports.msk_radio:checkChannelPassword(channel, password)

-- Example
local isPasswordCorrect = exports.msk_radio:checkChannelPassword(5, '1234')

getRadioChannel

Get the current Radiochannel the player is in

Returns channel - number - Current Radiochannel

local channel = exports.msk_radio:getRadioChannel()

getRadioVolume

Get the current Radiovolume

Returns volume - number - Current Radiovolume in percent 0-100

local volume = exports.msk_radio:getRadioVolume()

setRadioChannel

Set the new Radiochannel

Parameters channel - number - The Channel ID

exports.msk_radio:setRadioChannel(channel)

-- Example
exports.msk_radio:setRadioChannel(1)

removeRadioChannel

Remove the player from the current radio channel

Parameters channel - number - The Channel ID - Optional, tokovoip need this!

exports.msk_radio:removeRadioChannel()

-- Example for tokovoip
exports.msk_radio:removeRadioChannel(5) -- Removes the Player if he is in Channel 5

setRadioVolume

Set the Radiovolume

Parameters volume - number - The new Radiovolume in percent 0-100

exports.msk_radio:setRadioVolume(volume)

-- Example
exports.msk_radio:setRadioVolume(50)

setRadioSpeaker

Set the Radiospeaker on or off

Parameters toggle - boolean - Activate/Deactivate

exports.msk_radio:setRadioSpeaker(toggle)

-- Example
exports.msk_radio:setRadioSpeaker(true) -- Activate Speaker
exports.msk_radio:setRadioSpeaker(false) -- deactivate Speaker

Last updated 7 months ago