This script contains a wide range of settings to give you the best possible experience and we will explain how you can adapt it to your needs!
Config = {}Config.Framework ="" -- Supported frameworks: "esx", "qb"Config.Locale ="" -- Supported locales: "eng", "es", "fr", "de"Config.SafezoneAllowedRoles = { -- Roles that can manage safe zones"admin",}Config.Webhooks = { -- Webhook URLs for safe zone management eng ="", es ="", fr ="", de =""}
Framework
This script contains support for ESX and QB seamlessly, choose the framework your server is built on by adding “qb” or “esx” depending on your preferences.
Config.Framework ="qb"
Locale
Both the UI and the rest contains English, Spanish, French and German translations. You can choose the one you need by simply adding the following acronyms.
Config.Locale = "es" -- Spain
Config.Locale = "eng"-- English
Config.Locale = "fr" -- French
Config.Locale = "de" -- Germany
SafezoneAllowedRoles
With this configuration you will be able to decide who can execute the /safezones command on your server.
For that you will have to go to the server.cfg file of your server and add the group that you want to have permissions.
Example:
Config.SafezoneAllowedRoles = {
"admin",
}
Webhook
This script has discord logs to send when your administrators create or delete a secure zone, so you can make sure you have control.
These logs can be sent in the supported languages by adding the webhook in the language of your choice.