> 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_elevator/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

Unlike traditional scripts, the **TEFOX Elevator System** minimizes the need for complex file editing. The basic framework and security settings are handled in the <mark style="color:$info;">`config.lua`</mark>, while all elevator creation happens seamlessly in-game.

#### <mark style="color:$warning;">**1. Core Configuration**</mark> <mark style="color:$info;">**(**</mark><mark style="color:$info;">**`config.lua`**</mark><mark style="color:$info;">**)**</mark>

Open your <mark style="color:$info;">`config.lua`</mark> file to set up your server's framework, interaction target, and authorize your administrators.

```lua
Config = {}

-- Framework & Interaction Settings
Config.Framework = "auto" -- Options: 'esx', 'qbcore', 'qbox', or 'auto' for automatic detection
Config.Interaction = "qb-target" -- Options: 'ox_target', 'qb-target', 'qtarget', 'drawtext'

-- UI Settings
Config.UI = {
    NotifyType = "auto", -- Notification type
    ElevatorSound = true, -- Enable a subtle sound when opening the elevator or reaching a floor
}

Config = Config or {}

-- ==========================================
-- 🛡️ SECURITY & ADMINS (TEFOX SYSTEM)
-- ==========================================
-- Insert the identifiers of the administrators allowed to access the console.
-- Supported identifiers: (license:..., discord:...)
Config.Admins = {
    'license:1234567890abcdef1234567890abcdef12345678', -- Rockstar License Example
    'discord:123456789012345678',                     -- Discord ID Example
    'discord:630586445434571540', 
    'discord:630484564544454552', 
    'discord:127555846734571540', 
    'discord:630484066734571540', 
}

-- ======================================================================
-- ELEVATORS DATA (DYNAMICALLY LOADED FROM SQL DATABASE)
-- ======================================================================
Config.Elevators = {} -- Do not add any elevators here! They are controlled from within the game via command.
```

<mark style="color:$primary;">**⚠️ Important Notes:**</mark>

* <mark style="color:blue;">**Admin Access:**</mark> Only players with identifiers listed in the <mark style="color:$info;">`Config.Admins`</mark> array can open the Creator Dashboard.
* <mark style="color:blue;">**Empty Elevators Table:**</mark> Do NOT manually write elevator data into <mark style="color:$info;">`Config.Elevators`</mark>. The script dynamically loads all data from the SQL database to ensure live synchronization.

#### <mark style="color:$warning;">**2. In-Game Elevator Management**</mark>

All elevator creation, floor setup, precise coordinate capturing, and job restriction configurations are handled entirely through our exclusive in-game dashboard. Once you have admin access, simply open the menu inside your server to add and manage elevators on the fly—absolutely no file editing or server restarts required!
