icons image by: flaticon.com
Explanation
This is a script for selling items between players. One player can advertise an item on the market and another can buy. The player can choose to sell for a recommended amount or for the price he wants.
Features
- You can define which items are allowed to be sold.
- The player can sell the item for whatever price he wants.
- The player can decide whether to sell as anonymous or on his own behalf.
- After advertising, you can see your products advertised and remove.
- Easy to understand graphical interface.
- Public webhook: it is possible to set up a discord webhook, in which, when an item is announced, it is automatically posted to a discord channel for general viewing.
- Webhook admin: it is possible to configure a webhook for logs, in which, when an item is removed or purchased, it is shown on a discord channel where only admins are allowed to view.
- You will receive 4 versions of this script: Standalone, ESX Basic, QBCore, and VRP Basic.
- For each version mentioned above, there is a version that does not use a weight system.
Command to open: /market
Advertising a product:
Buying a product:
Removing a product:
Configuration:
Standalone : in this version, you will have to configure the functions responsible for taking the inventory, giving or removing money from the player and some others. It is very simple and easy, you can do this in the file Server/Configurate.lua
ESX : In this version, you probably do not need to modify any functions.
QBCore : In this version, you probably do not need to modify any functions.
VRP : in this version, you only need to configure some function, if you use modified VRP base. If necessary, you can change it in Server/Configurate.lua.
In the Config.lua file, you can do all the translation of the graphical interface, you can define which items can be sold on the market and you must configure the Webhook according to your Discord.
Update:
Security hole where it was possible to duplicate items was fixed.Anyone who purchased the script can download it from the download link received at the time of purchase.
Thanks to @dewen for reporting this error.
Update 2.0:
Dark mode added to script. Anyone who wants to use a screen with darker colors can use it from this update onwards.
Don’t forget to save your translations and items so they won’t be lost in the update.
Everyone who purchased the script can download the update from the same download link.
To use dark mode, open the Config.lua file and change the value of the variable isDark to true
Update 2.1
- Previously, in the ESX version, when players would advertise an item, they would preview in the select all items tab. Now he will only see those he has in his inventory.
Don’t forget to save your translations and items so they won’t be lost in the update.
Everyone who purchased the script can download the update from the same download link.
Update 3.0:
- A new version has been added: QBCore
3.1
- Fixed bug in QBCore version where the player didn’t earn money when selling the item.
3.2
- The value of the item that appears on the ad screen has been adjusted to show only the first 6 numbers and if the value is greater than 6 digits, “…” will appear after the numbers, signaling that the price is higher. This comes to fix the leaking of numbers when the value is too high.
3.3
- QBCore version with oxmysql added.
3.4
- QBCore 2 updated.
Dependencies :
This script automatically creates the table in the database.
- mysql-async
For those using QBCore, mysql-async is not necessary as it will use ghmatti
This script has no IP protection or encryption
See our other scripts: (Now with QBCore versions added)
Manage your own Store
SuperMarket and Stores
Album Photos
Reason for Vehicle Seizure
Documents System
Crew System
Police Report
Clipboard for Mechanics
Advanced Illegal Tablet
Admin Spawnner Props Objects
Simple Menu Creator with Icons
A simple Medical Card for Hospital