# Admin Panel

Full control over the event system through a modern NUI interface.

***

### Access

| Method     | Details                       |
| ---------- | ----------------------------- |
| Command    | /eventadmin                   |
| Permission | Must be in Config.AdminGroups |
| Close      | ESC key or Close button       |

***

### Events Tab

#### Quick Launch Section

Four event cards displayed in a 2x2 grid:

| Card     | Icon                    | Description                   |
| -------- | ----------------------- | ----------------------------- |
| Airdrop  | paragliding             | Supply crate with random loot |
| Hotzone  | local\_fire\_department | Hold area and earn rewards    |
| Convoy   | local\_shipping         | Destroy armored vehicle       |
| Treasure | explore                 | Find buried treasure          |

Each card shows:

* Event type icon with color
* Status indicator (green dot = active, grey = inactive)
* Event name and description
* Duration and type metadata
* Launch Event button

#### Active Events Section

Lists all currently running events:

* Event type icon and name
* Location with map pin emoji
* Live countdown timer (updates every second)
* Individual Stop button per event
* Stop All button to end everything

***

### Scheduler Tab

Configure automatic event scheduling:

| Control               | Type         | Description                     |
| --------------------- | ------------ | ------------------------------- |
| Auto Events Enabled   | Toggle       | Enable or disable the scheduler |
| Min Interval          | Number input | Minimum minutes between events  |
| Max Interval          | Number input | Maximum minutes between events  |
| Min Players Required  | Number input | Minimum online players needed   |
| Max Concurrent Events | Number input | Maximum simultaneous events     |
| Save Changes          | Button       | Apply all scheduler settings    |

Note: Changes are applied immediately but reset on server restart.

***

### History Tab

Shows past events loaded from the database:

| Field        | Description                            |
| ------------ | -------------------------------------- |
| Event type   | Icon and label (Airdrop, Convoy, etc.) |
| Location     | Where the event took place             |
| Start time   | Date and time the event started        |
| Duration     | How long the event lasted              |
| Claimed by   | Player who won the reward              |
| Reward       | Money amount given                     |
| Participants | Number of players involved             |
| Result       | Completed, Expired, or Stopped         |

Displays up to 50 most recent events.

***

### Settings Tab

Toggle switches for various features:

| Setting            | Description                     |
| ------------------ | ------------------------------- |
| Notification Sound | Play sound when events start    |
| Screen Effects     | Visual effects on announcements |
| Blip Flash         | Flash event blips on map        |
| Dashboard HUD      | Show mini event tracker         |

***

### Console Commands

Available in server console or admin chat:

| Command               | Description                     |
| --------------------- | ------------------------------- |
| /event start airdrop  | Start an airdrop event          |
| /event start hotzone  | Start a hotzone event           |
| /event start convoy   | Start a convoy event            |
| /event start treasure | Start a treasure hunt           |
| /event stop           | Stop all running events         |
| /event stop convoy    | Stop all convoy events          |
| /event list           | List active events with details |
| /event status         | Show system status summary      |

***

### Discord Logging

All admin actions are logged to Discord when enabled:

| Action           | Details Logged                      |
| ---------------- | ----------------------------------- |
| Launch event     | Admin name, event type              |
| Stop event       | Admin name, event type, location    |
| Stop all         | Admin name, count of stopped events |
| Toggle scheduler | Admin name, new status              |
| Change settings  | All modified values                 |


---

# 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/el-events/admin-panel.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.
