Agency-Blackmarket Exports & API
Complete black market system with dual framework support (QBCore/ESX) featuring a 5-level reputation system, dynamic.

01Events
| Name | Side | Description |
|---|---|---|
blackmarket:client:openMenu | Client | Opens the black market dealer main menu for the player. |
blackmarket:client:closeMenu | Client | Closes any open black market menus for the player. |
blackmarket:client:openLaunderingMenu | Client | Opens the money laundering submenu. |
blackmarket:client:showNotification | Client | Displays a styled black market notification (title, message, type, duration). |
blackmarket:server:checkAccess | Server | Checks whether the calling player can access the black market and replies with reputation data. |
blackmarket:server:completeBuy | Server | Finalises a purchase after the client minigame succeeds. |
blackmarket:server:sellItem | Server | Triggers the sell flow with optional minigame and cooldown handling. |
blackmarket:server:completeSell | Server | Finalises a sale after the client minigame succeeds. |
blackmarket:server:launderMoney | Server | Launders dirty_money/markedbills into clean cash with fees and possible extortion. |
+Good to know
This page lists all events available in Agency-Blackmarket that other resources can trigger to integrate with its features. Both client-side and server-side events are provided, allowing developers to interact with menus, handle purchases and sales, or trigger laundering flows. Use these events to extend black market interactions or automate processes from your own scripts as needed.
- Client-side interaction events
- Client events such as blackmarket:client:openMenu, blackmarket:client:closeMenu, and blackmarket:client:openLaunderingMenu let you programmatically open or close the main or laundering menus for a player. You can also display styled notifications using blackmarket:client:showNotification for custom feedback.
- Server-side transaction handling
- Server events include blackmarket:server:checkAccess for reputation checks, blackmarket:server:completeBuy and blackmarket:server:completeSell for finalizing transactions after minigames, and blackmarket:server:sellItem to start a sale flow. Use these to control access and handle purchases or sales securely.
- Money laundering integration
- The blackmarket:server:launderMoney event allows other scripts to initiate the laundering process for dirty_money or markedbills. This event handles conversion, applies configured fees, and can trigger extortion logic if set up. Integrate this to automate or customize laundering scenarios.
?Frequently asked questions
Do I need to add any dependencies before using these events?
Agency-Blackmarket requires either QBCore or ESX, which is auto-detected. Optional dependencies like Agency-Notify, Agency-Progressbar, and qb-target can enhance the experience but are not mandatory for using the events listed on this page.
Are there any exports available, or only events?
Currently, Agency-Blackmarket provides integration through client and server events only. There are no exports defined in this version, so other resources should use the listed events to interact with the black market system.
What should I check if an event does not trigger as expected?
Ensure that Agency-Blackmarket is properly started by using ensure Agency-Blackmarket in your server.cfg and that your scripts trigger the events with correct parameters. Also, confirm that your server is running a supported framework and that all required dependencies are installed.
Can I restrict access to certain events or features?
Access control is managed by the script’s internal logic, such as reputation checks via blackmarket:server:checkAccess. To further restrict features, implement additional checks in your own scripts before triggering these events.