Documentation
DiscordStore
  • STG
    • 🖐️Welcome!
  • 📕Guide
    • 🪝Create Discord Webhook
    • 🤖Create Discord Bot Token
  • Scripts
    • 🍕Pizza Maker
      • 💡Installation
      • ⚙️Configuration
    • ♟️Chess
      • 💡Installation
      • ⚙️Configuration
    • 📱Basic Radio
      • 💡Installation
      • ⚙️Configuration
    • 🗺️Treasure Map
      • 💡Installation
      • ⚙️Configuration
    • 🏦Advanced Banking
      • 💡Installation
      • ⚙️Configuration
      • ⬆️Exports
    • 🤳Radio System
      • 💡Installation
      • ⚙️Configuration
    • 🥇Gold Panning
      • 💡Installation
      • ⚙️Configuration
    • 🖥️Complex Hud
      • 💡Installation
      • ⚙️Configuration
    • 💃Emote Menu
      • 💡Installation
      • ⚙️Configuration
    • 💴Money Wash
      • 💡Installation
      • ⚙️Configuration
    • 🚘Auto Pilot
      • 💡Installation
      • ⚙️Configuration
    • ⛽Fuel
      • 💡Installation
      • ⚙️Configuration
    • 🫂Multicharacter
      • 💡Installation
      • ⚙️Configuration
    • 🛒3 in 1 Shop
      • 💡Installation
      • ⚙️Configuration
    • 🍎Fruit Job
      • 💡Installation
      • ⚙️Configuration
    • 🍾Bottle Spin
      • 💡Installation
      • ⚙️Configuration
    • 🍕Pizza Delivery
      • 💡Installation
      • ⚙️Configuration
    • 📦Blind Fold
      • 💡Installation
      • ⚙️Configuration
    • 🔫Weapon Shop
      • 💡Installation
      • ⚙️Configuration
    • 💻Hud
      • 💡Installation
      • ⚙️Configuration
    • 🔃Loading Screen
      • 💡Installation
      • ⚙️Configuration
    • ⌚Smart Watch
      • 💡Installation
      • ⚙️Configuration
    • 🎮Hand Console 2
      • 💡Installation
      • ⚙️Configuration
    • 👒Appearance
      • 💡Installation
      • ⚙️Configuration
    • 🃏Card Game V2
      • 💡Installation
      • ⚙️Configuration
    • 🚗Simple Garage
      • 💡Installation
      • ⚙️Configuration
    • 🎸Busker
      • 💡Installation
      • ⚙️Configuration
    • 🔫Raider
      • 💡Installation
      • ⚙️Configuration
    • 🗃️Wallet
      • 💡Installation
      • ⚙️Configuration
    • 🐔Butcher
      • 💡Installation
      • ⚙️Configuration
    • 🃏Card Game
      • 💡Installation
      • ⚙️Configuration
    • 🎮Hand Console
      • 💡Installation
      • ⚙️Configuration
    • 🎲Rubik Cube
      • 💡Installation
      • ⚙️Configuration
    • 👮Jail
      • 💡Installation
      • ⚙️Configuration
    • 🖼️Custom Frame
      • 💡Installation
      • ⚙️Configuration
    • 🎮Gamepad
      • 💡Installation
      • ⚙️Configuration
    • 🏦Banking
      • 💡Installation
      • ⚙️Configuration
    • 🗺️Pause Menu
      • 💡Installation
      • ⚙️Configuration
    • 👒Clothing Store
      • 💡Installation
      • ⚙️Configuration
    • 🚙Vehicle Shop
      • 💡Installation
      • ⚙️Configuration
    • 🧬Character Creator
      • 💡Installation
      • ⚙️Configuration
    • 🛒Purchaseable Market
      • 💡Installation
      • ⚙️Configuration
    • 📄Billing
      • 💡Installation
      • ⚙️Configuration
  • 🎸Copy of Busker
    • 💡Installation
    • ⚙️Configuration
Powered by GitBook
On this page
  • General Settings
  • Job-Specific Channels
  • Localization Settings
  • Framework Detection
  1. Scripts
  2. Radio System

Configuration

Configuration guide of Radio System.


General Settings

Parameter

Description

Example Value

Config.Framework

Determines the framework to use (auto, esx, or qb).

"auto"

Config.debug

Enables or disables debug mode.

false

Config.radioName

Specifies the name of the radio item.

"radio"

Config.defaultVolume

Sets the default volume of the radio (range: 0–100).

50

Config.LoopTime

Time (in milliseconds) to check the radio activity. Lower values are faster but may impact performance.

500

Config.RadioProp

The object model used for the radio prop.

'prop_cs_hand_radio'


Job-Specific Channels

Parameter

Description

Example Value

Config.jobChannels

Defines channels restricted to specific job roles.

See example below.

Example:

Config.jobChannels = {
    [1] = {
        frequency = {
            "1",
            "2",
            "3",
            "4",
            "5"
        },
        jobs = {
            "police",
            "bcso"
        }
    },
    [2] = {
        frequency = {
            "2.0"
        },
        jobs = {
            "ambulance"
        }
    }
}

Localization Settings

Parameter

Description

Example Value

Config.Locale

Stores text messages for in-game interactions.

See example below.

Example:

Config.Locale = {
    created = "Channel successfully created!",
    created_fail = "Already created on the same frequency.",
    disconnected = "You have successfully left the radio contact!",
    disconnected_fail = "An error occurred while trying to disconnect from the radio link.",
    connected = "You've successfully established radio contact!",
    password = "Enter the password for this channel to enter!",
    notfound = "frequency you want to enter was not found!",
    wrong = "Password is not correct!",
    wait = "Try again 1 second later.",
    kick = "You were disconnected because you didn't have a radio.",
    job = "This frequency is dedicated to a specific job!",
    volume_up = "volume increased.",
    volume_down = "volume reduced.",
    max = "volume at maximum level!",
    min = "volume at minimum level!"
}

Framework Detection

The script automatically detects the framework using the getFramework function. The detection works as follows:

  • ESX Framework: Uses es_extended.

  • QBCore Framework: Uses qb-core.

  • Auto Mode: Automatically detects the active framework.


PreviousInstallationNextGold Panning

Last updated 4 months ago

🤳
⚙️