QBESXStandalone
Agency-Drugs Installation
The complete drug system for FiveM in one script.
v1.0.0Paid5 PagesFrom 01.11.2026

01Installation
- 1Extract Agency-Drugs into your resources folder
- 2Add ensure Agency-Drugs to server.cfg, after your framework, your inventory and oxmysql
- 3Start the server: the database tables and the 5 default routes are created on the first start
- 4Copy the item images from install/images into the image folder of your inventory
- 5ox_inventory: add the items from the README to ox_inventory/data/items.lua. QBCore and QBox inventories get the items at runtime, ESX runs sql/install.sql
- 6Give admins the menu with add_ace group.admin agency.drugs allow
- 7Open /drugsadmin in game to check the routes, balance prices or import routes from another drug script
02Dependencies
oxmysql (required)OneSync (required)QBCore, QBox or ESX (optional, runs standalone without one)An inventory (optional: ox_inventory, qb-inventory, ps-inventory, lj-inventory, jpr-inventory or qs-inventory, found automatically)Agency Phone and Agency Pad (optional, add the Dealer app)Agency Gangs (optional, turf bonus, vault share and warnings)A dispatch script (optional: ps-dispatch, cd_dispatch, tk_dispatch, qs-dispatch or core_dispatch, otherwise a police blip is used)Agency-Notify (optional, otherwise the notifications of your framework are used)Agency-Companion (optional, free: links the script with the Agency Companion app through /app)
03SQL File
Optional: the resource creates these tables on its own when it starts. Import this file only if you set up the database by hand:
-- =====================================================
-- AGENCY DRUGS — optional SQL
-- The script creates its own tables on the first start (agency_drugs_*).
-- You only need this file on ESX: it adds the default items to the items table.
-- QBCore / QBox add the items by themselves at runtime, ox_inventory uses
-- the snippet in README.md.
-- =====================================================
INSERT IGNORE INTO `items` (`name`, `label`, `weight`) VALUES
('cannabis_leaf', 'Cannabis Leaf', 1),
('coca_leaf', 'Coca Leaf', 1),
('solvent', 'Solvent', 1),
('pseudoephedrine', 'Pseudoephedrine', 1),
('sodium_hydroxide', 'Sodium Hydroxide', 1),
('ammonium_nitrate', 'Ammonium Nitrate', 1),
('ketamine_raw', 'Raw Ketamine', 1),
('codeine', 'Codeine Syrup', 1),
('cherry', 'Cherries', 1),
('weed_bag', 'Weed Bag', 1),
('joint', 'Joint', 1),
('cocaine_bag', 'Cocaine Bag', 1),
('meth_bag', 'Meth Bag', 1),
('ketamine_pill', 'Ketamine Pill', 1),
('lean_cup', 'Lean', 1);