shared/config.lua

-- | # For the most quality and unique FiveM resources: https://thug-studios.com
-- | # If you need help, join our Discord server: https://discord.gg/thugstudios

Config = {}

-- | # Main Settings  ------------------------------------------------------------------------------------

Config.Settings = {
    ['Menu_Command'] = 'safezone', -- | # In this section, you can set the command that staffs will access the menu.
    ['Database_Location'] = 'data/safezones.json', -- | # Please do not change this part!
    ['Allowed_Identifiers'] = { -- | # You can add the identifiers you want to give menu access here.
        -- 'steam:110000123456789',
        -- 'license:abc123def456',
    }
}

-- | # Feature Settings ------------------------------------------------------------------------------------

Config.Feature_Settings = {
    ['Slow_Vehicle_Speed'] = 60.0, -- | # If Slow Vehicles is enabled in the safezone you are in, vehicles can travel at a maximum of this speed.
    ['Speed_Boost_Multiplier'] = 1.49, -- | # If Speed Boost is enabled in the safezone you are in, your character's running speed will increase to this multiplier value.
    ['Transparent_Opacity'] = 155, -- | # If Transparent Players is enabled in the safezone you are in, players and vehicles will appear at this opacity level.
}

-- | # Job Bypass Settings ------------------------------------------------------------------------------------
-- | If you want specific jobs to bypass certain safezone features, configure them here.

Config.Job_Bypass = {
    ['Enabled'] = false, -- | # Set to true to activate the job bypass system. When enabled, specified jobs can bypass selected safezone features.
    ['Framework'] = 'esx',-- | # In this section you have the options 'qb', 'old-qb', 'esx', 'old-esx', 'qbox'
    ['Jobs'] = {
        ['police'] = {
            -- 'Disable_Weapon_Drawing',
            -- 'Transparent_Players',
            -- 'Disable_Fighting',
            -- 'Speed_Boost',
            -- 'God_Mode',
            -- 'Disable_Vehicle_Collisions',
            -- 'Infinity_Stamina',
            -- 'Disable_Player_Collisions',
            -- 'Disable_Falling',
            -- 'Slow_Vehicles'
        },
        ['sheriff'] = {
            -- 'Disable_Weapon_Drawing',
            -- 'Transparent_Players',
            -- 'Disable_Fighting',
            -- 'Speed_Boost',
            -- 'God_Mode',
            -- 'Disable_Vehicle_Collisions',
            -- 'Infinity_Stamina',
            -- 'Disable_Player_Collisions',
            -- 'Disable_Falling',
            -- 'Slow_Vehicles'
        },
    }
}

-- | # Extra ------------------------------------------------------------------------------------
-- | We have added this export to integrate your scripts with the safezone system: exports['thug-safezone-creator']:In_Safezone()

Last updated