๐Ÿ”งInstallation

Installation for QBCore

Step 1

First unzip the resource and put into resources folder.

Step 2

Insert this new tables

CREATE TABLE IF NOT EXISTS `origen_darkmarket_stock` (
  `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,
  `type` VARCHAR(255) NOT NULL, -- weapon, masks
  `object` VARCHAR(255) NOT NULL,
  `camo` VARCHAR(255),
  `rarity` VARCHAR(255),
  `stock` INTEGER NOT NULL,
  `available` INTEGER NOT NULL
);

CREATE TABLE IF NOT EXISTS `origen_darkmarket_camos` (
  `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,
  `citizenid` VARCHAR(255) NOT NULL,
  `camos` LONGTEXT
);

CREATE TABLE IF NOT EXISTS `origen_darkmarket_items` (
  `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,
  `citizenid` VARCHAR(255) NOT NULL,
  `items` LONGTEXT
);

Step 3

Put that export into your qb-weapons resource into clien.lua at the latest line.

exports("GetSelectedWeapon", function()
    return CurrentWeaponData and CurrentWeaponData or nil  
end)

Step 4

Select the Framework

Config = Config or {}
Config.Language = "en" -- es, en, fr, it, zh
Config.Framework = "qbcore" -- auto, qbcore, esx
Config.Inventory = "qb-inventory"
Config.Debug = false

Step 5

Enjoy!! ๐Ÿ˜„

Last updated