Configuration

Configuration

Learn how to configure Legends Safe Zones for your server's specific needs.

Basic Configuration

The main configuration is done in /config/config.lua. Here is a breakdown of each setting:

Configuring your framework

Config.Framework = 'auto'

Supported frameworks are qb, esx and qbx -> use auto for automatic detection of framework

Creating a safe zone

You can set the name of the zone, points and height.

Debug mode allows you to see a preview of the zone live in your server.

You can choose which weapons to be disallowed or just disable all weapons by setting allWeapons to true.

Whitelisting certain jobs to bypass the save zone restrictions is done within the last setting. You can list multiple jobs separated by a coma.

{
        name = "PDM",
        debug = true,
        points = {
            vector2(-28.58, -1126.29),
            vector2(-74.77, -1126.39),
            vector2(-60.66, -1067.34),
            vector2(-12.57, -1079.86),
        },
        minZ = 16.28,
        maxZ = 48.08,
        allWeapons = true,
        weapons = {
        },
        bypassJobs = { "police" }
    },

Need Help?

Join our Discord for support: discord.gg/lgnds (opens in a new tab)