[QB/ESX] Black Market (Tebex + Server Donations + More)

Browns Black Market

Key Features:

  1. Connects with your Tebex Shop Site (Includes Complete Setup Instructions in “README.md” file)

  2. Players can Donate to your server by buying Black Market Coins on your Tebex which will attach such amounts of “Black Market Coins (BMC)” to their player data that they can then use to purchase items from the Black Market.

  3. Players can also use Dirty Money to buy items from Black Market if they choose not to Donate by purchasing Black Market Coins from your Tebex.

  4. You can add as many Black Market Locations as you want with Blips (optional)

  5. You can add ANY item to the Black Market Shop

  6. Clean Custom Shop UI + Custom UI Style for ox_lib Notification and DrawTextUI

  7. Players can click the “Buy BMC” Button in the shop UI which will copy the link to your tebex shop link that you provide in config.lua and paste it in their browser to visit your tebex shop

How Does It Work:

The Script is simply a black market with a custom shop UI that allows players to Donate to your server by purchasing Black Market Coins on your Tebex shop, as appreciation to their donation in return they can use the Black Market Coins in the black market to buy stuff, however if they don’t wish to Donate for Black Market Coins then they can just simply use their in game dirty money item that they would usually receive from doing various in game criminal activities to purchase items from the black market as they usually would.

TOS Compliance (According to what I researched):

  1. This is a “Safe” way to allow players to Donate to your FiveM Server to help cover Server Bills, Support Your Server, etc. as it is TOS Compliant and also allows players to go the free route by using Dirty Money instead of having to Donate, An All in One Black Market Script.

  2. Black Market Coins (BMC) Are not a IN GAME ITEM, instead its a integer stored in the players data in your database that can ONLY be used in the Black Market and can not be transferred from player to player or used to gain anything else in the in-game world.

Tebex Shop Essentials:

in the “tebex_essentials” folder there is a png image of the BMC Logo that you can use for your tebex packages related to such Donations. (The Logo is TOS Friendly as it is not copyrighted as it was completely made by me in Photoshop)

Installation:

Provided in “README.md” file

Compatibility:

Frameworks:
qb-core
esx

Inventories:
qb-inventory
ox_inventory
qs-inventory
ps-inventory
lj-inventory

Dependencies:

oxmysql
ox_lib

Purchase:

Tebex

Pictures:

In Game Shop UI:

ox_lib DrawTextUI (Custom Style With animated Skull that spins):

Custom Loading UI with progress circle (Shows while shop loads):

ox_lib Notify (Custom Style with animated Skull that spins):

Config.lua #1:

Config.lua #2:

Developer Stuff:

Exports:

source: the players server id
amount: the amount to add/remove

export['browns_blackmarket']:AddCoins(source, amount)
export['browns_blackmarket']:RemoveCoins(source, amount)

Commands (requires group.admin):

/addcoins [serverId], [amount] (adds coins to player)
/removecoins [serverId], [amount] (removes coins from player)
Code is accessible No (except for config.lua)
Subscription-based No
Lines (approximately) 1045
Requirements esx or qb-core, ox_lib, oxmysql
Support Yes
1 Like

Supports QB markedbills meta?

Is the money account type changeable in config? (already have a form of coin)

Future improvement suggestion:

use a “pagee” item to trigger a randomized BM spawn location with a QB/QS phone email to player with location info/blip

Yes, it supports marked bills metadata found in the info.worth field

As far as the money account it’s not changeable and for QBCore marked bills it gets the info.worth field (where the amount is stored) metadata for each marked bill item you have that adds it together as your current balance. When you purchase with marked bills it calculates how much you have minus how much you spent before removing all marked bill items then it adds a marked bill item with the worth of the remainder amount that you would have after making such transaction

1 Like