---
title: "Installation"
description: "Download Asphyxia, add it to your server, and confirm it started correctly."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.asphyxia.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

Installing Asphyxia takes about five minutes. You'll need an active license and
a MySQL database.

## Requirements

| Requirement | Notes |
| :--- | :--- |
| An active Asphyxia license | Buy one at [asphyxia.dev](https://asphyxia.dev) |
| FiveM server (any framework) | ESX, QBCore, standalone — Asphyxia doesn't care |
| MySQL database | Sharing one with your framework is fine |
| `oxmysql` | Asphyxia runs its queries through it |
| `screencapture` | Used for ban screenshots and the admin menu |

1. **Create a server on the dashboard**

   Open your [dashboard](https://asphyxia.dev/dashboard) and add a server. You'll
   get three values — a **license key**, a **server ID**, and a **shared
   secret**. Keep the page open; you'll paste all three into `server.cfg` shortly.

2. **Download the resource**

   Go to **Download** in the dashboard and grab the latest `.zip`. Extract it into
   your resources folder so the path ends in `resources/[core]/asphyxia`.

   > **Caution**
   >
   > Don't rename the folder or edit any file inside it. Asphyxia verifies its own
   > files at startup and refuses to run if they've been changed — see
   > [Troubleshooting](/anticheat/troubleshooting).

3. **Import the database schema**

   Run `sql/schema.sql` against your database. It creates the tables Asphyxia uses
   for players, bans, strikes, admins, logs and fingerprints. Running it a second
   time is harmless.

4. **Add your settings to server.cfg**

```ini title="server.cfg"
set asphyxia_license       "your-license-key"
set asphyxia_server_id     "your-server-id"
set asphyxia_shared_secret "your-shared-secret"

ensure asphyxia
```

   `ensure asphyxia` must come **after** `oxmysql` and `screencapture`. Every
   available setting is listed on [Server configuration](/anticheat/server-config).

5. **Save your configuration on the dashboard**

   Asphyxia doesn't ship with a working config — it downloads one from your
   dashboard every time it starts. Open **Configuration**, adjust anything you
   want, and press **Save** at least once. Without a saved config the resource
   will refuse to start.

6. **Restart and check the console**

   Restart your server. A healthy start looks like this:

```text
[Asphyxia.] › ℹ info    Checking your license…

  Asphyxia Anti-Cheat  v1.0.0
  ─────────────────────────────────
  Server           : Vanilla
  Resource         : asphyxia
  Panel            : https://asphyxia.dev/dashboard

  Your License     : Lifetime
  Expires in       : ∞ Never
  ─────────────────────────────────

[Asphyxia.] › ✔ success Loaded 0 active ban(s) from your database.
[Asphyxia.] › ✔ success Loaded 0 admin(s) from your database.
[Asphyxia.] › ✔ success Configuration loaded from your dashboard.
```

   If you see an error instead, [Troubleshooting](/anticheat/troubleshooting) lists
   each one and what to do about it.

7. **Make yourself an admin**

   Join the server, then add yourself on the dashboard's **Admins** page. Give
   yourself `openAdminPanel` at minimum, then type `/asphyxia` in-game to open the
   [admin menu](/anticheat/admin-menu).

## Confirming it works

Run `asphyxia status` in your server console. It prints a summary of everything
Asphyxia currently knows:

```text
ASPHYXIA STATUS
────────────────────────────────────────────────────────────
  Version           : 1.0.0
  Config loaded     : yes
  Integrity check   : passing
  Debug mode        : off
  Players online    : 12
  Local bans        : 34
  Global bans       : 1892
  Admins            : 4
  Active whitelists : 0
────────────────────────────────────────────────────────────
```

## Updating

Asphyxia checks for updates when it starts and prints a banner with the
changelog if one is available. To update, download the new `.zip`, replace the
folder, and restart. Your configuration and database are untouched.

Source: https://docs.asphyxia.dev/anticheat/installation/index.mdx
