# Setup

This page covers the minimum setup required to get the script running correctly: dependencies, extra map resources, `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`

## Extra Resources Included With Paintball

The default V2 package also includes extra resources for the weapon and maps:

* `0r-paintball-gun`
* `3fe_area2`
* `3fe_modev2`
* `3fe_modev4`

If you want to use the included weapon and included map set, start those resources before `0r-paintball-v2`.

## Recommended server.cfg Start Order

```lua
start oxmysql
start ox_lib
start framework -- es_extended, qb-core, or qbx_core
-- other resources
start 0r-paintball-gun
start 3fe_area2
start 3fe_modev2
start 3fe_modev4
start 0r-paintball-v2
```

## Database

Import this file manually:

```lua
0r-paintball-v2/database.sql
```

The script creates this table:

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

## Required Items

There are no required inventory items by default.

The main extra requirement is the custom paintball weapon resource if you keep:

```lua
Config.Game.weapon = 'WEAPON_PAINTBALL'
```

## Final Checklist

After setup, verify these points:

* SQL was imported successfully
* Extra map and weapon resources start without errors
* `0r-paintball-v2` starts without errors
* The `/paintball` menu opens
* You can create and start a test match
