BM System is a standalone FiveM black market resource built around a hidden dealer NPC, ox_target interaction, ox_lib menus, ox_inventory item handling, dynamic stock/pricing, player reputation, player-to-player trading, police detection, and optional dispatch alerts.
The dealer can rotate between hidden locations, appear only during configured hours, and show trust-based English dialogue based on each player's street cred.
- ox_lib
- ox_target
- ox_inventory
Optional integrations:
- qbx_core for real job data when available
- ps-dispatch, cd_dispatch, or core_dispatch for dispatch alerts
-
Place the resource folder in your server resources directory.
Example:
resources/[standalone]/bm-system
-
Make sure the dependencies start before this resource.
ensure ox_lib ensure ox_target ensure ox_inventory ensure bm-system
-
Add the custom items used by this resource to
ox_inventory.Required custom item names:
weed_bag cocaine meth oxy stolen_phone stolen_jewelry stolen_laptop stolen_watch lockpick armor radio black_money money
Weapon items such as
WEAPON_PISTOL,WEAPON_SMG,WEAPON_CARBINERIFLE,WEAPON_KNIFE, andWEAPON_BATmust also be supported by your inventory setup. -
Restart the server or run:
restart bm-system
-
Test the dealer from in-game with ox_target by walking near the active dealer location and selecting
Speak to Dealer.
All main settings are inside config.lua.
Controls dealer NPC behavior.
coords: fallback fixed dealer locationlocations: random hidden dealer locationsnpcModel: dealer ped modeltargetDistance: ox_target interaction distanceserverValidationDistance: server-side anti-cheat distance for buy/sell eventsnpc.alpha: ped visibilitynpc.scenario: idle scenario used by the dealerblip.enabled: keep thisfalseif the dealer should stay hidden
Controls when the dealer is available.
enabled: enable or disable schedule checksuseServerTime: use real server hour whentruecheckInterval: how often the server checks dealer staterotationInterval: how often the dealer moves while openopenHours: allowed dealer hoursclosedMessage: message shown when dealer is unavailabletimeModifiers: price and stock changes based on time windows
Controls visual props used during dealer and trading interactions.
enabled: enable or disable all prop visualsloadTimeout: max time to wait for a prop modelprogress: ox_lib progress bar settings during prop loadingshopCrate: wooden crate shown near the dealer when the shop openspurchase: category-specific ground props during purchase animationtradeBag: duffle bag attached to the player's right hand during P2P trades
Controls the English trust dialogue shown inside the main dealer menu.
enabled: enable or disable dealer dialogueshowInMainMenu: show the dialogue as the first menu linefallbackLine: default dealer linenoStockLine: line shown when there is no stocklevels: dialogue lines unlocked by street cred level
Defines black market items.
name: ox_inventory item namelabel: display labelcategory:weapons,drugs,stolen, orcontrabandbasePrice,minPrice,maxPrice: pricing rangebaseStock,minStock,maxStock: stock rangerequiredCred: required street credpriceVariance: random price fluctuation amount
Controls stock resets and price updates.
resetInterval: stock reset time in minutespriceUpdateInterval: price update time in minutesdemandMultiplier: price increase when stock is lowsupplyMultiplier: price decrease when stock is high
Controls player street cred.
maxCred: maximum reputationstartingCred: starting reputationpurchaseGain: cred gained by categorytradeGain: cred gained after successful tradespriceModifiers: discount levels based on cred
Reputation is saved as JSON in data/players.
Controls police detection during player trades.
alertRadius: detection radiuscheckInterval: detection check speedrequireOnDuty: require police to be on dutypoliceJobs: job names counted as policepoliceJobTypes: job types counted as policemessages: TextUI and notification messages
Controls optional dispatch alerts.
enabled: enable or disable dispatchprovider:auto,ps-dispatch,cd_dispatch,core_dispatch,custom, ornonecooldown: seconds between dispatch alertslocationFuzzRadius: sends a nearby area instead of exact dealer coordsjobsandjobTypes: police recipientsalerts.purchase: chance and message for purchasesalerts.trade: chance and message for trades
Controls fake job display near the dealer.
enabled: enable or disable disguiseradius: range around the dealergraceDistance: server-side tolerancefakeJob: fake job data shown through the export/statebag
Controls player-to-player trading.
maxDistance: max distance between tradersdistanceGrace: server-side tolerancecooldown: cooldown after completed/cancelled tradesrequestCooldown: cooldown between outgoing requestsconfirmTimeout: confirmation timeoutmaxItemsPerTrade: max item entries in one tradelogFile: trade log filename
- Hidden dealer NPC with ox_target interaction
- Random dealer locations
- Dealer schedule with night-time availability
- Time-based stock and price modifiers
- ox_lib context menus and notifications
- Dynamic pricing based on stock supply and demand
- Stock resets and price updates
- Street cred reputation system
- Reputation-based price discounts
- English dealer trust dialogue based on street cred
- Shop crate prop near the dealer when browsing stock
- Weapon briefcase and metal stash props during purchase animations
- Duffle bag hand prop during P2P trades with drop cleanup on completion
- Player-to-player trading with dual confirmation
- Trade cooldowns to prevent spam
- Server-side distance validation for purchases, sales, and trades
- Police job detection during trades
- Optional dispatch alerts for purchases and trades
- Fake job disguise state near the black market
- JSON persistence for player reputation and standalone job data
- Purchase, trade, stock, and exploit-attempt logging
Server/admin commands:
bm_dealer_status
bm_dealer_rotate
blackmarket_setcred [playerId] [0-100]
blackmarket_setjob [playerId] [jobName]In-game test/admin command:
bm_testdispatch purchase
bm_testdispatch tradePlayer commands:
blackmarket
mycred- Confirm
ox_lib,ox_target, andox_inventoryare started beforebm-system. - Confirm all custom items exist in ox_inventory.
- Use
bm_dealer_statusto check if the dealer is currently open. - Temporarily disable
Config.DealerSchedule.enabledif you want to test during daytime. - Set dispatch alert chance to
100and cooldown to0for dispatch testing. - Test buying with both
moneyandblack_money. - Test locked items with low street cred.
- Test player trading with two players near each other.
- Test remote exploit protection by triggering buy/trade events away from the dealer.
Created for FiveM roleplay servers using the Overextended ecosystem.
Resource author: BLDR
Core dependencies:
-
ox_lib by Overextended
-
ox_target by Overextended
-
ox_inventory by Overextended
Preview: https://r2.fivemanage.com/P7y9eTE8cCknS7gpxfED8/bm-system.mp4 Propr Preview: https://r2.fivemanage.com/P7y9eTE8cCknS7gpxfED8/bm-system_props.mp4