-- Code is messy as all fuck in the world, it's my first time doing a menu and I'm completely assblasted about it because it was more troublesome than I anticipated it to be.
-- If something looks stupid it probably is. There probably is a way to clean it all up and shit but right now I just want it to work.


_G.ShirtMenu = _G.ShirtMenu or {}
ShirtMenu._path = ModPath
ShirtMenu._data_path = SavePath .. "shirt_pick_save.txt"
ShirtMenu._data = {} 

function _G.ShirtMenu:ApplyShirt()
if ShirtMenu._data["shirt_type"] == 1 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 200,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 50,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 50,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 2 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 10,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 3 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 4 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 5 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 6 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 7 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 8 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 9 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 10 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 11 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
elseif ShirtMenu._data["shirt_type"] == 12 then
	tweak_data.blackmarket.characters.max.material_config = {
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_01"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_02"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_03"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_04"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_05"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_shirt_06"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_taco"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1000,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_snakeskin"
			},
			{
				fps = "units/pd2_dlc_max/characters/fps_criminals_max/mtr_max",
				chance = 1,
				npc = "units/pd2_dlc_max/characters/npc_criminals_max/mtr_criminal_max_pink"
			}
		}
end
end

function ShirtMenu:Save()
	local file = io.open( self._data_path, "w+" )
	if file then
		file:write( json.encode( self._data ) )
		file:close()
	end
end

function ShirtMenu:Load()
	local file = io.open( self._data_path, "r" )
	if file then
		self._data = json.decode( file:read("*all") )
		file:close()
		self:ApplyShirt()
	end
end

Hooks:Add("LocalizationManagerPostInit", "LocalizationManagerPostInit_ShirtMenu", function( loc )
	loc:load_localization_file( ShirtMenu._path .. "loc/en.txt")
end)

-- this made my head hurt ow
Hooks:Add( "MenuManagerInitialize", "MenuManagerInitialize_ShirtMenu", function( menu_manager )

	MenuCallbackHandler.callback_shirt = function(self, item)
		ShirtMenu._data.shirt_type = item:value()
		ShirtMenu:Save()
		_G.ShirtMenu:ApplyShirt()
	end
	

	ShirtMenu:Load()

	MenuHelper:LoadFromJsonFile( ShirtMenu._path .. "menu/menu.txt", ShirtMenu, ShirtMenu._data )





end )


-- ow it really hurts
-- i hope it fucking works man