Skip to content

10% off shop orders, applied at checkout

RPScripts

QR Blackmarket for FiveM: Setup Notes

By Lena

QR Blackmarket for FiveM: Setup Notes
On this page

QR Blackmarket by QR Development is a QBCore resource. Players use the blackpaper item to open a newspaper-style market, order illegal items and collect them from a delivery van. The manifest reports version 1.0.0, the last commit is from March 2025, and the repository does not state a license.

Requirements

  • QBCore
  • qb-target or ox_target (set Config.UseOxTarget = true for ox_target)
  • qb-phone for the pickup notification

How an order works

Using blackpaper removes one paper and opens the market. After an order, the script waits 10 seconds, picks a random entry from Config.DeliveryLocations, sends a qb-phone notification and places a blip. At the van, the player collects the order through the target resource. Payment is taken from cash at that moment, not when the order is placed, and each player can have only one pending order.

For orders stored in the database and paid with dirty money, Geni Blackmarket saves orders in its own table and accepts the markedbills item or a black money account.

Installation

  1. Add blackpaper to qb-core/shared/items.lua; the repository's items.lua holds the entry, with the label "Old newspaper" and the image printerdocument.png.
  2. Copy the qr-blackmarket folder into your resources directory.
  3. Add ensure qr-blackmarket to server.cfg after qb-core, your target resource and qb-phone.
  4. Restart the server.

Configuration

config.lua sets Config.MinOrderPrice and Config.MaxOrderPrice, the van model (Config.VanModel, default speedo4), the delivery points and Config.BlackMarketItems with item name, label, price, minAmount and maxAmount. The shipped file has only two delivery locations. For smg_ammo and rifle_ammo the minimum amount (10) is higher than the maximum (5), so correct those rows. Every item name must exist in your shared items.

Setup and checks

The server event qr-blackmarket:server:giveItems takes the item list and the order total from the client. It only checks that the player has that much cash; it does not compare the items with Config.BlackMarketItems or recompute the price. A modified client could therefore request any item for any amount, so add server-side validation before release. Then test payment without enough cash, a full inventory, collecting the same order twice and, if you do not run qb-phone, how the pickup notification reaches players.

Sources

Original source

Related server guide