This script lets players sell items to each other. One player advertises an item on the market, another buys it. The seller can choose the recommended price or set their own. You open the market with the /market command.
Features
- Sell an item for any price you want, or use the recommended price set in the config
- Choose whether to sell anonymously or under your own name
- See your own ads in a “My Ads” tab and remove them
- Search field and a simple graphical interface
- Public webhook: new ads are posted automatically to a Discord channel for everyone to see
- Admin webhook: purchases and removed ads are logged to a Discord channel only admins can view
- Three versions included: Standalone, ESX and vRP
Advertising a product:

Buying a product:

Removing a product:

Configuration
- Standalone: you connect the functions for reading the inventory, giving and removing money and a few others yourself in
Server/Configurate.lua. - ESX: usually no function changes are needed.
- vRP: you only need to adjust some functions in
Server/Configurate.luaif you use a custom inventory or a modified vRP base.
In Config.lua you define which items may be sold (item name, label, image and recommended price), translate the interface, set the UI position and size, and enter your public and admin Discord webhooks. Item images go into the html/img folder.
The Vue.js source of the interface is included. If you want to change the UI, the Readme explains how to rebuild it with Node.js (npm install, npm run build).
Requirements
- mysql-async
- ESX or vRP for the matching version (the Standalone version needs your own functions)
The script creates its database table automatically.
Installation
- Pick the folder for your framework (
[ESX],[Standalone]or[VRP]) and copy themarketresource into your resources directory. - Add
ensure marketto your server.cfg after mysql-async. - Fill in your items and webhooks in
Config.lua.
Update note
According to the author’s changelog, an update fixed a security hole that made it possible to duplicate items.