Skip to content

πŸͺ FX-STORE ​

Advanced and fully configurable store system for RedM with buy/sell mechanics, daily limits, stock system, job restrictions, and multi-framework support.


πŸ“¦ Installation ​

bash
ensure fx-store

β€’ Place script into your resources folder β€’ Add ensure fx-store to your server.cfg β€’ Restart your server β€’ Script uses NUI system and config-based stores


βš™οΈ Basic Settings ​

lua
Config.Language = "en"

β€’ Controls language system


lua
Config.Log = true

β€’ Enables webhook logging for buy/sell


lua
Config.OpenStoreKey = 0x2CD5343E

β€’ Default key to open store (ENTER)


lua
Config.NuiDevToolsSecurity = true

β€’ Prevents NUI exploit (price/item manipulation)


lua
Config.DropPlayerNuiCheater = false

β€’ If true β†’ kicks cheaters


🌐 Locale System ​

lua
Config.Locale = {
  ["en"] = {}
}

β€’ Multi-language support β€’ Dynamic text replacement system


πŸ›’ Store System ​

lua
Config.Stores = {
  {
    model = "cs_nils",
    coords = {
      vector4(...)
    }
  }
}

β€’ Defines store locations β€’ Supports multiple positions per store


lua
promptitle = "Fishing Store"
image = "/ui/img/balikci.png"

β€’ UI title & image


πŸ‘€ PED System ​

lua
ped = true
model = "cs_nils"
pedSpawnDistance = 30

β€’ Store NPC system β€’ Distance-based spawn


🎭 Ped Animation / Scenario ​

lua
pedScenario = "WORLD_HUMAN_SMOKE_NERVOUS_STRESSED"

β€’ Ped idle behavior


lua
anim = {
  animDict = '',
  animName = ''
}

β€’ Alternative to scenario


πŸ—ΊοΈ Blip System ​

lua
Blip = {
  showBlip = true,
  BlipSprite = -1575595762
}

β€’ Map blip system β€’ Fully customizable


⏰ Open / Close System ​

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

β€’ Store working hours β€’ If false β†’ always open


πŸ” Job Restriction ​

lua
requiredJobs = {
  ["doctor"] = "0"
}

β€’ Restricts store access β€’ false β†’ open for everyone


πŸ“ Interaction System ​

lua
distance = 2.0

β€’ Interaction range


lua
Config.Prompts = {
  ["store"] = {}
}

β€’ Prompt-based interaction system


πŸ’° Buy System ​

lua
BuyItems = {
  {
    itemName = "water",
    price = 0.25
  }
}

β€’ Players can purchase items β€’ Supports gold/cash


lua
moneytype = "gold"

β€’ Optional currency type


πŸ’Έ Sell System ​

lua
SellItems = {
  {
    itemName = "fish",
    price = 0.25
  }
}

β€’ Players can sell items


πŸ“Š Daily Limit System ​

lua
sellStock = 50

β€’ Limits how many items can be sold per day


lua
buyStock = 5

β€’ Limits how many items can be bought


πŸ—‚οΈ sellStock.json System ​

json
{
  "buy": {},
  "sell": []
}

β€’ Stores player daily limits β€’ Uses charid tracking β€’ Auto updates


⏱️ Stock Refresh System ​

lua
Config.SellStockRefreshTimes = {
  ["06:00"] = true,
  ["14:00"] = true
}

β€’ Daily reset system


lua
Config.SellStockUseUTC = false

β€’ true β†’ UTC time β€’ false β†’ server time


lua
Config.AdminRefreshSellStockCommand = "refreshsellstock"

β€’ Admin command to reset stock


πŸ”” Notification System ​

lua
Notify({
  text = "Message"
})

β€’ Supports VORP / RSG / REDEMRP β€’ Unified notify system


🧠 Security System ​

lua
Config.DisableShowingItemQuantities = false

β€’ Optimisation setting


β€’ NUI anti-cheat system active β€’ Server validates all prices β€’ Prevents client manipulation


🌐 Server Config ​

lua
SV_Config.Webhook = {
  url = ""
}

β€’ Discord logging system β€’ Logs buy & sell actions


🎯 Advanced Features ​

β€’ Multi-store support β€’ Buy & Sell system β€’ Daily stock limit system β€’ Job-based stores β€’ Time-based store opening β€’ Blip & UI system β€’ Anti-cheat protection β€’ Framework independent


⚠️ Important Notes ​

β€’ Item names must match inventory β€’ Prices must be numeric β€’ sellStock requires refresh system β€’ Jobs must match framework β€’ JSON file must exist


🚨 Common Issues ​

β€’ Store not opening β†’ wrong coords β€’ Cannot buy β†’ no money β€’ Cannot sell β†’ daily limit reached β€’ Items not showing β†’ config error β€’ Stock not resetting β†’ wrong time config


🏁 Summary ​

FX-STORE provides:

β€’ Advanced store system β€’ Buy / Sell mechanics β€’ Daily stock limits β€’ Job restrictions β€’ Full security system β€’ Multi-framework support


Β© Fixitfy Development

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