require "DAMN_Parts";
require "DAMN_Spawns";

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

DAMN.Parts:processConfigV2("GNX87", {
	["BumperFront"] = {
		partId = "DAMNBumperFront",
		itemToModel = {
			["Base.87buickRegalBumperFront"] = "BumperFront0",
			["Base.87buickRegalBumperFrontA"] = "BumperFrontA",
			["Base.87buickRegalBullbar"] = "BullbarFrontA",
		},
		default = "first",
	},
	["BumperRear"] = {
		partId = "DAMNBumperRear",
		itemToModel = {
			["Base.87buickRegalBumperRear"] = "BumperRear0",
		},
		default = "first",
	},
	["WindshieldArmor"] = {
		partId = "DAMNWindshieldArmor",
		itemToModel = {
			["Base.87buickRegalWindshieldArmor"] = "GNX87winda0",
		},
	},
	["WindshieldRearArmor"] = {
		partId = "DAMNWindshieldRearArmor",
		itemToModel = {
			["Base.87buickRegalWindshieldRearArmor"] = "GNX87windra",
		},
	},
	["FrontLeftArmor"] = {
		partId = "DAMNFrontLeftArmor",
		itemToModel = {
			["Base.87buickRegalFrontWindowArmor"] = "GNX87leftdoora",
		},
	},
	["FrontRightArmor"] = {
		partId = "DAMNFrontRightArmor",
		itemToModel = {
			["Base.87buickRegalFrontWindowArmor"] = "GNX87rightdoora",
		},
	},
	["RearLeftArmor"] = {
		partId = "DAMNRearLeftArmor",
		itemToModel = {
			["Base.87buickRegalRearWindowArmor"] = "GNX87leftdoorra",
		},
	},
	["RearRightArmor"] = {
		partId = "DAMNRearRightArmor",
		itemToModel = {
			["Base.87buickRegalRearWindowArmor"] = "GNX87rightdoorra",
		},
	},
	["SpareTire"] = {
		partId = "DAMNSpareTire",
		itemToModel = {
			["Base.87buickRegalTire1"] = "GNX87Spare1",
			["Base.87buickRegalGNXTire3"] = "GNX87Spare2",
            ["damnCraft.SmallTire1"] = "GNX87Spare3",
		},
		default = "trve_random",
		noPartChance = 25,
	},
	["Roofrack"] = {
		partId = "GNX87Roofrack",
		itemToModel = {
			["Base.87buickRegalRoofrack3"] = "GNX87Roofrack0",
		},
		default = "trve_random",
		noPartChance = 95,
	},
	["Spoiler"] = {
		partId = "DAMNSpoiler",
		itemToModel = {
			["Base.87buickRegalGNXSpoiler3"] = "GNX87Spoiler0",
		},
		default = "first",
	},
	["SpoilerO"] = {
		partId = "DAMNSpoiler",
		itemToModel = {
			["Base.87buickRegalGNXSpoiler3"] = "GNX87Spoiler0",
		},
	},
	["FrontLip"] = {
		partId = "GNX87FrontLip",
		itemToModel = {
			["Base.87buickRegalFrontLip3"] = "GNX87Lip0",
			["Base.87buickRegalFrontSplitLip3"] = "GNX87Lip1",
		},
		default = "trve_random",
		noPartChance = 33,
	},
	["TireFrontLeft"] = {
		partId = "TireFrontLeft",
		itemToModel = {
			["Base.87buickRegalTire1"] = "GNX87Tire",
			["Base.87buickRegalGNXTire3"] = "GNX87TireS",
            ["damnCraft.SmallTire1"] = "GNX87TireUL",
		},
	},
	["TireFrontRight"] = {
		partId = "TireFrontRight",
		itemToModel = {
			["Base.87buickRegalTire1"] = "GNX87Tire",
			["Base.87buickRegalGNXTire3"] = "GNX87TireS",
            ["damnCraft.SmallTire1"] = "GNX87TireUR",
		},
	},
	["TireRearLeft"] = {
		partId = "TireRearLeft",
		itemToModel = {
			["Base.87buickRegalTire1"] = "GNX87Tire",
			["Base.87buickRegalGNXTire3"] = "GNX87TireS",
            ["damnCraft.SmallTire1"] = "GNX87TireUL",
		},
	},
	["TireRearRight"] = {
		partId = "TireRearRight",
		itemToModel = {
			["Base.87buickRegalTire1"] = "GNX87Tire",
			["Base.87buickRegalGNXTire3"] = "GNX87TireS",
            ["damnCraft.SmallTire1"] = "GNX87TireUR",
		},
	},
});