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

STG Advanced Warning Zone
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.screenshotinstg-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
Configuration
Access, menu key, situations and notifications
Dependencies
What needs to start before Advanced Warning Zone
Still having trouble?
Open a ticket on our Discord. Our team answers around 15 hours a day.
Advanced Warning Zone
A free warning zone script for FiveM. Police and other allowed jobs mark robberies, shootouts and raids on the map with a timed zone that warns every player who walks in.
Configuration
Every option in STG Advanced Warning Zone, from job access, menu command and key to zone time limits, situation templates, notifications, webhooks and menu colours.