# konpep-dev/aether-ac-for-fivem architecture

> Architecture diagram of the GitHub repository konpep-dev/aether-ac-for-fivem, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/konpep-dev/aether-ac-for-fivem
- Repository: https://github.com/konpep-dev/aether-ac-for-fivem

## Overview

Aether is a FiveM anticheat resource: it monitors players and server events, applies protection or enforcement, and provides administrators with management and evidence tools. The README documents detection, spam protection, anti-VPN, safe-mode integrations, updates, and player information; the sampled UI confirms administrative actions are sent through FiveM NUI. Most Lua implementation files were not sampled, so their internal call relationships are not asserted. The screenshot sender’s database-to-Discord behavior is visible in its excerpt.

Main entry points: [`api/discord_screenshots.py`](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/api/discord_screenshots.py) (Screenshot sender), [`server.lua`](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/server.lua) (Resource server), [`data/schema.sql`](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/data/schema.sql) (Player and ban records), [`config.lua`](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/config.lua) (Protection config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_protection["Protection"]
  node_client_checks["Client detections<br/>[client.lua]"]
  node_server_checks["Server enforcement<br/>[server.lua]"]
  node_event_detection["Event detection<br/>[events.lua]"]
  node_spam_detection["Spam detection<br/>[spam_detection.lua]"]
  node_spam_server["Spam enforcement<br/>[spam_server.lua]"]
  node_tamper["Anti-tamper<br/>[anti_tamper.lua]"]
  node_config["Protection config<br/>[config.lua]"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin panel<br/>[App.tsx]"]
  node_nui_bridge["NUI request bridge<br/>[nui.ts]"]
  node_resource_server["Resource server<br/>[server.lua]"]
  node_resource_client["Resource client<br/>[client.lua]"]
  node_ban_screen["Ban screen<br/>[index.html]"]
end

subgraph group_evidence["Evidence"]
  node_player_data[("Player and ban records<br/>[schema.sql]")]
  node_screenshot_api["Screenshot sender"]
end

subgraph group_integration["Integrations"]
  node_auto_integration["Safe-mode integration"]
  node_framework["Framework integration<br/>[framework.lua]"]
  node_auto_update["Auto-update<br/>[auto_update.lua]"]
end

node_player(("Player"))
node_administrator(("Administrator"))
node_fivem{{"FiveM Server"}}
node_discord{{"Discord"}}

node_player -->|"connects to"| node_fivem
node_client_checks -->|"monitors"| node_player
node_server_checks -->|"detects and enforces"| node_player
node_event_detection -->|"checks events"| node_player
node_spam_detection -.->|"supports enforcement"| node_spam_server
node_administrator -->|"uses"| node_admin_ui
node_admin_ui -->|"sends requests through"| node_nui_bridge
node_nui_bridge -.->|"posts NUI events"| node_resource_server
node_resource_server -.->|"coordinates actions"| node_resource_client
node_resource_server -.->|"records evidence"| node_player_data
node_player -->|"views ban result"| node_ban_screen
node_auto_integration -->|"enables safe mode"| node_player
node_administrator -->|"checks or applies updates"| node_auto_update
node_screenshot_api -->|"reads screenshots"| node_player_data
node_screenshot_api -->|"sends screenshot embeds"| node_discord
node_screenshot_api -->|"updates screenshot URL"| node_player_data
node_config -.->|"configures protections"| node_client_checks
node_config -.->|"configures protections"| node_server_checks

click node_client_checks "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/client.lua"
click node_server_checks "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/server.lua"
click node_event_detection "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/events.lua"
click node_spam_detection "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/spam_detection.lua"
click node_spam_server "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/spam_server.lua"
click node_tamper "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anti_tamper.lua"
click node_config "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/config.lua"
click node_auto_integration "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/auto_integration.lua"
click node_framework "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/framework.lua"
click node_auto_update "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/auto_update.lua"
click node_admin_ui "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/web/src/App.tsx"
click node_nui_bridge "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/web/src/utils/nui.ts"
click node_resource_server "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/server.lua"
click node_resource_client "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/client.lua"
click node_ban_screen "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/web/ban/index.html"
click node_player_data "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/data/schema.sql"
click node_screenshot_api "https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/api/discord_screenshots.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_client_checks,node_server_checks,node_event_detection,node_spam_detection,node_spam_server,node_tamper,node_config toneBlue
class node_admin_ui,node_nui_bridge,node_resource_server,node_resource_client,node_ban_screen toneAmber
class node_player_data,node_screenshot_api,node_fivem toneMint
class node_auto_integration,node_framework,node_auto_update toneRose
class node_player,node_administrator,node_discord toneIndigo
```

## Components

### Protection

- [Client detections](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/client.lua): `anticheat/client.lua`
- [Server enforcement](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/server.lua): `anticheat/server.lua`
- [Event detection](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/events.lua): `anticheat/events.lua`
- [Spam detection](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/spam_detection.lua): `anticheat/spam_detection.lua`
- [Spam enforcement](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anticheat/spam_server.lua): `anticheat/spam_server.lua`
- [Anti-tamper](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/anti_tamper.lua): `anti_tamper.lua`
- [Protection config](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/config.lua): `config.lua`

### Administration

- [Admin panel](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/web/src/App.tsx): `web/src/App.tsx`
- [NUI request bridge](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/web/src/utils/nui.ts): `web/src/utils/nui.ts`
- [Resource server](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/server.lua): `server.lua`
- [Resource client](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/client.lua): `client.lua`
- [Ban screen](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/web/ban/index.html): `web/ban/index.html`

### Evidence

- [Player and ban records](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/data/schema.sql): `data/schema.sql`
- [Screenshot sender](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/api/discord_screenshots.py): `api/discord_screenshots.py`

### Integrations

- [Safe-mode integration](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/auto_integration.lua): `auto_integration.lua`
- [Framework integration](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/framework.lua): `framework.lua`
- [Auto-update](https://github.com/konpep-dev/aether-ac-for-fivem/blob/main/auto_update.lua): `auto_update.lua`

### Other components

- **Player**
- **Administrator**
- **FiveM Server**
- **Discord**

## Connections

- Player → FiveM Server: connects to (evidence: `README.md`)
- Client detections → Player: monitors (evidence: `README.md`)
- Server enforcement → Player: detects and enforces (evidence: `README.md`)
- Event detection → Player: checks events (evidence: `README.md`)
- Spam detection → Spam enforcement: supports enforcement
- Administrator → Admin panel: uses (evidence: `README.md`)
- Admin panel → NUI request bridge: sends requests through (evidence: `web/src/App.tsx`)
- NUI request bridge → Resource server: posts NUI events
- Resource server → Resource client: coordinates actions
- Resource server → Player and ban records: records evidence
- Player → Ban screen: views ban result (evidence: `README.md`)
- Safe-mode integration → Player: enables safe mode (evidence: `README.md`)
- Administrator → Auto-update: checks or applies updates (evidence: `README.md`)
- Screenshot sender → Player and ban records: reads screenshots (evidence: `api/discord_screenshots.py`)
- Screenshot sender → Discord: sends screenshot embeds (evidence: `api/discord_screenshots.py`)
- Screenshot sender → Player and ban records: updates screenshot URL (evidence: `api/discord_screenshots.py`)
- Protection config → Client detections: configures protections
- Protection config → Server enforcement: configures protections
