> 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/installation.md). Agents can also search and read this documentation through its [MCP server](https://tefox-scripts.gitbook.io/tefox-scripts-docs/~gitbook/mcp).

# Installation

Follow these simple steps to install the **TEFOX Elevator System** on your server:

### <mark style="color:$danger;">**Step 1:**</mark>

<mark style="color:yellow;">**Download & Extract**</mark>

1. Download the script from your [<mark style="color:$danger;">Tebex Keymaster</mark>](https://portal.cfx.re/assets/granted-assets).
2. Extract the folder and ensure it is named exactly <mark style="color:$info;">`tefox_elevators`</mark>.
3. Place the <mark style="color:$info;">`tefox_elevators`</mark> folder into your server's <mark style="color:$info;">`resources`</mark> directory.

### <mark style="color:$danger;">**Step 2:**</mark>

**Database Setup Our script uses a safe injection method to prevent any accidental data loss. Run the provided SQL file or execute the following query directly into your database:**

```lua
CREATE TABLE IF NOT EXISTS `tefox_elevators` (
  `elevator_id` varchar(50) NOT NULL,
  `label` varchar(100) NOT NULL,
  `job` varchar(50) DEFAULT '',
  `floors` longtext NOT NULL,
  PRIMARY KEY (`elevator_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
```

### <mark style="color:$primary;">Step 3:</mark>

**Start the Script Open your&#x20;**<mark style="color:$info;">**`server.cfg`**</mark>**&#x20;file and add the following line to ensure the script starts with your server:**

```lua
ensure tefox_elevators
```

Restart your server or start the script via the console. You are ready to go!
