# Installation

## Installation

### Step 1: Download

Download the script from Tebex and extract it.

### Step 2: Place Files

```
resources/
└── elena_banmenu/
    ├── client.lua
    ├── server.lua
    ├── config.lua
    ├── fxmanifest.lua
    └── html/
```

### Step 3: Import SQL

```sql
CREATE TABLE IF NOT EXISTS `elena_banmenu` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `ban_id` VARCHAR(50) NOT NULL UNIQUE,
    `name` VARCHAR(100) NOT NULL,
    `reason` TEXT NOT NULL,
    `banned_by` VARCHAR(100) NOT NULL,
    `banned_at` BIGINT NOT NULL,
    `expires` BIGINT NOT NULL DEFAULT -1,
    `duration` BIGINT NOT NULL DEFAULT -1,
    `license` VARCHAR(100) DEFAULT NULL,
    `steam` VARCHAR(100) DEFAULT NULL,
    `discord` VARCHAR(100) DEFAULT NULL,
    `ip` VARCHAR(100) DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
```

### Step 4: Add to server.cfg

```cfg
ensure oxmysql
ensure elena_banmenu
```

### Step 5: Restart Server

Done! Open with `/banmenu` or `F6`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elena-scripts.gitbook.io/elenascripts/core-systems/ban-menu/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
