Skip to content

Installation

Dependencies

Ensure the following resources are installed and running before sd-selling:

DependencyOptions
Librarysd_lib
Targetox_target
UI Libraryox_lib
Inventoryox_inventory (recommended)
Databaseoxmysql

Step 1: Add the Resource

  1. Download sd-selling from Keymaster
  2. Extract it into your server's resources directory
  3. Add ensure sd-selling to your server.cfg after all dependencies
ini
ensure sd_lib
ensure ox_lib
ensure ox_target
ensure ox_inventory
ensure oxmysql
ensure sd-selling

TIP

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:

InventoryImage Path
ox_inventoryox_inventory/web/images/
qb-inventory / ps-inventory<inventory>/html/images/
qs-inventoryqs-inventory/html/images/
codem-inventorycodem-inventory/html/itemimages/
origen_inventoryorigen_inventory/ui/images/
Selling Item Images2 images
Bands
bands.png
Rolls
rolls.png

TIP

If you are using a custom inventory, place the images wherever your inventory loads item icons from.

Step 4: Start and Verify

  1. Start your server
  2. Check the server console for any errors
  3. The Drug Lord NPC spawns at one of 3 random locations (for deliveries)
  4. 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

ColumnTypePurpose
IdentifierVARCHAR(255)Player identifier
XPINTTotal reputation experience points
StatsJSONPer-drug sales counts
MilestonesJSONRedeemed milestone tracking