Installation

Dependencies

Installation

1

Download all dependencies

2

Download lvl_drugsell from your portal, extract it to the resources folder

3

In your server.cfg, create a new line and type ensure lvl_drugsell

4

Configure the script

Police jobs configurate in lvl_bridge

5

And lastly install sql and item you will find in the install folder

SQL

ESX version ⬇️

DROP TABLE IF EXISTS `drug_levels`;
CREATE TABLE `drug_levels` (
  `identifier` varchar(46) DEFAULT NULL,
  `xp` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  UNIQUE KEY `unique_identifier` (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


DROP TABLE IF EXISTS `drug_machines`;
CREATE TABLE `drug_machines` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `model` varchar(64) NOT NULL,
  `entity` varchar(64) NOT NULL,
  `coords` longtext NOT NULL,
  `heading` float NOT NULL,
  `identifier` varchar(64) DEFAULT NULL,
  `items` longtext DEFAULT NULL,
  `money` int(11) DEFAULT 0,
  `xp` int(11) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

QB Core version ⬇️

DROP TABLE IF EXISTS `drug_levels`;
CREATE TABLE `drug_levels` (
  `citizenid` varchar(46) DEFAULT NULL,
  `xp` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  UNIQUE KEY `unique_citizenid` (`citizenid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

DROP TABLE IF EXISTS `drug_machines`;
CREATE TABLE `drug_machines` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `model` varchar(64) NOT NULL,
  `entity` varchar(64) NOT NULL,
  `coords` longtext NOT NULL,
  `heading` float NOT NULL,
  `citizenid` varchar(64) DEFAULT NULL,
  `items` longtext DEFAULT NULL,
  `money` int(11) DEFAULT 0,
  `xp` int(11) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

Item

Image
Name
Label

drug_machine

Vending machine

Last updated