> 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/vip-weapons/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>
2. [<mark style="color:red;">MenuV</mark>](https://github.com/ThymonA/menuv/releases/download/v1.4.1/menuv_v1.4.1.zip)
3. [Biyei Utils](https://github.com/biyeicito/biyei_utils)

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

```
ensure menuv
ensure biyei_utils
ensure biyei_vipweapons
```

{% hint style="warning" %}
Don't rename resource or you will get error (credits).
{% endhint %}

### **• STEP 3: FOR OX\_INVENTORY**

{% hint style="info" %}
If you don't have ox\_inventory ignore this step
{% endhint %}

Add this line in the server.cfg

```
setr inventory:weaponmismatch false
```

### **• STEP 4: INSTALL SQL**

{% hint style="info" %}
Important install SQL
{% endhint %}

```
CREATE TABLE IF NOT EXISTS `biyei_vipweapons_attachments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(50) NOT NULL DEFAULT '0',
  `hash` varchar(50) NOT NULL DEFAULT '0',
  `weapon_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `biyei_vipweapons_profiles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL DEFAULT '0',
  `identifier` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `identifier` (`identifier`) USING HASH
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `biyei_vipweapons_profiles_attachments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `owner` longtext DEFAULT NULL,
  `data_weapon_id` int(11) NOT NULL DEFAULT 0,
  `attachment_id` int(11) DEFAULT NULL,
  `active` int(11) DEFAULT 1,
  `enabled` int(11) DEFAULT 1,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=478 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `biyei_vipweapons_profiles_weapons` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `owner` longtext DEFAULT NULL,
  `weapon_id` int(11) NOT NULL DEFAULT 0,
  `weapon_label` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=235 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `biyei_vipweapons_weapons` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(50) NOT NULL DEFAULT '0',
  `hash` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
```

### **• STEP 5: ADD ADMIN ACE\_PERMISSIONS**

You can modify the ace\_permissions in the config file

```
add_ace group.admin "vipweapons" allow
# Assign the "vipweapons" permission to the group "admin"
```

```
# VIP Weapons
add_ace identifier.license:xxxxx vipweapons allow # allow all commands # All permissions


add_ace identifier.license:xxxxx vipweapons.open allow # allow all commands # Open Panel

add_ace identifier.license:xxxxx vipweapons.logs allow # allow all commands # Modify Logs
add_ace identifier.license:xxxxx vipweapons.profiles allow # allow all commands # Add, Remove and Edit Profiles
add_ace identifier.license:xxxxx vipweapons.weapons allow # allow all commands # Add, Remove and Edit Weapons Templates
```
