> For the complete documentation index, see [llms.txt](https://docs.biyei.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.biyei.net/old-scripts/hpaintball/installation.md).

# Installation

### **•** STEP 1: DEPENDENCIES

Make sure you have this resources installed in your server!

1. Support <mark style="color:yellow;">ESX,</mark> <mark style="color:purple;">QB-CORE</mark> or <mark style="color:green;">Custom Framework</mark>
2. Need download and ensure [xsound](https://github.com/Xogy/xsound)

### **• STEP 2: INSTALL SQL**

Install the SQL files in the `[Installation]` folder.

**SQL for ESX:**

```sql
ALTER TABLE `users` ADD COLUMN `is_inPaintball` INT NULL DEFAULT 0;
ALTER TABLE `users` ADD COLUMN `last_paintball_loc` LONGTEXT NULL DEFAULT NULL;

CREATE TABLE IF NOT EXISTS `biyei_hpaintball_stats` (
  `identifier` varchar(50) NOT NULL DEFAULT 'AUTO_INCREMENT',
  `name` varchar(80) NOT NULL DEFAULT '',
  `kills` int(11) NOT NULL,
  `wins` int(11) NOT NULL,
  `deaths` int(11) NOT NULL,
  `avatar` longtext NOT NULL,
  PRIMARY KEY (`identifier`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
```

**SQL for QBCore:**

```sql
ALTER TABLE `players` ADD COLUMN `is_inPaintball` INT NULL DEFAULT 0;
ALTER TABLE `players` ADD COLUMN `last_paintball_loc` LONGTEXT NULL DEFAULT NULL;

CREATE TABLE IF NOT EXISTS `biyei_hpaintball_stats` (
  `identifier` varchar(50) NOT NULL DEFAULT 'AUTO_INCREMENT',
  `name` varchar(80) NOT NULL DEFAULT '',
  `kills` int(11) NOT NULL,
  `wins` int(11) NOT NULL,
  `deaths` int(11) NOT NULL,
  `avatar` longtext NOT NULL,
  PRIMARY KEY (`identifier`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
```

### **• STEP 3: SET DISCORD BOT TOKEN**

You will need to put a [discord token bot](https://discord.com/developers/applications) on our resource to load the discord images in the players stats.

You can change it in line #1&#x20;

`shared/sv_editable.lua`

```lua
BotToken = '' -- It is important to put a discord token to show the pictures.
```

### **• STEP 4: START ORDER**

Ensure the resources in this order.

```cfscript
ensure xsound
ensure biyei_hpaintball
```
