๐ฅTrading System
A trading system for FiveM servers that allows players to securely trade items with each other.
Features
Secure trading interface
Support for multiple inventory systems
Real-time trade updates
Item metadata support
Progress bar during trade completion
Trade result screen
Distance check between players
Framework Support
QBCore
ESX
Inventory Support
ox_inventory
core_inventory
qs-inventory
codem-inventory
Installation
Download the resource
Place it in your resources folder
Add to your server.cfg:
ensure hate-tradeing
Configure config.lua to match your framework and inventory
Configuration
Config = {
Framework = 'QB', -- 'QB' or 'ESX'
UseNickname = true, -- Use player nicknames instead of character names
InventoryImagePath = 'nui://core_inventory/html/img/' -- Path to inventory images
}
Commands
/trade [id]
- Send trade request to player/tradeaccept [id]
- Accept trade request from player
Exports
Client Exports
-- Send a trade request to target player
exports['hate-tradeing']:SendTradeRequest(targetId)
-- Accept a trade request from target player
exports['hate-tradeing']:AcceptTradeRequest(targetId)
Server Exports
-- Send a trade request to target player
exports['hate-tradeing']:SendTradeRequest(source, targetId)
-- Accept a trade request from target player
exports['hate-tradeing']:AcceptTradeRequest(source, targetId)
Support
For support, please join our Discord server.
Security Notice
This script is protected by FiveM's escrow system. The client and server-side code is encrypted and cannot be modified.
Last updated