> For the complete documentation index, see [llms.txt](https://tefox-scripts.gitbook.io/tefox-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tefox-scripts.gitbook.io/tefox-scripts-docs/tefox-scripts-documentation/tefox_radio/configuration.md). Agents can also search and read this documentation through its [MCP server](https://tefox-scripts.gitbook.io/tefox-scripts-docs/~gitbook/mcp).

# Configuration

**The script is highly customizable. Open the config.lua file to adjust the settings to fit your server's needs.**

## ⚙️ Core Settings:

This section defines the core framework your server is running on.

```lua
-- Framework: 'esx', 'qbcore', 'qbox'
Config.Framework = 'qbcore' 
```

Config.Framework: Set this to your server's framework. It supports 'qbcore', 'qbox', or 'esx'. The script will automatically adapt its functions based on your choice.

## 🎒 Access & Keybinds:

Here you can decide how players access and open their radio interface.

```lua
Config.UseItem = true 
Config.ItemName = 'radio' 

-- Open Key (Only if UseItem is false)
Config.OpenKey = 'F10'
```

<mark style="color:cyan;">Config.UseItem:</mark> Set to true if you want players to have the radio item in their inventory to use it. Set to false if you want anyone to open it at any time.

<mark style="color:cyan;">Config.ItemName:</mark> The spawn name of the radio item in your database/inventory (Default: 'radio').

<mark style="color:cyan;">Config.OpenKey:</mark> If Config.UseItem is set to false, this is the default keyboard key players will press to open the UI.

## 🛡️ Restricted Channels (Job Locks):

This is a crucial security feature to prevent civilians from listening to government or private roleplay channels.

```lua
-- Restricted Channels
Config.RestrictedChannels = {
    [1] = { 'police', 'sheriff', 'ambulance' }, 
    [2] = { 'police', 'sheriff', 'ambulance' },             
    [3] = { 'police', 'sheriff', 'ambulance' },  
    -- ... and so on
    --[11] = { 'ambulance' },
    --[13] = { 'police', 'sheriff' },                
}
```

<mark style="color:cyan;">Config.RestrictedChannels:</mark> A table where you define which jobs can access specific frequencies.

The number inside the brackets <mark style="color:$primary;">\[1]</mark> represents the Frequency Number.

The names inside the curly braces <mark style="color:$primary;">{'police'}</mark> represent the Allowed Jobs.

If a player does not have one of the listed jobs, the script will instantly block them from joining and display an error message. <mark style="color:green;">(You can uncomment lines by removing the -- to add more).</mark>

#### 📻 Frequency Limits:

```lua
Config.MaxFrequency = 1000
```

<mark style="color:cyan;">Config.MaxFrequency:</mark> Sets the highest possible frequency number a player can type into the radio (e.g., 1000). This keeps your frequencies organized within a specific range.
