Documentation › Mushrooms › Commands & Permissions

Commands & Permissions

Chat commands, who can use them and how to rename them.

Command Who What it does
/mushadmin Admin Opens the admin panel
/mushboost on [multiplier] Boost groups Turns the sell boost on, e.g. /mushboost on 2.0
/mushboost off Boost groups Turns the sell boost off
/smile_resetquests Admin Gives every online player new daily and weekly quests

Rename the admin command with Config.AdminCommand (config_main.lua) and the boost command with Config.Boost.command (config_boost.lua).

Server console

The admin command also works from the console:

text
mushadmin stats <id>                       -- level, collected, sold, earned
mushadmin setlevel <id> <level>            -- set reputation level
mushadmin give <id> <item> <count> [stars] -- give mushrooms of a quality (1-3)
mushadmin market                           -- items below 100 % price
mushadmin market reset [item]              -- reset one or all prices
mushadmin resetplayer <id>                 -- wipe a player's mushroom data
mushadmin rack <id>                        -- remove a player's drying rack
mushadmin quests                           -- regenerate quests for everyone

Admin access

lua
Config.AdminAccess = {
    groups      = { 'admin', 'superadmin', 'god' },  -- ESX group / QBCore / QBox permission
    aces        = { 'smile_mushrooms.admin' },        -- add_ace group.admin smile_mushrooms.admin allow
    identifiers = { },                                -- 'license:...', 'discord:...', 'steam:...', 'fivem:...'
}

Matching any list is enough. The same check is used for the admin panel, the quest reset and the effects editor.

Boost permission

lua
Config.Boost = {
    defaultMultiplier = 2.0,
    command = 'mushboost',
    allowedGroups = { 'group.admin', 'group.superadmin' }, -- ACE; {} = console only
}