Biyei Docs

Installation

  1. 1

    Dependencies

    Make sure you have these resources installed on your server:

    1. ESX or QB-Core
    2. MenuV
    3. Biyei Utils
  2. 2

    Start order

    Warning

    Don't rename the resource or you'll get an error (credits).

    server.cfgserver.cfg
    ensure menuv
    ensure biyei_utils
    ensure biyei_vipweapons
  3. 3

    For ox_inventory

    Note

    If you don't have ox_inventory, ignore this step.

    Add this line to server.cfg:

    Text
    setr inventory:weaponmismatch false
  4. 4

    Install SQL

    Note

    Important, install the SQL.

    SQL
    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;
  5. 5

    Add admin ace_permissions

    You can modify the ace_permissions in the config file.

    server.cfg
    add_ace group.admin "vipweapons" allow
    # Assign the "vipweapons" permission to the group "admin"
    server.cfg
    # 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