Documentation › Mushrooms › Configuration

Configuration

Every config file and what it controls.

All files are in config/ and stay editable after escrow.

File What it controls
config_main.lua Language, framework / inventory / target detection, picking, minigames, UI, admin access, security, reputation
config_mushrooms.lua Night glow, forests, mushroom spawns, weather & time rules
config_economy.lua Quality stars and price multipliers, drying quality, dynamic market
config_exchange.lua Base price of every mushroom and the seller locations
config_drying_rack.lua Drying rack placement, camera, slots and which mushrooms can be dried
config_quests.lua Personal daily and weekly quests
config_achievements.lua Achievements, titles and weekly / monthly ranking rewards
config_effects.lua Overdose rule and which effect types are available
config_boost.lua Sell boost multiplier, command and permissions
config_webhooks.lua Discord webhooks (server only)

Main settings

lua
Config.Debug    = false
Config.Language = 'en'              -- en | pl | ru | tr | de | es | fr

Config.AutoDetectFramework = true   -- false = use Config.Framework ('esx' | 'qb' | 'qbox')
Config.AutoDetectInventory = true   -- false = use Config.Inventory ('ox' | 'qs' | 'qb' | 'ps' | 'codem' | 'tgiann' | 'jpr' | 'ak47' | 'origen' | 'esx' | 'custom')
Config.AutoDetectTarget    = true   -- false = use Config.Target ('ox' | 'qb' | 'interact' | 'none')
Config.Notification = 'ox'          -- ox | qb | esx
Config.Progress     = 'ox'          -- ox | qb | progressbar

Picking

lua
Config.WalkToMushroom = { enabled = true, distance = 0.65, speed = 1.0 } -- walk up first; moving cancels
Config.KnifeWeapons   = { `WEAPON_KNIFE`, `WEAPON_MACHETE`, `WEAPON_SWITCHBLADE`, `WEAPON_DAGGER` }
Config.ProgressDuration = 5000   -- default collect time (ms), per mushroom: collectTime
Config.SpawnDistance    = 100    -- props are spawned within this distance
Config.CollectAmount    = { min = 1, max = 2 } -- x forest.countMultiplier
Config.RespawnTime      = 300    -- seconds until a picked mushroom grows back (0 = never)

Minigame tuning (Config.Minigames) is explained in Picking & Quality.

UI

lua
Config.UI = {
    info = { showCoords = false },  -- coordinates in the Information tab
    collectHud = true,              -- "+2 Boletus ★★☆" notice after picking
    map = {
        showHiddenForests = true,   -- unlocked hidden forests on the UI map
        hiddenForestBlips = true,   -- ...and as GTA map blips
    },
    leaderboard = { maxEntries = 10 },
    accentColor = '#E6E1D6',        -- accent colour of the whole UI
}

Storage

lua
Config.Storage = { flushSeconds = 60 } -- player data is cached and written to MySQL in batches

Tables are created automatically. Old data/*.json files from earlier versions are imported once on the first start.

Security

lua
Config.Security = {
    sellerDistance        = 10.0, -- max distance from a seller to sell or turn in quests
    forestMargin          = 25.0, -- extra metres around a forest when a pick is validated
    minCollectMs          = 2000, -- a pick can't finish faster than this
    collectSessionTimeout = 60,   -- a started pick expires after this many seconds
    logSuspicious         = true, -- console + 'security' webhook
}

All money and item rewards are calculated on the server.

The other files are covered on their feature pages: Forests & Spawning, Picking & Quality, Drying Rack, Selling & Market, Reputation & Perks, Quests, Achievements & Rankings, Mushroom Effects.