Full View config.lua

Preview File Updated: 1.0.0 - 27.09.2023

Config = {} -- Do not remove this line

-- @param UseAdminGarage: boolean
-- @param AdminGaragePermission: table
Config.UseAdminGarage = true -- Enable admin garage
Config.AdminGaragePermission = {'group.admin'} -- Permission required to access the admin garage

-- @param UseTextUI: boolean
-- @param TextUIOptions: table
Config.UseTextUI = true -- Enable text UI
Config.TextUIOptions = {
    radius = 3.0,
}

-- @param UseMarker: boolean
-- @param Marker: table
Config.UseMarker = true -- Enable marker
Config.Marker = {
    width = 1.0,
    height = 1.0,
    color = {r = 0, g = 0, b = 255},
    type = 36,
    direction = vector3(0.0, 0.0, 0.0),
    rotation = vector3(0.0, 0.0, 0.0),

    distance = 10,
}

-- @param UseBlips: boolean
-- @param BlipOptions: table
Config.UseBlips = true -- Enable blips
Config.BlipOptions = {
    sprite = 357,
    color = 1,
    scale = 0.7,
    display = 4,
}

-- @param UseTarget: boolean
-- @param TargetOptions: table
Config.UseTarget = false  -- Enable target
Config.TargetOptions = {
    radius = 3.0,
    icon = 'fas fa-car',
}

-- @param UseVehicleLock: boolean
Config.SetPlayerInVehicle = false -- Set player in vehicle when spawned

-- @param UseVehicleLock: boolean
Config.UseCustomPlates = false -- Enable custom plate generation

function generatePlate()
    local plate = ''
    local charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
    for i = 1, 8 do
        plate = plate .. string.char(string.byte(charset, math.random(1, string.len(charset))))
    end

    return plate -- dont touch this
end

Config.Garages = {
    ['USMC Ground'] = {
        permission = 'garage.usmcground', -- Permission required to access the garage
        label = 'USMC Ground', -- Garage name
        locations = { -- List of locations where the garage is located
            [1] = {
                locationName = 'Main Base', -- Location name
                location = vector3(42.4718, -1052.1105, 38.1522), -- Location coordinates
                spawnLocations = { -- List of spawn locations
                    vector4(44.5564, -1063.8395, 38.1522, 69.2060),
                    vector4(43.5206, -1066.5033, 38.1522, 69.9495),
                },
            },
            [2] = {
                locationName = 'Secondary Base',
                location = vector3(29.5324, -1063.5713, 38.1522),
                spawnLocations = {
                    vector4(19.3611, -1079.8721, 38.2255, 159.4414),
                    vector4(25.8332, -1088.0305, 38.1522, 226.8640),
                },
            },
        },
        categories = {
            ['Humvees'] = { -- Category name
                vehicles = {
                    {model = 't20', label = 'M998', livery = 0, color = { primary = {255, 255, 255}, secondary = {255, 0, 0}}, plate = 'USMC001', extras = {1, 2, 3}},
                    {model = 'zentorno', label = 'M1025', livery = 0, color = { primary = {255, 255, 255}, secondary = {255, 0, 0}}, plate = 'USMC', extras = {1, 2, 3}},
                },
            },
            ['Tanks'] = {
                vehicles = {
                    {model = 't20', label = 'M2 Light', livery = 0, color = { primary = {255, 0, 0}, secondary = {255, 0, 0}}, plate = 'USMC', extras = {1, 2, 3}},
                    {model = 'zentorno', label = 'M4 Sherman', livery = 0, color = { primary = {255, 0, 0}, secondary = {255, 0, 0}}, plate = 'USMC', extras = {1, 2, 3}},
                },
            },
        },
    },
    ['USMC Air'] = {
        permission = 'garage.usmcair',
        label = 'USMC Air',
        locations = {
            [1] = {
                locationName = 'Main Base',
                location = vector3(16.5293, -1090.0204, 38.1522),
                spawnLocations = {
                    vector4(1.8060, -1086.5029, 38.1521, 248.4391),
                    vector4(1.3606, -1092.4102, 38.1521, 167.2932),
                },
            },
            [2] = {
                locationName = 'Secondary Base',
                location = vector3(2.1859, -1107.5878, 38.1521),
                spawnLocations = {
                    vector4(8.7107, -1108.4006, 38.1521, 259.2256),
                    vector4(13.0161, -1103.0956, 38.1521, 327.0717),
                },
            },
        },
        categories = {
            ['Unarmed Helicopters'] = {
                vehicles = {
                    {model = 't20', label = 'Heli 1', livery = 0, color = { primary = {255, 0, 0}, secondary = {255, 0, 0}}, plate = 'USMC', extras = {1, 2, 3}},
                    {model = 'zentorno', label = 'Heli 2', livery = 0, color = { primary = {255, 0, 0}, secondary = {255, 0, 0}}, plate = 'USMC', extras = {1, 2, 3}},
                },
            },
            ['Armed Helicopters'] = {
                vehicles = {
                    {model = 't20', label = 'Heli 3', livery = 0, color = { primary = {255, 0, 0}, secondary = {255, 0, 0}}, plate = 'USMC', extras = {1, 2, 3}},
                    {model = 'zentorno', label = 'Heli 4', livery = 0, color = { primary = {255, 0, 0}, secondary = {255, 0, 0}}, plate = 'USMC', extras = {1, 2, 3}},
                },
            },
        },
    },
}

Last updated