# Setup

This page covers the minimum setup required to get the script running correctly: dependencies, `server.cfg` start order, and database import.

## Required Dependencies

* [oxmysql](https://github.com/overextended/oxmysql/releases)
* [ox\_lib](https://github.com/overextended/ox_lib/releases)
* `es_extended`, `qb-core`, or `qbx_core`

## Recommended server.cfg Start Order

```lua
start oxmysql
start ox_lib
start framework -- es_extended, qb-core, or qbx_core
-- other resources
start 0r-gungame
```

## Database

Import this file manually:

```lua
0r-gungame/database.sql
```

The script creates this table:

```sql
CREATE TABLE IF NOT EXISTS gungame_profiles (...);
```

{% hint style="warning" %}
This resource does not auto-run `database.sql` from `fxmanifest.lua`. Import it yourself before testing the arena.
{% endhint %}

## Required Items

There are no required inventory items by default.

The resource mainly uses:

* Command access
* Lobby profiles stored in SQL
* Built-in loadout handling

## Final Checklist

After setup, verify these points:

* SQL was imported successfully
* `ox_lib` and `oxmysql` start without errors
* `0r-gungame` starts without errors
* The `/gungame` menu opens
* You can create a test lobby and start a match
