> For the complete documentation index, see [llms.txt](https://infinity-labs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinity-labs.gitbook.io/docs/free-scripts/il-alliances/installation.md).

# Installation

### Requirements

* [qb-core](https://github.com/qbcore-framework/qb-core)
* [oxmysql](https://github.com/overextended/oxmysql)
* A MySQL/MariaDB database (whatever your server already uses for QBCore)

No other dependencies — no ox\_lib, no additional UI libraries.

***

### Installation

1. **Download** this resource and place the folder in your `resources` directory as `IL-alliances`.
2. **Import the database schema** — run `SQL/install.sql` against your server's database (phpMyAdmin, HeidiSQL, DBeaver, the `mysql` CLI, whatever you normally use). It only creates new tables (`alliance_status`, `alliance_requests`, `alliance_board_posts`, `alliance_messages`, `alliance_thread_reads`, `alliance_history`) — it won't touch anything else in your database.
3. **Add it to `server.cfg`**, after `qb-core` and `oxmysql`:

   ```
   ensure qb-core
   ensure oxmysql
   ensure IL-alliances
   ```
4. **Configure** `config.lua` to taste (see below) — at minimum, review `Config.IncludedJobs` if you want police/EMS/a custom job to participate.
5. **Restart your server** (or `refresh` + `restart IL-alliances` if adding this to an already-running server, so it picks up the resource's file list correctly).

That's it — no items, no exports other resources need to call, no additional setup.
