Skip to the content
Docs

Installation

On this page9

Eight steps from the download to a running panel.

1. Download

Download 5code-adminpanel from your Cfx portal (Granted Assets) and unzip it.

2. Copy the folder

Copy the folder into your server's resources folder, for example resources/[5code]/5code-adminpanel.

3. Stop your old admin menu

The panel uses these chat commands:

CommandWhat it doesName can be changed in config.lua
/adminOpens the panelYes: Config.DashboardCommand
/adminmenuOpens the quick menuYes: Config.MiniMenuCommand
/reportA player writes a ticketYes: Config.ReportCommand
/ticketA player opens their ticket chat againYes: Config.TicketCommand

Another admin menu that uses one of these names clashes with the panel. The admin menus that come with the frameworks do:

FrameworkIts own admin menuNames it also uses
QBCoreqb-adminmenu/admin, /report
Qboxqbx_adminmenu/admin, /report
ESXesx_adminmenu/adminmenu

Stop it: make sure it no longer starts with your server. If you want to keep it, give the panel's commands other names in config.lua.

4. Add the start line to server.cfg

Start the panel after oxmysql and after your framework.

cfg
ensure oxmysql
ensure qb-core              # or qbx_core / es_extended
# ... your other resources ...
ensure 5code-adminpanel

The easy way: put the line at the end of your resource list.

5. Make yourself super-admin

Add these two lines to server.cfg:

cfg
add_ace group.admin 5code-adminpanel.admin allow
add_principal identifier.license:YOUR_LICENSE_HERE group.admin
LineWhat it does
add_ace …Everybody in the group group.admin is a super-admin of the panel.
add_principal …Puts you into that group. Leave it out if your server.cfg already has this line for you.

A super-admin:

  • has every permission in the panel,
  • creates ranks and gives them to staff on the Ranks & Staff page,
  • stands above every rank: no rank can act on a super-admin.

You can also name super-admins by license in config.lua with Config.Bootstrap. It is empty by default. Both ways are explained on Super-admin and ranks.

6. Check config.lua

The defaults fit a QBCore server. Check these four lines:

KeyDefaultSet it to
Config.Framework'auto'Leave it. 'auto' finds QBCore, Qbox and ESX.
Config.NotifySystem'qb'The notifications your server uses: 'qb', 'ox_lib', 'codem-notification' or 'esx'.
Config.InventorySystem'qb-inventory'Your inventory: 'qb-inventory', 'ox_inventory' or 'codem-inventory'.
Config.Locale'en'Leave it, or see Localization.

Everything else has a working default. All keys: General settings.

Two things are not in config.lua. The FairShield API key and the Discord webhooks are in config_server.lua, a file that never leaves your server. Both are optional: FairShield, Webhooks.

7. Restart the server

Restart the whole server once. server.cfg is only read when the server starts, so the super-admin lines are not active before that.

The database tables are created by themselves (Database). The console shows:

Code
[5code-adminpanel] database ready.
[5code-adminpanel] Up to date (1.0.0).

The second line is the update check. It needs the internet. If it is missing, nothing is wrong.

If you see this insteadWhat it meansWhat to do
[5code-adminpanel] sql/install.sql is missing or empty.The folder is not complete.Copy the whole folder again.
[5code-adminpanel] 2 schema statement(s) failed. The panel may not work. (the number can differ)The database did not accept a part of the table setup.Read the oxmysql error above this line. Check that your database user may create tables.
[5code-adminpanel] database setup stopped: …A later setup step failed. The text after the colon is the database error.Send the full line to support.
No line of the panel at allThe resource did not start.Check the folder name, the ensure line and that oxmysql runs.

8. Test it

Join the server and type /admin. The First Test takes five minutes.

Optional extras

ExtraWhat you getHow
Staff ranksYour staff get exactly the tools you chooseSuper-admin and ranks
FairShield lookupCheck a player's Discord account against FairShield's list of cheat serversFairShield
Discord webhooksBans, warns, kicks, staff actions, tickets, joins and leaves in DiscordWebhooks
Police prisonSend players to your server's own prison scriptPrison scripts
Your own sit room and jail spotSits and the admin jail where you want themTickets and sits, Jail
Saved placesOne press teleports in the quick menuQuick menu and places
Keys for the panelOpen the panel and the quick menu with a keyGeneral settings

Something does not start? See Troubleshooting or ask on Discord (opens in a new tab).