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

STG Warning System
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
Configuration
Command, permissions, warning screen and Discord log
Dependencies
What needs to start before Warning System
Still having trouble?
Open a ticket on our Discord. Our team answers around 15 hours a day.
Warning System
Staff warn a player with one command and a full screen warning with a title, a message and a countdown appears on their screen, logged to Discord.
Configuration
Every option in STG Warning System config/config.lua and config/webhooks.lua, from the command and staff permissions to the warning screen, hooks, colours and the Discord log.