Events
Server Events
rxblackmarkets:onItemPurchased
Triggered after an item has been purchased from a black market.
AddEventHandler('rxblackmarkets:onItemPurchased', function(data) end)
Source of the player that purchased the item.
Name of the black market where the purchase was made.
Item name/ID that was purchased.
Display label of the purchased item.
Quantity of items purchased.
Price per unit of the item.
Total cost for this item purchase.
Identifier of the player who made the purchase.
Name of the player who made the purchase.
Location where items should be picked up if pickup purchase is enabled, false otherwise.
Indicates whether this is a pickup purchase or direct inventory purchase.
rxblackmarkets:onMarketTracked
Triggered when a specific market location is tracked.
AddEventHandler('rxblackmarkets:onMarketTracked', function(data) end)
Source of the player who tracked the market.
Name of the tracked market.
Identifier of the player who tracked the market.
Name of the player who tracked the market.
Coordinates of the market location.
Item used to track the market.
Whether the tracking item was consumed.
Duration in seconds for how long the location will be revealed.
rxblackmarkets:onClosestMarketTracked
Triggered when the closest market is tracked using the global tracker.
AddEventHandler('rxblackmarkets:onClosestMarketTracked', function(data) end)
Source of the player who tracked the market.
Name of the closest market found.
Identifier of the player who tracked the market.
Name of the player who tracked the market.
Coordinates of the market location.
Item used to track the market.
Whether the tracking item was consumed.
Duration in seconds for how long the location will be revealed.
rxblackmarkets:onItemsPickedUp
Triggered when items are collected from a pickup location.
AddEventHandler('rxblackmarkets:onItemsPickedUp', function(data) end)
Source of the player who picked up the items.
Identifier of the player who picked up the items.
Name of the player who picked up the items.
Array of items that were picked up, each containing item, label, and amount.
Location where the items were picked up.
Whether all items were successfully picked up or some were left due to inventory space.
rxblackmarkets:onStockReset
Triggered when a market's stock is reset.
AddEventHandler('rxblackmarkets:onStockReset', function(data) end)
Name of the market whose stock was reset.
Type of reset that occurred ('time' for scheduled reset or 'restart' for server restart).
Unix timestamp when the reset occurred.
Array of strings showing items that were reset with before and after values.
Whether the stock is global (shared) or per-player.
Client Events
rxblackmarkets:onMarketOpened
Triggered when a player opens a black market UI.
RegisterNetEvent('rxblackmarkets:onMarketOpened', function(marketName, marketData) end)
Name of the market that was opened.
Complete market data including items, configuration, and stock information.
