# Configuration

## ⚙️ Configuration

This page explains how to fully configure **LX-PauseMenu** to match your server.

All settings are **plug-and-play** — no coding required.

***

### 📄 File Structure

```
lx-pausemenu/
├── client/
├── server/
├── ui/
├── config.lua        ← Main configuration file
├── updates.lua       ← Updates / Rules / Patch Notes
```

***

### 🔧 Framework Setup

Open `config.lua` and set your framework:

```lua
Config.Framework = "qbcore" -- qbcore / qbox / esx
```

Framework detection is automatic once set.

***

### ⌨️ Command & Keybind

```lua
Config.EnableCommand = true
Config.Command = "pause"

Config.EnableKeyMapping = true
Config.KeyMapping = "ESC"
```

***

### 🛑 ESC Override (Recommended)

```lua
Config.OverrideESC = true
```

* Replaces the default GTA pause menu
* Opens **LX-PauseMenu** instead
* Safe and optimized

***

### 🏷 Server Branding

```lua
Config.ServerName     = "LX ROLEPLAY"
Config.ServerSubtitle = "Immersive Roleplay Server"
Config.ServerVersion  = "v1.0.0"
Config.FooterText     = "LX Scripts • Premium UI"
Config.ServerLogo     = "https://your-logo-url.png"
```

***

### 🚑 Emergency Services Display

You can control which jobs appear in the **Services** section.

```lua
Config.Services = {
    police = {
        label = "Police",
        job = "police"
    },
    ambulance = {
        label = "Ambulance",
        job = "ambulance"
    }
}
```

* Job names are fully configurable
* Supports **QB-Core, Qbox & ESX**
* Counts update automatically

***

### 📢 Updates, Rules & Patch Notes

All server text is stored in:

```
updates.lua
```

Example:

```lua
Updates.Server = [[
• Server restarted at 4:00 AM
• Added new vehicles
• Improved performance
]]

Updates.Rules = [[
1. No RDM
2. No VDM
3. Respect all players
]]

Updates.PatchNotes = [[
v1.3.2
• UI improvements
• Optimizations
]]
```

These are displayed in the **Updates panel** in-game.

***

### ⚡ Performance

LX-PauseMenu is:

* Optimized for large servers
* Uses minimal client threads
* Updates UI only when required
* Safe to run 24/7

No extra tuning needed.

***

### 🧪 Supported Frameworks

✅ QB-Core\
✅ Qbox\
✅ ESX

***

### 💬 Support

Need help with setup or customization?

🔗 **Join our** [**Support Discord**](https://discord.gg/wYnkSZR33j)

***

**LX Scripts — Powering Your Roleplay Experience. ⚡**
