require "DAMN_Parts";
require "DAMN_Spawns";

--***********************************************************
--**                   KI5 / bikinihorst                   **
--***********************************************************

DAMN.Parts:processConfigV2("CAP85", {
	["BumperFront"] = {
		partId = "DAMNBumperFront",
		itemToModel = {
			["Base.85chevyCapriceBumperFront0"] = "FrontBumper0",
			["Base.85chevyCapriceBumperFrontA"] = "FrontBumperA",
            ["Base.85gmBbodyBullbarFrontA"] = "FrontBullbarA",
            ["Base.85chevyCapriceBumperFrontB"] = "FrontBumperB",
		},
		default = "first",
	},
	["BumperRear"] = {
		partId = "DAMNBumperRear",
		itemToModel = {
			["Base.85chevyCapriceBumperRear0"] = "RearBumper0",
            ["Base.85chevyCapriceBumperRearB"] = "RearBumperB",
            ["Base.85gmBbodyWagonBumperRear1"] = "RearBumper1",
            ["Base.85gmBbodyWagonBumperRear2"] = "RearBumper2",
		},
		default = "first",
	},
    ["WindshieldArmor"] = {
		partId = "DAMNWindshieldArmor",
		itemToModel = {
			["Base.85gmBbodyWindshieldArmorW"] = "CAP85windaW",
            ["Base.85gmBbodyWindshieldArmorM"] = "CAP85windaM",
		},
	},
	["FrontLeftArmor"] = {
		partId = "DAMNFrontLeftArmor",
		itemToModel = {
			["Base.85gmBbodyFrontWindowArmorW"] = "CAP85leftWindowaW",
            ["Base.85gmBbodyFrontWindowArmorM"] = "CAP85leftWindowaM",
		},
	},
	["FrontRightArmor"] = {
		partId = "DAMNFrontRightArmor",
		itemToModel = {
			["Base.85gmBbodyFrontWindowArmorW"] = "CAP85rightWindowaW",
            ["Base.85gmBbodyFrontWindowArmorM"] = "CAP85rightWindowaM",
		},
	},
	["RearLeftArmor"] = {
		partId = "DAMNRearLeftArmor",
		itemToModel = {
			["Base.85gmBbodyRearWindowArmorW"] = "CAP85leftWindowraW",
            ["Base.85gmBbodyRearWindowArmorM"] = "CAP85leftWindowraM",
		},
	},
	["RearRightArmor"] = {
		partId = "DAMNRearRightArmor",
		itemToModel = {
			["Base.85gmBbodyRearWindowArmorW"] = "CAP85rightWindowraW",
            ["Base.85gmBbodyRearWindowArmorM"] = "CAP85rightWindowraM",
		},
	},
    ["BackLeftArmor"] = {
		partId = "DAMNBackLeftArmor",
		itemToModel = {
			["Base.85gmBbodyWagonBackWindowArmorW"] = "CAP85leftWindowbaW",
            ["Base.85gmBbodyWagonBackWindowArmorM"] = "CAP85leftWindowbaM",
		},
	},
	["BackRightArmor"] = {
		partId = "DAMNBackRightArmor",
		itemToModel = {
			["Base.85gmBbodyWagonBackWindowArmorW"] = "CAP85rightWindowbaW",
            ["Base.85gmBbodyWagonBackWindowArmorM"] = "CAP85rightWindowbaM",
		},
	},
    ["WindshieldRearArmorS"] = {
		partId = "DAMNWindshieldRearArmor",
		itemToModel = {
			["Base.85gmBbodyWindshieldRearArmorW"] = "CAP85windraW",
            ["Base.85gmBbodyWindshieldRearArmorM"] = "CAP85windraM",
		},
	},
    ["SpareTire"] = {
		partId = "DAMNSpareTire",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "na",
			["Base.85gmBbodyTire1"] = "na",
            ["Base.85gmBbodyTire2"] = "na",
            ["Base.85gmBbodyTire3"] = "na",
            ["Base.85gmBbodyTire4"] = "na",
            ["Base.85gmBbodyTire5"] = "na",
            ["Base.85gmBbodyTire6"] = "na",
            ["damnCraft.SteelTire1"] = "na",
		},
		default = "trve_random",
		noPartChance = 33,
	},
    ["TireFrontLeft"] = {
		partId = "TireFrontLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire2"] = "GM85Tire2L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
            ["Base.85gmBbodyTire6"] = "GM85Tire6L",
            ["damnCraft.SteelTire1"] = "GM85Tire7L",
		},
	},
	["TireFrontRight"] = {
		partId = "TireFrontRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire2"] = "GM85Tire2R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
            ["Base.85gmBbodyTire6"] = "GM85Tire6R",
            ["damnCraft.SteelTire1"] = "GM85Tire7R",
		},
	},
	["TireRearLeft"] = {
		partId = "TireRearLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire2"] = "GM85Tire2L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
            ["Base.85gmBbodyTire6"] = "GM85Tire6L",
            ["damnCraft.SteelTire1"] = "GM85Tire7L",
		},
	},
	["TireRearRight"] = {
		partId = "TireRearRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire2"] = "GM85Tire2R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
            ["Base.85gmBbodyTire6"] = "GM85Tire6R",
            ["damnCraft.SteelTire1"] = "GM85Tire7R",
		},
	},
    ["RoofrackSedan"] = {
		partId = "GM85Roofrack",
		itemToModel = {
			["Base.85gmBbodyRoofrack1"] = "Roofrack0",
		},
		default = "trve_random",
			noPartChance = 90,
	},
    ["RoofrackWagon"] = {
		partId = "GM85Roofrack",
		itemToModel = {
			["Base.85gmBbodyRoofrack1"] = "Roofrack1",
            ["Base.85gmBbodyWagonRoofrack1"] = "Roofrack2",
            ["Base.85gmBbodyWagonRoofRails1"] = "Roofrails3",
		},
		allowedForRandom = {
            "Base.85gmBbodyWagonRoofrack1", "Base.85gmBbodyWagonRoofRails1"
        },
		default = "trve_random",
		noPartChance = 25,
	},
    ["RoofSedan"] = {
		partId = "GM85VinylRoof",
		itemToModel = {
			["Base.85gmBbodyVinylRoofBlack"] = "Roofb",
            ["Base.85gmBbodyVinylRoofMaroon"] = "Roofm",
            ["Base.85gmBbodyVinylRoofWhite"] = "Roofw",
            ["Base.85gmBbodyVinylRoofBrown"] = "Roofbr",
            ["Base.85gmBbodyVinylRoofBlue"] = "Roofbl",
		},
		default = "trve_random",
			noPartChance = 50,
	},
    ["RoofCoupe"] = {
		partId = "GM85VinylRoof",
		itemToModel = {
			["Base.85gmBbodyVinylRoofBlack"] = "Roofb",
            ["Base.85gmBbodyVinylRoofMaroon"] = "Roofm",
            ["Base.85gmBbodyVinylRoofWhite"] = "Roofw",
            ["Base.85gmBbodyVinylRoofBrown"] = "Roofbr",
            ["Base.85gmBbodyVinylRoofBlue"] = "Roofbl",
            ["Base.85gmBbodyVinylRoofQuarterBlack"] = "Roofbq",
            ["Base.85gmBbodyVinylRoofQuarterMaroon"] = "Roofmq",
            ["Base.85gmBbodyVinylRoofQuarterWhite"] = "Roofwq",
            ["Base.85gmBbodyVinylRoofQuarterBrown"] = "Roofbrq",
            ["Base.85gmBbodyVinylRoofQuarterBlue"] = "Roofblq",
		},
		default = "trve_random",
			noPartChance = 50,
	},
    ["TireFrontLeftS"] = {
		partId = "TireFrontLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire2"] = "GM85Tire2L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
            ["Base.85gmBbodyTire6"] = "GM85Tire6L",
            ["damnCraft.SteelTire1"] = "GM85Tire7L",
		},
        default = "first",
	},
	["TireFrontRightS"] = {
		partId = "TireFrontRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire2"] = "GM85Tire2R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
            ["Base.85gmBbodyTire6"] = "GM85Tire6R",
            ["damnCraft.SteelTire1"] = "GM85Tire7R",
		},
        default = "first",
	},
	["TireRearLeftS"] = {
		partId = "TireRearLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire2"] = "GM85Tire2L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
            ["Base.85gmBbodyTire6"] = "GM85Tire6L",
            ["damnCraft.SteelTire1"] = "GM85Tire7L",
		},
        default = "first",
	},
	["TireRearRightS"] = {
		partId = "TireRearRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire2"] = "GM85Tire2R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
            ["Base.85gmBbodyTire6"] = "GM85Tire6R",
            ["damnCraft.SteelTire1"] = "GM85Tire7R",
		},
        default = "first",
	},
});