Default Configuration File

This is what the C7 VMS2's configuration file looks like.

config = {}

config.debug = false

config.menuCommand = "vms2"
config.cooldown = 1000
config.lang = "en"
config.notifications = 'c7-scripts-notifications'   -- This is a dependency. Do not change.

-- =========================================================
-- C7 Framework Configuration Settings
-- =========================================================

config.frameworkType = "C7FW"                       -- Choose between: Standalone / C7FW

-- =========================================================
-- Standalone Framework Configuration Settings
-- =========================================================

config.useDiscordPermissions = false                -- If false, all departments and vehicles are available to anyone.
config.discordServerID = "SERVER_ID"                -- The Server ID to your Discord Server
config.discordBotToken = "BOT_TOKEN"                -- Replace with your Discord Bot Token

-- =========================================================
-- Departments Configurations
-- =========================================================

config.departments = {

    -- If you are using C7 Framework V3, you can configure your departments below. If not using, just ignore.
    C7FW = { 
        departments = { "LSPD", "BCSO", "SAHP" },   -- Your C7 Framework Departments
    },

    -- If you are using Standalone with Dicord Permissions, you can configure your role access below. If not using, just ignore.
    discord = { 
        lspd_access = "ROLE_ID",    -- This will give this role the "lspd_access" department.
        bcso_access = "ROLE_ID",    -- This will give this role the "bcso_access" department.
        sahp_access = "ROLE_ID"     -- This will give this role the "sahp_access" department.
    },

}

-- =========================================================
-- Languages Configurations
-- =========================================================

config.languages = {
    ['en'] = {
        ['invalidModel'] = '~r~ Invalid model!',
        ['spawnSuccess'] = '~g~Vehicle ready with applied preset.'
    }
}

-- =========================================================
-- Vehicles Configurations
-- =========================================================

