Skip to the content
Docs

Commands

On this page5

Every command and key of 5code-adminpanel. A name marked changeable comes from config.lua, so it can be different on your server.

Commands

CommandWhoWhat it doesExampleName
/adminStaffOpens the full panel./adminChangeable: Config.DashboardCommand
/adminmenuStaffOpens the quick menu./adminmenuChangeable: Config.MiniMenuCommand
/report <message>Every playerSends a new ticket to staff. With an open ticket, it adds the message to that ticket./report A car is stuck in the door of the bankChangeable: Config.ReportCommand
/ticketEvery playerBrings the player's own ticket chat back on the screen./ticketChangeable: Config.TicketCommand

"Staff" means a super-admin, or a player whose rank has at least one permission. See Super-Admin & Ranks.

What a command answers

SituationThe player reads
/admin or /adminmenu without a staff rank"You do not have permission to do that."
/report without a messageUsage: /report <message>
/report, first message"Your ticket was sent to staff."
/report with a ticket already open"Your message was added to your open ticket."
/ticket without an open ticketYou have no open ticket. Use /report <message> to ask staff for help.

The texts that name /report follow Config.ReportCommand. With the command renamed to support, a player reads Usage: /support <message>.

/admin typed in the server console only prints a line that says to run it in the game.

Keys

Key bindingDefault keyDoes the same asSetting
Open my support ticketF10/ticketChangeable: Config.TicketKey
Open admin dashboardnone/adminChangeable: Config.DashboardKey
Open admin quick menunone/adminmenuChangeable: Config.MiniMenuKey
  • The key in config.lua is only the default. Every player can choose their own key in the game's Settings > Key Bindings > FiveM.
  • '' means no default key. The command still works.
  • The two staff key bindings only exist when a key is set in config.lua.
  • Pressing the ticket key without an open ticket does nothing.

Each key binding is a small helper command: adminpanel:key:ticket, adminpanel:key:dashboard and adminpanel:key:mini. Nobody has to type them.

Help text in the chat

While a player types a command, the chat shows a short help text.

CommandHelp text
/admin"Open the 5CODE admin dashboard"
/adminmenu"Open the 5CODE admin quick menu"
/report"Ask staff for help", and "Your message" for the text
/ticket"Open your support ticket"

These texts are in the locale file: see Localization.

Changing a name or a key

lua
Config.DashboardCommand = 'admin'        -- /admin
Config.MiniMenuCommand  = 'adminmenu'    -- /adminmenu
Config.DashboardKey     = ''             -- for example 'F6'
Config.MiniMenuKey      = ''             -- for example 'F9'
Config.ReportCommand    = 'report'       -- /report <message>
Config.TicketCommand    = 'ticket'       -- /ticket
Config.TicketKey        = 'F10'

Write the name without the /. Restart 5code-adminpanel after a change. All settings: General and Tickets & Sits.

  • Config.ReportCommand is put in lower case, and only the letters a to z, digits and _ are kept. An empty value means report.
  • These docs write /report in every example. On your server it is the name from config.lua.