mTrade by CodeM is a trade script for ESX and QBCore that lets two players exchange items and money through a trade window.
Features
- Trade requests with the
/trade [player ID]command (command name configurable) - The other player accepts with Y or rejects with N (keys configurable)
- Trade window UI with accept and decline buttons
- Option for servers that use money as an item (
Config.MoneyItems) - Editable UI texts and notification messages in
config/config.lua - Discord webhook setting in
config/server_config.lua - Config, client, server and framework files are open, so you can edit them
Requirements
- ESX, old QBCore or new QBCore (set
Config.Frameworktoesx,oldqbornewqb) - oxmysql, mysql-async or ghmattimysql (
Config.Mysql) - OneSync enabled
Installation
- Copy the
codem-tradefolder into your resources folder. - Set your framework, MySQL resource and command in
config/config.lua. - Optionally add your Discord webhook in
config/server_config.lua. - Add
ensure codem-tradeto your server.cfg.