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
| Command | Who | What it does | Example | Name |
|---|---|---|---|---|
/admin | Staff | Opens the full panel. | /admin | Changeable: Config.DashboardCommand |
/adminmenu | Staff | Opens the quick menu. | /adminmenu | Changeable: Config.MiniMenuCommand |
/report <message> | Every player | Sends 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 bank | Changeable: Config.ReportCommand |
/ticket | Every player | Brings the player's own ticket chat back on the screen. | /ticket | Changeable: 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
| Situation | The player reads |
|---|---|
/admin or /adminmenu without a staff rank | "You do not have permission to do that." |
/report without a message | Usage: /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 ticket | You 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 binding | Default key | Does the same as | Setting |
|---|---|---|---|
| Open my support ticket | F10 | /ticket | Changeable: Config.TicketKey |
| Open admin dashboard | none | /admin | Changeable: Config.DashboardKey |
| Open admin quick menu | none | /adminmenu | Changeable: Config.MiniMenuKey |
- The key in
config.luais 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.
| Command | Help 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
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.ReportCommandis put in lower case, and only the letters a to z, digits and_are kept. An empty value meansreport.- These docs write
/reportin every example. On your server it is the name fromconfig.lua.