> 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/scripts/partner-code-system/installation.md).

# Installation

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

Make sure you have this resources installed in your server!

1. <mark style="color:yellow;">ESX</mark> or <mark style="color:purple;">QB-CORE</mark>

### **• STEP 2: START ORDER**

```
ensure biyei_partnercodes
```

### **• STEP 3: INSTALL SQL**

Execute this SQL so that the codes are stored and you do not receive errors.

```
CREATE TABLE IF NOT EXISTS `biyei_partnercodes` (
  `partner` varchar(255) NOT NULL,
  `code` varchar(255) NOT NULL,
  `uses` int(11) NOT NULL DEFAULT '0',
  `users` longtext NOT NULL,
  `moneyuser` int(11) NOT NULL DEFAULT '0',
  `moneypartner` int(11) NOT NULL DEFAULT '0',
  `deletes` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
```
