Page cover

πŸ’ΏInstallation

Discover how to install your script.

β€’ STEP 1: DEPENDENCIES

Make sure you have this resources installed in your server!

  1. ESX or QB-CORE

β€’ STEP 2: START ORDER

ensure menuv
ensure biyei_utils
ensure biyei_vipweapons

β€’ STEP 3: FOR OX_INVENTORY

If you don't have ox_inventory ignore this step

Add this line in the server.cfg

setr inventory:weaponmismatch false

β€’ STEP 4: INSTALL SQL

Important install 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;

β€’ 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

Last updated