STG ScriptsDocumentation
Warning System

Installation

Install STG Warning System on your FiveM server in five steps, including the Discord log webhook.

Warning System

STG Warning System

ESXQBCoreQBOX
View in store

Download the script

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

Move the resource

Extract the zip and place the stg-warnsystem folder inside the [STG] category folder in your resources directory. Keep the folder name stg-warnsystem: with any other name the command is not registered and the console keeps printing a rename warning.

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

Install the dependencies

Warning System needs ox_lib and ESX, QBCore or QBOX. Skip this step if your server already runs them.

Add the Discord webhook

Paste a Discord webhook URL into Webhooks.URLs.warn in stg-warnsystem/config/webhooks.lua to log every warning. See Discord log for what each entry contains.

Start the script

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

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

Then restart the whole server.

The script looks up your framework once, when it starts. If it starts before es_extended or qb-core, /warn does not work until you restart it.

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