wasvendel_blackmarket
wasvendel scripts
wasvendel_blackmarket
wasvendel scripts
wasvendel_blackmarket.wasvendel_blackmarket folder into your server's resources directory.server.cfg after your framework core.Edit config.lua to configure shop locations, items, police alert settings, bargaining, and opening hours.
Blackmarket shops can be linked to wasvendel_sellshop locations.
Make sure wasvendel_sellshop is started if you are using linked shops.
| Event | Payload | Description |
|---|---|---|
wasvendel_blackmarket:openshop | inventoryData, shopname, enableBargaining, alertpolice, showplayer, Framework, shopId | Opens the buy shop UI. |
wasvendel_blackmarket:checkopeninghour | closestData | Returns the opening hour check result. |
wasvendel_blackmarket:openLinkedShop | linkedShop | Opens a linked sell shop. |
wasvendel_blackmarket:alertpolice | coords | Sends a police alert blip. |
wasvendel_blackmarket:starttracking | None | Starts player tracking blip. |
wasvendel_blackmarket:updateblip | targetPlayerId, playerCoords | Updates the tracking blip. |
wasvendel_blackmarket:removeblip | targetPlayerId | Removes the tracking blip. |
| Event | Payload | Description |
|---|---|---|
wasvendel_blackmarket:checkplayeritems | closestShop | Validates player items and opens the shop. |
wasvendel_blackmarket:finalizeDeal | data | Completes the purchase. |
wasvendel_blackmarket:getShopData | shopId | Gets shop data for a linked shop. |
wasvendel_blackmarket:closedshop | None | Marks the shop as closed by the player. |
| Event | Resource | Description |
|---|---|---|
wasvendel_sellshop:returnShopData | sellshop → blackmarket | Returns linked shop data. |
When alertpolice is enabled for a shop, the server triggers wasvendel_blackmarket:alertpolice on law enforcement clients.
You can pair this with wasvendel_dispatch for full dispatch integration in your own handler.