config.cars = {


    -- Department 1: LSPD

    ['Los Santos Police'] = {
        main_image = '',
        main_order = 2,
        permittedDepartments = { 'SAHP', 'LSPD' },                      -- C7 Framework Permissions Example (comment out if using Discord)
        -- permittedDepartments = { 'lspd_access', 'sahp_access' },     -- Discord Permissions Example (uncomment if using Discord)

        ['Primary Vehicles'] = {
            sub_image = '',                     -- i.e. https://imgur.com/image.png will display an image.
            sub_order = 1,                      -- In which order do you want this to appear? (If you have multiple Sub Sections)

            {
                name = 'Crusier 1',             -- The name of vehicle.
                model = 'police',               -- The spawn code for the vehicle.
                veh_image = '',                 -- i.e. https://imgur.com/image.png will display an image.
                veh_order = 1,                  -- In which order do you want this vehicle?
                amount = 1,                     -- How many vehicles can be spawned?
                livery = 0,                     -- What livery should it spawn with?
                extras = {1, 4, 5, 7, 8, 11},   -- What extras should it spawn with?
                modkits = {                     -- What vehicle modifications should it spawn with?
                    ["Chassis"] = 0,
                    ["Grill"] = 0,
                    ["Roof"] = 0,
                    ["Engine"] = 5,
                    ["Plateholder"] = 0,
                    ["Trim"] = 0,
                    ["Ornaments"] = 0,
                    ["Dash"] = 0,
                    ["Column Shifter Levers"] = 0,
                    ["Trunk"] = 0,
                    ["Engine Block"] = 0,
                    ["Air Filters"] = 0,
                    ["Fittings"] = 0,
                    ["Arch Covers"] = 0,
                    ["Aerials"] = 0,
                    ["Trim 2"] = 0,
                    ["Tank"] = 0
                }
            }, -- Add a comma for each new vehicle
            {
                name = 'Cruiser 2',
                model = 'POLICE2',
                veh_image = '',
                veh_order = 2,
                amount = 1,
                livery = 0,
                extras = {1, 4, 5, 7, 8, 11},
                modkits = {
                    ["Chassis"] = 0,
                    ["Grill"] = 0,
                    ["Roof"] = 0,
                    ["Engine"] = 5,
                    ["Plateholder"] = 0,
                    ["Trim"] = 0,
                    ["Ornaments"] = 0,
                    ["Dash"] = 0,
                    ["Column Shifter Levers"] = 0,
                    ["Trunk"] = 0,
                    ["Engine Block"] = 0,
                    ["Air Filters"] = 0,
                    ["Fittings"] = 0,
                    ["Arch Covers"] = 0,
                    ["Aerials"] = 0,
                    ["Trim 2"] = 0,
                    ["Tank"] = 0
                }
            },
        },

        ['Secondary Vehicles'] = {
            sub_image = '',
            sub_order = 2,

            {
                name = 'Crusier 1',
                model = 'police',
                veh_image = '',
                veh_order = 1,
                amount = 1,
                livery = 0,
                extras = {1, 4, 5, 7, 8, 11},
                modkits = {
                    ["Chassis"] = 0,
                    ["Grill"] = 0,
                    ["Roof"] = 0,
                    ["Engine"] = 5,
                    ["Plateholder"] = 0,
                    ["Trim"] = 0,
                    ["Ornaments"] = 0,
                    ["Dash"] = 0,
                    ["Column Shifter Levers"] = 0,
                    ["Trunk"] = 0,
                    ["Engine Block"] = 0,
                    ["Air Filters"] = 0,
                    ["Fittings"] = 0,
                    ["Arch Covers"] = 0,
                    ["Aerials"] = 0,
                    ["Trim 2"] = 0,
                    ["Tank"] = 0
                }
            },
            {
                name = 'Cruiser 2',
                model = 'POLICE2',
                veh_image = '',
                veh_order = 2,
                amount = 1,
                livery = 0,
                extras = {1, 4, 5, 7, 8, 11},
                modkits = {
                    ["Chassis"] = 0,
                    ["Grill"] = 0,
                    ["Roof"] = 0,
                    ["Engine"] = 5,
                    ["Plateholder"] = 0,
                    ["Trim"] = 0,
                    ["Ornaments"] = 0,
                    ["Dash"] = 0,
                    ["Column Shifter Levers"] = 0,
                    ["Trunk"] = 0,
                    ["Engine Block"] = 0,
                    ["Air Filters"] = 0,
                    ["Fittings"] = 0,
                    ["Arch Covers"] = 0,
                    ["Aerials"] = 0,
                    ["Trim 2"] = 0,
                    ["Tank"] = 0
                }
            }
        }
    }, -- Add a comma for each new department.




    -- Department 2: BCSO


    ['BCSO'] = {
        main_image = '',
        main_order = 2,
        permittedDepartments = { 'SAHP', 'LSPD' },                      -- C7 Framework Permissions Example (comment out if using Discord)
        -- permittedDepartments = { 'lspd_access', 'sahp_access' },     -- Discord Permissions Example (uncomment if using Discord)

        ['Primary Vehicles'] = {
            sub_image = '',
            sub_order = 1,

            {
                name = 'Crusier 1',
                model = 'police',
                veh_image = '',
                veh_order = 1,
                amount = 1,
                livery = 0,
                extras = {1, 4, 5, 7, 8, 11},
                modkits = {
                    ["Chassis"] = 0,
                    ["Grill"] = 0,
                    ["Roof"] = 0,
                    ["Engine"] = 5,
                    ["Plateholder"] = 0,
                    ["Trim"] = 0,
                    ["Ornaments"] = 0,
                    ["Dash"] = 0,
                    ["Column Shifter Levers"] = 0,
                    ["Trunk"] = 0,
                    ["Engine Block"] = 0,
                    ["Air Filters"] = 0,
                    ["Fittings"] = 0,
                    ["Arch Covers"] = 0,
                    ["Aerials"] = 0,
                    ["Trim 2"] = 0,
                    ["Tank"] = 0
                }
            },
            {
                name = 'Cruiser 2',
                model = 'POLICE2',
                veh_image = '',
                veh_order = 2,
                amount = 1,
                livery = 0,
                extras = {1, 4, 5, 7, 8, 11},
                modkits = {
                    ["Chassis"] = 0,
                    ["Grill"] = 0,
                    ["Roof"] = 0,
                    ["Engine"] = 5,
                    ["Plateholder"] = 0,
                    ["Trim"] = 0,
                    ["Ornaments"] = 0,
                    ["Dash"] = 0,
                    ["Column Shifter Levers"] = 0,
                    ["Trunk"] = 0,
                    ["Engine Block"] = 0,
                    ["Air Filters"] = 0,
                    ["Fittings"] = 0,
                    ["Arch Covers"] = 0,
                    ["Aerials"] = 0,
                    ["Trim 2"] = 0,
                    ["Tank"] = 0
                }
            },
        },

        ['Secondary Vehicles'] = {
            sub_image = '',
            sub_order = 2,

            {
                name = 'Crusier 1',
                model = 'police',
                veh_image = '',
                veh_order = 1,
                amount = 1,
                livery = 0,
                extras = {1, 4, 5, 7, 8, 11},
                modkits = {
                    ["Chassis"] = 0,
                    ["Grill"] = 0,
                    ["Roof"] = 0,
                    ["Engine"] = 5,
                    ["Plateholder"] = 0,
                    ["Trim"] = 0,
                    ["Ornaments"] = 0,
                    ["Dash"] = 0,
                    ["Column Shifter Levers"] = 0,
                    ["Trunk"] = 0,
                    ["Engine Block"] = 0,
                    ["Air Filters"] = 0,
                    ["Fittings"] = 0,
                    ["Arch Covers"] = 0,
                    ["Aerials"] = 0,
                    ["Trim 2"] = 0,
                    ["Tank"] = 0
                }
            },
            {
                name = 'Cruiser 2',
                model = 'POLICE2',
                veh_image = '',
                veh_order = 2,
                amount = 1,
                livery = 0,
                extras = {1, 4, 5, 7, 8, 11},
                modkits = {
                    ["Chassis"] = 0,
                    ["Grill"] = 0,
                    ["Roof"] = 0,
                    ["Engine"] = 5,
                    ["Plateholder"] = 0,
                    ["Trim"] = 0,
                    ["Ornaments"] = 0,
                    ["Dash"] = 0,
                    ["Column Shifter Levers"] = 0,
                    ["Trunk"] = 0,
                    ["Engine Block"] = 0,
                    ["Air Filters"] = 0,
                    ["Fittings"] = 0,
                    ["Arch Covers"] = 0,
                    ["Aerials"] = 0,
                    ["Trim 2"] = 0,
                    ["Tank"] = 0
                }
            }
        }
    }
}

Last updated