Accessible code

Config = {
    FrameworkName = IsESX() and 'es_extended' or 'qb-core',
    Locale = 'en',

    enableWardrobe = true,              -- enables function for opening wardrobe, in client/editable.lua in OpenWardrobe function put your event

    disableIntegratedVehicles = false,  -- option for disabling integrated vehicles

    -- players only can be searched if you cuff them first
    SearchOnlyWhenCuffed = true,

    -- disable moving while cuffed?
    freezeWhileCuffed = false,
 
    -- ESX ONLY

    --setJobField = 'job',  
    --setJobField = 'metadata',  

    setJobField = 'metadata',

    -- ox, qs, qb, core
    Inventory = 'ox',

    InventoryPrefix = 'inventory',      -- this is only for qs inv, this prefix must be same as in inventory config 
    
    mafiaMenu = {                       -- f6 action menu position, available positions: 'top-left' or 'top-right' or 'bottom-left' or 'bottom-right'
        defaultKey = 'F6',              -- key for opening menu
        position = 'top-right',
        enabled = true,                 -- if you dont want it put false
    },

    commands = {
        creator = {
            name = 'createmafia',       -- command for creating mafia
            restricted = 'group.admin', -- grop that will have acces to command 
        },

        deleteMafia = {
            name = 'dellmafia',         -- command for deleting mafia, /dellmafia mafia
            restricted = 'group.admin'  -- group that will have acces to command 
        },

        teleportToBase = {
            name = 'tpbase',            -- command for teleporting to mafia, /tpbase mafia
            restricted = 'group.admin'  -- group that will have acces to command 
        },

        findBase = {
            name = 'findbase',          -- command for players to find their base via gps
            enabled = true              -- by puting here false you disable this command
        },

        resetMarker = {
            name = 'resetmarker',       -- command for reseting all markers to 1 again
            restricted = 'group.admin'  -- group that will have acces to command 
        },

        updateCars = {
            name = 'updatevehicles',    -- command for updating integrated vehicles in mafia
            restricted = 'group.admin'  -- group that will have acces to command 
        },

        newMarker = {
            name = 'newmarker',         -- command for adding more markers
            restricted = 'group.admin', -- group that will have acces to command 
        },


        -- esx only and if you use setJobField as metadata
        setGang = {
            name = 'setgang',           -- command for setting gang, works only if setJobField is 'metadata'
            restricted = 'group.admin'  -- group that will have acces to command 
        },
        
        -- esx only and if you use setJobField as metadata
        removeGang = {
            name = 'removegang',
            restricted = 'group.admin',
        },

        -- esx only and if you use setJobField as metadata
        mygang = {
            name = 'mygang',
            restricted = 'group.admin'
        },

        uisetgang = {
            name = 'uisetgang',
            restricted = 'group.admin'
        }
    },

    -- if set to true everybody at server who has password can acces stash
    stashAccessEveryone = false, -- if set to false only people who has job can access that stash, again if they have password


    stash = {
        [1] = {10, 10},     -- [level] = {slots, kg}
        [2] = {20, 20},     -- [level] = {slots, kg}
        [3] = {30, 30},     -- [level] = {slots, kg}
        [4] = {40, 40},     -- [level] = {slots, kg}
        [5] = {50, 50},     -- [level] = {slots, kg}
        [6] = {60, 60},     -- [level] = {slots, kg}
        [7] = {70, 70},     -- [level] = {slots, kg}
        [8] = {80, 80},     -- [level] = {slots, kg}
        [9] = {90, 90},     -- [level] = {slots, kg}
        [10] = {100, 100},  -- [level] = {slots, kg}
    },

    Levels = {               -- prices for levels
        [1] = 500,           -- price for level 2 
        [2] = 1000,          -- price for level 3
        [3] = 1500,          -- price for level 4
        [4] = 2000,          -- price for level 4 
        [5] = 2500,          -- price for level 4 
        [6] = 3000,          -- price for level 4 
        [7] = 3500,          -- price for level 4
        [8] = 4000,          -- price for level 4 
        [9] = 4500,          -- price for level 4 
        [10] = 5000,         -- price for level 4 
    },

    firePlayerData = {      -- job that player will get when you fire him from Mafia, qb-core/shared/gangs
        job = 'none',       -- qb = none, esx = unemployed most of the times
        grade = 0
    },

    TuneOptions = {
        modEngine = 3,
        modBrakes = 2,
        modTransmission = 2,
        modSuspension = 3,
        modArmor = true,
        windowTint = 1,
    
        -- other possibilities you can find here: https://overextended.dev/ox_lib/Modules/VehicleProperties/Client#vehicle-properties
        -- if you dont know how to setup this properly, open ticket at our discord
    },

    dealership = {                                                  -- only mafia can see blip and open dealership
        enable = true,                                              -- if you dont want this option put false here, ALSO DISABLES OWNED VEHICLES GARAGE
        blip = {
            type = 227,                                             -- https://docs.fivem.net/docs/game-references/blips/
            scale = 0.6,
            colour = 3,                                             -- https://docs.fivem.net/docs/game-references/blips/#blip-colors
            text = 'Illegal Dealership'
        },
        coords = vec3(499.257, -1338.011, 29.319),                  -- coords for marker, blip
        vehiclePreview = vec4(493.756, -1332.161, 28.336, 252.884),
        unitCalculator = 'kmh'                                      -- or 'mph', this is for calculating vehicle max speed
    },

    -- only mafia can see blip and interact
    impound = {
        blip = {
            type = 227,     -- https://docs.fivem.net/docs/game-references/blips/
            scale = 0.6,
            colour = 1,     -- https://docs.fivem.net/docs/game-references/blips/#blip-colors
            text = 'Illegal Impound'
        },
        coords = vec3(-465.680, -1707.112, 18.811), -- marker
        spawn = vec3(-456.535, -1706.918, 18.819),  -- coords where vehicle spawns after purchasing

    },

    ImpoundPrices = {
        -- These are vehicle classes
        [0] = 300,      -- Compacts
        [1] = 500,      -- Sedans
        [2] = 500,      -- SUVs
        [3] = 800,      -- Coupes
        [4] = 1200,     -- Muscle
        [5] = 800,      -- Sports Classics
        [6] = 1500,     -- Sports
        [7] = 2500,     -- Super
        [8] = 300,      -- Motorcycles
        [9] = 500,      -- Off-road
        [10] = 1000,    -- Industrial
        [11] = 500,     -- Utility
        [12] = 600,     -- Vans
        [13] = 100,     -- Cylces
        [14] = 2800,    -- Boats
        [15] = 3500,    -- Helicopters
        [16] = 3800,    -- Planes
        [17] = 500,     -- Service
        [18] = 0,       -- Emergency
        [19] = 100,     -- Military
        [20] = 1500,    -- Commercial
        [21] = 0        -- Trains (lol)
    },

    Payout = {
        enabled = true,         -- if you have in es_extended config Config.EnableSocietyPayouts = false then put this to false, otherwise people will get payout in this script and and via es_extended, if you use setJobField = 'metadata' then this doesnt apply, same applies to qb core
        payFromBalance = true,  -- should people get salary from gang balance?,
        interval = 7 * 60000    -- how often to recieve pay checks in milliseconds, (7min)
    }
}

Last updated