STG ScriptsDocumentation
Advanced Warning Zone

Installation

Install STG Advanced Warning Zone on your FiveM server in five steps, including the SQL import and the screenshot setup.

Advanced Warning Zone

STG Advanced Warning Zone

ESXQBCoreQBOX
View in store

Download the script

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

Move the resource

Extract the zip and place the stg-warnzone folder inside the [STG] category folder in your resources directory. Keep the folder name stg-warnzone: with any other name the menu does not work and the console keeps printing a rename warning.

resources/
└── [STG]/
    ├── stg_lib/
    └── stg-warnzone/

Install the dependencies

Advanced Warning Zone needs ox_lib, oxmysql and stg_lib. Skip this step if your server already runs them.

Import the SQL

Import [SETUP]/stg_warnzone.sql into your database. It creates the stg_warnzone table, where the custom situations players create in the menu are saved.

The script waits until the table exists. Until then the server console prints 'stg_warnzone' table is not installed! every two seconds.

Set up screenshots

The Take a screenshot button on the custom zone page opens the phone camera and uploads the picture as the zone image. It needs:

  • screenshot-basic running on your server.
  • A webhook URL in STG.Webhooks.screenshot in stg-warnzone/configs/sv_config.lua. The image link is read from a Discord style webhook response.

Without them, players get a notification and can still create the zone without an image.

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 screenshot-basic
ensure stg_lib
ensure [STG]

Then restart the whole server.

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