---
description: >-
  Here you can see the documentation to learn how to install our store's VIP
  weapons system.
---

# Jota Dev Weapons Vip



<figure><img src="https://3421265329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzDRYxKNrQL10LsRlXjcj%2Fuploads%2F9SE2vhsk60KmCeMlbVtv%2Fweapons_docs.png?alt=media&#x26;token=43c71fc2-8e1d-4c2b-9036-3e102a12db55" alt=""><figcaption></figcaption></figure>

How to start the script for its correct operation:

**Download and install menuv**

[**https://github.com/ThymonA/menuv**](https://github.com/ThymonA/menuv)

**Put in your server.cfg**

```markdown
# JotaDev Weapons Vip
ensure menuv
ensure jc_weapons_vip
```

**Insert SQL into your database and configure your framework:**

{% tabs %}
{% tab title="SQL" %}
```sql
CREATE TABLE IF NOT EXISTS vip_menu_users (
    id INT AUTO_INCREMENT PRIMARY KEY,
    identifier VARCHAR(50) NOT NULL UNIQUE
);

CREATE TABLE IF NOT EXISTS `vip_weapons` (
  `id` INT NOT NULL AUTO_INCREMENT,
  `identifier` VARCHAR(64) NOT NULL,
  `name` VARCHAR(50) NOT NULL,
  `label` VARCHAR(100) DEFAULT NULL,
  `silencer` VARCHAR(100) DEFAULT NULL,
  `extended_mag` VARCHAR(100) DEFAULT NULL,
  `weapon_skin` VARCHAR(100) DEFAULT NULL,
  `scope` VARCHAR(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `identifier_name_unique` (`identifier`, `name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


CREATE TABLE IF NOT EXISTS weapon_templates (
    id INT AUTO_INCREMENT PRIMARY KEY,
    name VARCHAR(50) NOT NULL,
    label VARCHAR(100) NOT NULL,
    silencer VARCHAR(50) DEFAULT NULL,
    extended_mag VARCHAR(50) DEFAULT NULL,
    weapon_skin VARCHAR(50) DEFAULT NULL,
    scope VARCHAR(50) DEFAULT NULL
);

```
{% endtab %}

{% tab title="ESX" %}
```lua
Config = Config or {}

Config.Framework = "esx" -- ingrese qb o esx depende de tu framework

Config.CommandVipMenu = "menu_vip"
Config.TeclaOpenMenuVIP = "K"

Config.CommandAdminPanel = "weapon_menu"

Config.Debug = false

Config.AdminGroups = {
    ["admin"] = true,
    ["mod"] = true,
    ["superadmin"] = true
}

if Config.Framework == 'qb' then
    QBCore = exports['qb-core']:GetCoreObject()
elseif Config.Framework == 'esx' then
    ESX = exports["es_extended"]:getSharedObject()
else
    print '^1[^6jc_weapons_vip^1] ^2Framework No encontrada, ingrese esx o qb^0'
    return
end

```
{% endtab %}

{% tab title="QB-Core" %}
```lua
Config = Config or {}

Config.Framework = "qb" -- ingrese qb o esx depende de tu framework

Config.CommandVipMenu = "menu_vip"
Config.TeclaOpenMenuVIP = "K"

Config.CommandAdminPanel = "weapon_menu"

Config.Debug = false

Config.AdminGroups = {
    ["admin"] = true,
    ["mod"] = true,
    ["superadmin"] = true
}

if Config.Framework == 'qb' then
    QBCore = exports['qb-core']:GetCoreObject()
elseif Config.Framework == 'esx' then
    ESX = exports["es_extended"]:getSharedObject()
else
    print '^1[^6jc_weapons_vip^1] ^2Framework No encontrada, ingrese esx o qb^0'
    return
end

```
{% endtab %}
{% endtabs %}

If you use ox\_inventory add this to your server.cfg:

{% tabs %}
{% tab title="Ox_inventory" %}
```lua
setr inventory:weaponmismatch false
```
{% endtab %}
{% endtabs %}
