Accessible code

Config = {
    Locale = 'en',
    Testing = false, -- will add some values in inputs when creating turf
    commands = {
        creator = {
            name = 'createturf',
            help = 'Command that allows you to create turf',
            restricted = 'group.admin', -- grop that will have acces to command
        },
        delete = {
            name = 'deleteturf',
            help = 'Command that allows you to delete turf',
            restricted = 'group.admin',
        },
        adddays = {
            name = 'adddays',
            help = 'Command that allows you to add new days for capturing'
        },
        removeDays = {
            name = 'removedays',
            help = 'Command that allows you to remove capturable days',
            restricted = 'group.admin',
        },
        editHours = {
            name = 'editdays',
            help = 'Command that allows you to edit capturable days and hours',
            restricted = 'group.admin',
        },
        points = {
            name = 'tpoints',
            help = 'Opens scoreboard based on points gainted in turf capturing',
            restricted = false -- everyone can access
        },
        revivePoint = { -- command only works if turf type is Revive Point
            name = 'revivepoint',
            help = 'Allows you to revive yourself for $x amount if you are near your own turf',
        },
        editTypes = {
            name = 'edittype',
            help = 'Command that allows you to edit turf types',
            restricted = 'group.admin',
        },
        editProtection = {
            name = 'editprotection',
            help = 'Command that allows you to edit turf protection',
            restricted = 'group.admin',
        }
    },


    -- this will check for gang that you have on metadata on our gang builder, ESX ONLY, otherwise it will check your default job
    -- if set to true, it will check first gang then job, otherwise it will just check job
    GangCreatorSupport = true,

    DebugZone = true,

    -- qb core only
    FirstCheck = 'gang', -- or 'job', will check can gang capture turf, otherwise if 'job' it will do same check just for job

    -- jobs that cant capture
    BlackListedJobs = {
        ['unemployed'] = true,
        ['ambulance'] = true,
        ['none'] = true, -- qb core
    },


    Target = IsESX() and 'qtarget' or 'qb-target', -- auto detect, if doesnt work, you can chose between 'qtarget', 'qb-target' and 'ox_target'

    -- object that can be used as cover if you own turf, while creating turf you can chose price for object
    CoverOptions = {
        -- [label that shows in menu (every label must be diffent, cant have 2 same)] = { object hash, image }
        ['Car'] = {`prop_ztype_covered`, 'https://gta-objects.xyz/gallery/objects/prop_ztype_covered.jpg'},
        ['Cover Stone'] = {`prop_fib_3b_cover3`, 'https://gta-objects.xyz/gallery/objects/prop_fib_3b_cover3.jpg'},
        ['Table'] = {`xm_prop_x17_desk_cover_01a`, 'https://gta-objects.xyz/gallery/objects/xm_prop_x17_desk_cover_01a.jpg'},
        ['Long Seat'] = {`xm_prop_x17_seat_cover_01a`, 'https://gta-objects.xyz/gallery/objects/xm_prop_x17_seat_cover_01a.jpg'}
    },
}

Last updated