Skip to content

πŸ›’ FX-MARKETPLACE ​

Advanced marketplace system for RedM with player trading, auction system, stash-based storage, and full framework compatibility.


πŸ“¦ INSTALLATION ​

bash
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 ​

text
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 ​

sql
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 ​

json
stash.json

β€’ Stores items in marketplace storage β€’ Used when player inventory is full β€’ Ensures no item loss


βš™οΈ BASIC CONFIG ​

lua
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 ​

lua
Config.Locations = {
    {
        coords = {
            vector4(...)
        },
        ped = "cr_strawberry_males_01",
    }
}

β€’ Defines marketplace locations β€’ Supports NPC or object interaction β€’ Multiple locations supported


lua
openTimeSetting = {
    allowed = false,
    open = 8,
    close = 21
}

β€’ Restricts marketplace by time β€’ Example β†’ open only daytime


lua
Blip = {
    showBlip = true,
    BlipName = "Trading",
}

β€’ Shows map blip β€’ Helps players find marketplace


🎯 TARGET / PROMPT SYSTEM ​

lua
Config.UseTarget = true

β€’ Enables target system (ox_target etc.) β€’ If false β†’ uses prompt interaction β€’ Auto-detection supported


πŸ’° TAX SYSTEM ​

lua
Config.Tax = {
    ["3"] = 3,
    ["7"] = 5,
}

β€’ Defines selling tax rates β€’ Based on listing duration β€’ Higher duration β†’ higher tax


πŸ“¦ SELLING SYSTEM ​

lua
Config.RequiredJobSellerPanel = false
Config.SellerJobs = {
    ["seller"] = true
}

β€’ Restricts who can sell items β€’ false β†’ everyone can sell β€’ table β†’ job-based restriction


🚫 BLACKLIST SYSTEM ​

lua
Config.BlacklistedItems = {
    ['weapon_revolver_lemat'] = true,
}

β€’ Prevents selling specific items β€’ Used for balance and protection


πŸ“Š WAREHOUSE LIMIT SYSTEM ​

lua
Config.WareHouseLimits = {
    ["ironore"] = 100,
}

β€’ Limits storage per item β€’ Prevents overflow β€’ Helps economy balance


πŸ”„ AUCTION SYSTEM ​

lua
auction = true
offerdata = {}

β€’ Supports auction-based selling β€’ Players can place offers β€’ Highest offer wins


πŸ’³ PAYMENT SYSTEM ​

lua
fx_market_payments

β€’ Stores pending payments β€’ Handles withdrawals and refunds β€’ Prevents money loss


πŸŽ’ INVENTORY HANDLING ​

lua
"yourInventoryIsFull"

β€’ Items go to stash if inventory is full β€’ Prevents item loss β€’ Delivered on next login


πŸ”” NOTIFY SYSTEM ​

lua
Notify({
  text = "Item purchased",
  type = "success"
})

β€’ Framework-based notification system β€’ Supports VORP / RSG / REDEMRP


βš™οΈ SERVER CONFIG ​

lua
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

⚑ Premium RedM scripts crafted with performance & quality in mind.