Installation
Installation
1. Drop the resource
Extract the suty-zonasegura folder into your server's resources directory (typically resources/[suty]/suty-zonasegura).
The folder must be named exactly suty-zonasegura. The script has an anti-rename guard that will refuse to start otherwise.
2. Ensure it in server.cfg
ensure ox_lib
ensure oxmysql
ensure ox_target
ensure suty-zonasegura
Start order matters — ox_lib, oxmysql, and ox_target must boot before suty-zonasegura.
3. Database
The resource creates its own table automatically on first start. No manual SQL required. You can verify the table exists with:
SHOW CREATE TABLE suty_safezones;
4. Grant admin permission
Only ACE-allowed admins can open the creator. Add this to your server.cfg if you haven't already:
add_principal identifier.license:YOUR_LICENSE_HERE group.admin
The script accepts both admin and group.admin ACE forms, so any standard QBX/QB/ESX admin setup works.
5. Verify
Restart the server, join in-game, and run /zonasegura as an admin. The map creator should open.
6. (Optional) Discord webhook
Open config.lua and set:
Config.Discord = {
Webhook = 'https://discord.com/api/webhooks/XXX/YYY',
BotName = 'HoodLife Zonas Seguras',
}
Logs are sent on zone create and delete.
