CES Help Document > FiveM > QB-BlackMarket

QB-BlackMarket

1. Installation

Unzip the Script

Extract QB-BlackMarket_License.zip and place the folder inside your resources/ directory.

2. Start the Resource

Add the following to your server.cfg:

ensure QB-BlackMarket_License

3. Check Dependencies

QBCore Framework

Target system (qb-target or ox_target)

SQL Resource for persistent data (optional)

Game build 2189 or higher recommended

4. Configuration Guide

Open config.lua to begin customizing



-- License System
Config.ProductId = 999 -- Replace with your actual product ID
Config.LicenseKey = "YOUR_LICENSE_KEY"

-- NPC Setup
Config.BlackMarkets = {
    {
        name = "City Dealer",
        coords = vector3(-1532.29, -577.19, 25.71),
        heading = 120.0,
        job = nil, -- or "gangname" or "police"
        items = {
            { name = "weapon_pistol", price = 25000 },
            { name = "lockpick", price = 500 }
        },
        blip = false,
        ped = "g_m_m_mexboss_01"
    },
    {
        name = "Sandy Dealer",
        coords = vector3(1332.5, 4383.7, 44.3),
        heading = 200.0,
        job = "ballas",
        items = {
            { name = "weapon_knife", price = 1200 },
            { name = "armor", price = 8000 }
        },
        blip = false,
        ped = "g_m_y_lost_01"
    }
}

📝 Note: You can add unlimited locations and customize each one with specific NPC models, coordinates, items, and restrictions.

5. How to Use

Walk up to a black market NPC.

Use the 3rd-eye interaction (like qb-target or ox_target) to open the black market menu.

Purchase available items — they will be added directly to your inventory.

If the NPC is job/gang-locked, only allowed roles will see the option.

6. License System Integration

The script validates the license automatically on server start:

You must input your correct ProductId and LicenseKey.

The script will not work if validation fails.

7. Tips

To enable a map blip, set blip = true inside that market config.

Use Config.job = "police" or a gang name to restrict access.

You can create secret areas with teleportation or hide NPCs inside interiors for immersion.

8. Licensing

This script is protected under a commercial license. Redistribution, resale, or modification without permission is strictly prohibited.


Suggest an edit

Review this page

crazyeyes29

QB-BlackMarket

1 recommend this page