wasvendel_store
wasvendel scripts
wasvendel_store
wasvendel scripts
wasvendel_store.wasvendel_store folder into your server's resources directory.server.cfg after your framework core.Edit config.lua to configure shop locations, items, prices, opening hours, and job locks.
Shops are accessed through configured NPC or prompt locations, so no chat command is required.
| Event | Payload | Description |
|---|---|---|
wasvendel_store:showshopitems | shopData | Opens the shop purchase UI. |
wasvendel_store:notify | message, notifyType | Displays a shop notification. |
wasvendel_store:resetShopState | None | Resets the client shop state. |
| Event | Payload | Description |
|---|---|---|
wasvendel_store:items | closestName, closestShop | Requests shop items. |
wasvendel_store:processPurchase | paymentMode, totalAmount, items, shopId | Processes a shop purchase. |
Shops are normally opened when a player is near a configured shop location.
To open a shop programmatically, trigger the item request from the client when the player is near a configured shop ID: