Accessible code

Shared = {
    Locale = 'en',

    Notify = {
        duration = 5000, -- miliseconds
        position = 'top-right' -- 'top' or 'top-right' or 'top-left' or 'bottom' or 'bottom-right' or 'bottom-left' or 'center-right' or 'center-left'
    },
    
    Logs = {
        enabled = true,
        webhook = 'https://discord.com/api/webhooks/1204844463147454545/bg6-cR3DUtFZA8coWq3jiT0VWGiARzjqoKAT-zjdywrVgsJeRguIPBrhYUl84KkBsiyb',
        servername = 'Enpwr Scripts',
        color = 13448238,
        icon_url = 'https://dunb17ur4ymx4.cloudfront.net/webstore/logos/3aaeea0cc6e65e87b250d6a6f4bc4c75f9b6192f.png'
    },

    Commands = {
        safezonecreator = {
            name = 'safezonecreator',       -- command for accessing creator menu: create safe zone, delete safe zone, safe zones list
            restricted = 'group.admin',     -- group that will have acces to command 
        }
    },

    Keys = { -- https://docs.fivem.net/docs/game-references/controls/
        finish = 0xC7B5340A,
        cancel = 0x156F7119,
        finishPlacingPoints = 0x760A9C6F,
    },

    TextUI_Position = 'top-center', -- 'right-center' or 'left-center' or 'top-center'
    
    TextUI = {
        text = 'You are in the Safe Zone',
        icon = 'shield-alt',
        style = {
            borderRadius = 5,
            backgroundColor = '#cd342e',
            color = 'white'
        }
    },

    CreatorOptions = { -- enable or disable options in safe zone admin creator menu - *THIS ONLY DECIDES WHETHER THESE FEATURES WILL BE ENABLED WHEN CREATING THE SAFE ZONE, IF YES THE ADMIN WILL STILL HAVE TO CHECK/UNCHECK THE OPTIONS WHEN CREATING THE SAFE ZONE IF HE WANT TO TURN THEM ON/OFF FOR THE SAFE ZONE*
        maxVehSpeed = true,
        textUI = true,
        weapons = true,
        players_invisible = true,
        vehicles_invisible = true
    },

    MaxSpeedMultiplier = 3.6, -- 3.6 for kmh, 2.236936 for mph
    MaxPoints = 30, -- the maximum amount of points that can be made
    ClosestRadius = 10, -- radius in which the script will search for the nearest safe zone that needs to be deleted when the "closest" option is selected
}

Last updated