STG ScriptsDocumentation
Admin Menu

Installation

Install STG Admin Menu on your FiveM server, import the SQL and make yourself an admin in six steps.

Admin Menu

STG Admin Menu

ESXQBCoreQBOX
View in store

Download the script

Sign in to the Cfx.re portal with the account you used at checkout and download stg-admin from Granted Assets.

Move the resource

Extract the zip and place the stg-admin folder inside the [STG] category folder in your resources directory.

resources/
└── [STG]/
    └── stg-admin/

Install the dependencies

Admin Menu needs ox_lib and oxmysql. Skip this step if your server already runs them.

Import the SQL

Import [SETUP]/stg_admin.sql into your database. It creates two tables: stg_admin for your staff and stg_admin_banlist for bans.

The script waits until both tables exist. Until then the server console prints Table 'stg_admin' not found in database! every few seconds.

Make yourself an admin

Open stg-admin/config.lua and put one of your identifiers in Config.Admins with the god rank:

Config.Admins = {
    {
        id = "license:YOUR_LICENSE",
        rank = "god",
    },
}

The id needs its prefix, for example license:, license2: or discord:. Once you are in game as god, you can give ranks to other staff from the Rank Management tab. See Permissions for the full setup.

Start the script

Make sure [STG] starts after your framework, oxmysql and ox_lib in server.cfg:

ensure oxmysql
ensure ox_lib
# your framework: es_extended, qb-core or qbx_core
ensure [STG]

Then restart the whole server.

Staff avatars, Discord names, action logs and the Screenshot button are set up in stg-admin/settings.lua. See Discord and webhooks.

Nothing happens or the console shows an error? See Common Errors.

Next steps

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page