π FX-MARKETPLACE β
Advanced marketplace system for RedM with player trading, auction system, stash-based storage, and full framework compatibility.
π¦ INSTALLATION β
ensure fx-marketplaceβ’ Place the script inside resources/fx-marketplace β’ Add ensure fx-marketplace to your server.cfg β’ Restart your server β’ Make sure oxmysql is started before this script
βοΈ DEPENDENCIES β
oxmysql (Required)β’ Used for database communication β’ Script will not work without it β’ You can use tools like HeidiSQL or phpMyAdmin to manage your database
ποΈ SQL INSTALLATION β
CREATE TABLE IF NOT EXISTS `fx_market_shopsdata` (...);
CREATE TABLE IF NOT EXISTS `fx_market_selling` (...);
CREATE TABLE IF NOT EXISTS `fx_market_payments` (...);β’ Stores shop data, selling items, and payments β’ Required for marketplace system β’ Handles auctions, offers, and transactions
π STASH SYSTEM β
stash.jsonβ’ Stores items in marketplace storage β’ Used when player inventory is full β’ Ensures no item loss
βοΈ BASIC CONFIG β
Config.Language = "en"
Config.OpenMarketCommand = "market"
Config.OpenCommand = falseβ’ Language β system language β’ OpenMarketCommand β command to open marketplace β’ OpenCommand β enable/disable command usage
π§ MARKET LOCATION SYSTEM β
Config.Locations = {
{
coords = {
vector4(...)
},
ped = "cr_strawberry_males_01",
}
}β’ Defines marketplace locations β’ Supports NPC or object interaction β’ Multiple locations supported
openTimeSetting = {
allowed = false,
open = 8,
close = 21
}β’ Restricts marketplace by time β’ Example β open only daytime
Blip = {
showBlip = true,
BlipName = "Trading",
}β’ Shows map blip β’ Helps players find marketplace
π― TARGET / PROMPT SYSTEM β
Config.UseTarget = trueβ’ Enables target system (ox_target etc.) β’ If false β uses prompt interaction β’ Auto-detection supported
π° TAX SYSTEM β
Config.Tax = {
["3"] = 3,
["7"] = 5,
}β’ Defines selling tax rates β’ Based on listing duration β’ Higher duration β higher tax
π¦ SELLING SYSTEM β
Config.RequiredJobSellerPanel = false
Config.SellerJobs = {
["seller"] = true
}β’ Restricts who can sell items β’ false β everyone can sell β’ table β job-based restriction
π« BLACKLIST SYSTEM β
Config.BlacklistedItems = {
['weapon_revolver_lemat'] = true,
}β’ Prevents selling specific items β’ Used for balance and protection
π WAREHOUSE LIMIT SYSTEM β
Config.WareHouseLimits = {
["ironore"] = 100,
}β’ Limits storage per item β’ Prevents overflow β’ Helps economy balance
π AUCTION SYSTEM β
auction = true
offerdata = {}β’ Supports auction-based selling β’ Players can place offers β’ Highest offer wins
π³ PAYMENT SYSTEM β
fx_market_paymentsβ’ Stores pending payments β’ Handles withdrawals and refunds β’ Prevents money loss
π INVENTORY HANDLING β
"yourInventoryIsFull"β’ Items go to stash if inventory is full β’ Prevents item loss β’ Delivered on next login
π NOTIFY SYSTEM β
Notify({
text = "Item purchased",
type = "success"
})β’ Framework-based notification system β’ Supports VORP / RSG / REDEMRP
βοΈ SERVER CONFIG β
SV_Config.Webhook = {
url = "",
}β’ Used for logging system β’ Sends marketplace logs to Discord β’ Optional but recommended
β οΈ IMPORTANT NOTES β
β’ oxmysql must be running β’ SQL tables must be installed β’ stash.json must not be deleted β’ Item names must match inventory β’ Blacklist should be configured
π¨ COMMON MISTAKES β
β’ Items not selling β blacklist issue β’ Market not opening β wrong location config β’ Items disappearing β stash.json deleted β’ Auction not working β wrong config β’ Inventory full β items go to stash
π SUMMARY β
FX-MARKETPLACE provides:
β’ Full marketplace system β’ Auction & offer system β’ Stash-based storage β’ Tax & economy control β’ Multi-location trading system β’ Full framework compatibility
Β© Fixitfy Development
