๐Ÿ›’Black Market

A comprehensive black market system for FiveM servers using QBCore framework. This script provides a secure and feature-rich way to handle illegal item trades with a user-friendly interface.

Features

  • Clean and modern NUI interface

  • Support for both regular money and black money

  • RP+ integration for VIP players

  • Category-based item system

  • Dynamic delivery system with NPCs

  • Realistic delivery mechanics

  • Order history tracking

  • Weekly order limits per category

  • Target system integration (supports ox_target, qtarget, qb-target)

  • Discord webhook logging

Installation

  1. Download the resource

  2. Add the following SQL to your database:

CREATE TABLE IF NOT EXISTS `gun_orders` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(50) DEFAULT NULL,
  `order_date` int(11) DEFAULT NULL,
  `delivery_time` int(11) DEFAULT NULL,
  `weapon_brand` varchar(50) DEFAULT NULL,
  `delivery_id` int(11) DEFAULT NULL,
  `claimed` varchar(50) DEFAULT NULL,
  `category` varchar(50) DEFAULT NULL,
  `delivery_coords` longtext DEFAULT NULL,
  `quantity` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

ALTER TABLE `players` ADD COLUMN IF NOT EXISTS `rp_plus` BOOLEAN DEFAULT FALSE;
  1. Add to your server.cfg:

ensure hate-bmarket
  1. Configure the config.lua file according to your needs:

    • Set order location

    • Configure delivery points

    • Adjust category limits

    • Set up Discord webhooks

    • Configure available items and prices

    • Adjust delivery times

Configuration

Category Limits

Config.CategoryLimits = {
    weapons = 2,     -- Weekly weapons limit
    drugs = 100,     -- Weekly drugs limit
    ammunition = 5   -- Weekly ammunition limit
}

RP+ Benefits

Config.RPPlusCategoryLimits = {
    weapons = 4,
    drugs = 200,
    ammunition = 10
}

Config.RPPlusDeliveryTimeMultiplier = 0.5  -- Faster delivery for RP+ players

Delivery Times

Config.DeliveryTimes = {
    standardDeliveryTime = 60,    -- Minutes
    maxDeliveryWaitTime = 10,     -- Minutes
    claimTime = 300,              -- Minutes
    npcDisappearTime = 15         -- Seconds
}

Exports

Client Exports

None currently available.

Server Exports

None currently available.

Dependencies

  • QBCore Framework

  • ox_target/qtarget/qb-target (one of these required)

Support

For support, join our Discord server or create an issue on our GitHub repository.

Security Notice

This script is protected by FiveM's escrow system. The client and server-side code is encrypted and cannot be modified.

Last updated