πͺ 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 β
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 β
Config.Language = "en"β’ Controls language system
Config.Log = trueβ’ Enables webhook logging for buy/sell
Config.OpenStoreKey = 0x2CD5343Eβ’ Default key to open store (ENTER)
Config.NuiDevToolsSecurity = trueβ’ Prevents NUI exploit (price/item manipulation)
Config.DropPlayerNuiCheater = falseβ’ If true β kicks cheaters
π Locale System β
Config.Locale = {
["en"] = {}
}β’ Multi-language support β’ Dynamic text replacement system
π Store System β
Config.Stores = {
{
model = "cs_nils",
coords = {
vector4(...)
}
}
}β’ Defines store locations β’ Supports multiple positions per store
promptitle = "Fishing Store"
image = "/ui/img/balikci.png"β’ UI title & image
π€ PED System β
ped = true
model = "cs_nils"
pedSpawnDistance = 30β’ Store NPC system β’ Distance-based spawn
π Ped Animation / Scenario β
pedScenario = "WORLD_HUMAN_SMOKE_NERVOUS_STRESSED"β’ Ped idle behavior
anim = {
animDict = '',
animName = ''
}β’ Alternative to scenario
πΊοΈ Blip System β
Blip = {
showBlip = true,
BlipSprite = -1575595762
}β’ Map blip system β’ Fully customizable
β° Open / Close System β
openTimeSetting = {
allowed = true,
open = 8,
close = 21
}β’ Store working hours β’ If false β always open
π Job Restriction β
requiredJobs = {
["doctor"] = "0"
}β’ Restricts store access β’ false β open for everyone
π Interaction System β
distance = 2.0β’ Interaction range
Config.Prompts = {
["store"] = {}
}β’ Prompt-based interaction system
π° Buy System β
BuyItems = {
{
itemName = "water",
price = 0.25
}
}β’ Players can purchase items β’ Supports gold/cash
moneytype = "gold"β’ Optional currency type
πΈ Sell System β
SellItems = {
{
itemName = "fish",
price = 0.25
}
}β’ Players can sell items
π Daily Limit System β
sellStock = 50β’ Limits how many items can be sold per day
buyStock = 5β’ Limits how many items can be bought
ποΈ sellStock.json System β
{
"buy": {},
"sell": []
}β’ Stores player daily limits β’ Uses charid tracking β’ Auto updates
β±οΈ Stock Refresh System β
Config.SellStockRefreshTimes = {
["06:00"] = true,
["14:00"] = true
}β’ Daily reset system
Config.SellStockUseUTC = falseβ’ true β UTC time β’ false β server time
Config.AdminRefreshSellStockCommand = "refreshsellstock"β’ Admin command to reset stock
π Notification System β
Notify({
text = "Message"
})β’ Supports VORP / RSG / REDEMRP β’ Unified notify system
π§ Security System β
Config.DisableShowingItemQuantities = falseβ’ Optimisation setting
β’ NUI anti-cheat system active β’ Server validates all prices β’ Prevents client manipulation
π Server Config β
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
