Installation
Dependencies
Ensure the following resources are installed and running before sd-selling:
| Dependency | Options |
|---|---|
| Library | sd_lib |
| Target | ox_target |
| UI Library | ox_lib |
| Inventory | ox_inventory (recommended) |
| Database | oxmysql |
Step 1: Add the Resource
- Download
sd-sellingfrom Keymaster - Extract it into your server's
resourcesdirectory - Add
ensure sd-sellingto yourserver.cfgafter all dependencies
ini
ensure sd_lib
ensure ox_lib
ensure ox_target
ensure ox_inventory
ensure oxmysql
ensure sd-sellingTIP
The sd_cornerselling database table is created automatically on first start. No manual SQL required.
Step 2: Add Items
If using money washing, ensure the cash items exist:
lua
-- Add to ox_inventory/data/items.lua (if not already present)
['bands'] = {
label = 'Band Of Notes',
weight = 100,
stack = true,
close = true,
description = 'A band of small notes..',
},
['rolls'] = {
label = 'Roll Of Small Notes',
weight = 100,
stack = true,
close = true,
description = 'A roll of small notes..',
},lua
-- Add to qb-core/shared/items.lua
['bands'] = { name = 'bands', label = 'Band Of Notes', weight = 100, type = 'item', image = 'bands.png', unique = false, useable = false, shouldClose = true, description = 'A band of small notes..' },
['rolls'] = { name = 'rolls', label = 'Roll Of Small Notes', weight = 100, type = 'item', image = 'rolls.png', unique = false, useable = false, shouldClose = true, description = 'A roll of small notes..' },sql
-- Import sd-selling/[SQL]/ESX/items.sql or run manually:
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
('bands', 'Band Of Notes', 1),
('rolls', 'Roll Of Small Notes', 1);Also ensure all drugs configured in Config.Zones and Config.Delivery.Drugs exist in your inventory system (e.g., cokebaggy, crack_baggy, xtcbaggy, oxy, meth, weed variants).
Step 3: Copy Item Images
Copy the item images from sd-selling/images/ to your inventory's image folder:
| Inventory | Image Path |
|---|---|
| ox_inventory | ox_inventory/web/images/ |
| qb-inventory / ps-inventory | <inventory>/html/images/ |
| qs-inventory | qs-inventory/html/images/ |
| codem-inventory | codem-inventory/html/itemimages/ |
| origen_inventory | origen_inventory/ui/images/ |
Selling Item Images2 images


TIP
If you are using a custom inventory, place the images wherever your inventory loads item icons from.
Step 4: Start and Verify
- Start your server
- Check the server console for any errors
- The Drug Lord NPC spawns at one of 3 random locations (for deliveries)
- Approach NPCs in configured selling zones to start selling
WARNING
Make sure sd_lib is started before sd-selling in your server.cfg, or the resource will fail to load.
Database Table
| Column | Type | Purpose |
|---|---|---|
Identifier | VARCHAR(255) | Player identifier |
XP | INT | Total reputation experience points |
Stats | JSON | Per-drug sales counts |
Milestones | JSON | Redeemed milestone tracking |
