F5 StudioF5 Studio
Skip to main content

Commands

F5 Shadow Market exposes two commands. Both can be renamed, and the market command can be disabled in favor of item-only access.

CommandDefaultDescriptionDefault access
/market/marketOpen the Shadow Market UIAnyone carrying the tablet item
/marketadmin/marketadminOpen the admin panelACE f5market.admin or group admin/god

/market — Open the Market

How players open the market is controlled by F5Cfg.Command.mode:

config.lua
F5Cfg.Command = {
mode = 'item_or_command',
name = 'market',
suggestion = true,
}

Modes

ModeItem required?/market commandBehaviour
'item_only'YesNot registeredOnly using the market_tablet item opens the market. The command does not exist
'item_or_command' (default)YesRegisteredBoth the item and the command work, but the command still requires the player to carry the item. The server validates item possession before opening
'command_always'NoRegistered/market opens the market for anyone — no item needed. Using the item still works too
Fail-safe

If mode is set to an unrecognized value, the script logs an INIT warning and falls back to 'item_or_command'. If name is empty/invalid it falls back to market.

How each mode resolves

  • Item use → the bridge's usable-item handler fires and opens the market (in any mode that registers the item).
  • /market in 'command_always' → the client opens the market directly (no item check); it still fetches its initial data from the server before the UI appears.
  • /market in 'item_or_command' → the client asks the server (requestCommandOpen); the server checks the player carries F5Cfg.Item and only then opens the market.

Renaming /market

config.lua
F5Cfg.Command.name = 'darkmarket'

The command becomes /darkmarket, and the chat suggestion picks up the new name automatically.

Chat suggestion

When F5Cfg.Command.suggestion = true (default), the command is published to the chat suggestion list with localized help text (locale key command_suggestion). Set it to false to hide the hint.

/marketadmin — Admin Panel

Opens the moderation panel — listings, orders, players, chat, reviews, bans, dashboard charts and the audit log.

config.lua
F5Cfg.Admin = {
command = 'marketadmin',
acePermission = 'f5market.admin',
frameworkGroups = { 'admin', 'god' },
-- ...
}
OptionDefaultDescription
command'marketadmin'The command name that opens the panel
acePermission'f5market.admin'ACE permission granting access ('' disables this path)
frameworkGroups{ 'admin', 'god' }Framework groups granting access ({} disables this path)

Access is granted if the player passes the ACE permission OR belongs to one of the listed framework groups. The full access model, per-framework group resolution and every panel action are documented on the Admin Panel page.

server.cfg — granting the ACE
add_ace group.admin f5market.admin allow

See Also