Commands
F5 Shadow Market exposes two commands. Both can be renamed, and the market command can be disabled in favor of item-only access.
| Command | Default | Description | Default access |
|---|---|---|---|
/market | /market | Open the Shadow Market UI | Anyone carrying the tablet item |
/marketadmin | /marketadmin | Open the admin panel | ACE f5market.admin or group admin/god |
/market — Open the Market
How players open the market is controlled by F5Cfg.Command.mode:
F5Cfg.Command = {
mode = 'item_or_command',
name = 'market',
suggestion = true,
}
Modes
| Mode | Item required? | /market command | Behaviour |
|---|---|---|---|
'item_only' | Yes | Not registered | Only using the market_tablet item opens the market. The command does not exist |
'item_or_command' (default) | Yes | Registered | Both 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' | No | Registered | /market opens the market for anyone — no item needed. Using the item still works too |
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).
/marketin'command_always'→ the client opens the market directly (no item check); it still fetches its initial data from the server before the UI appears./marketin'item_or_command'→ the client asks the server (requestCommandOpen); the server checks the player carriesF5Cfg.Itemand only then opens the market.
Renaming /market
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.
F5Cfg.Admin = {
command = 'marketadmin',
acePermission = 'f5market.admin',
frameworkGroups = { 'admin', 'god' },
-- ...
}
| Option | Default | Description |
|---|---|---|
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.
add_ace group.admin f5market.admin allow
See Also
- Admin Panel — access control and every moderation action
- Items — registering the
market_tabletitem - Configuration → General —
F5Cfg.Commandfields - Features — what's inside the market once it opens