Breach class problem

Hi everyone !

I’m working on my server breach, and i wanna add FA:S gun on the different group

EDIT : I also modified skin of certain groups.

i did this :



/*
RESEARCHERMODELS = {
"models/player/kerry/class_scientist_1.mdl",
"models/player/kerry/class_scientist_2.mdl",
"models/player/kerry/class_scientist_3.mdl",
"models/player/kerry/class_scientist_4.mdl",
"models/player/kerry/class_scientist_5.mdl",
"models/player/kerry/class_scientist_6.mdl",
"models/player/kerry/class_scientist_7.mdl",
}
*/
RESEARCHERMODELS = {
"models/bmscientistcits/p_female_01.mdl",
"models/bmscientistcits/p_female_02.mdl",
"models/bmscientistcits/p_female_03.mdl",
"models/bmscientistcits/p_female_04.mdl",
"models/bmscientistcits/p_female_06.mdl",
"models/bmscientistcits/p_female_07.mdl",
"models/bmscientistcits/p_male_01.mdl",
"models/bmscientistcits/p_male_02.mdl",
"models/bmscientistcits/p_male_03.mdl",
"models/bmscientistcits/p_male_04.mdl",
"models/bmscientistcits/p_male_05.mdl",
"models/bmscientistcits/p_male_06.mdl",
"models/bmscientistcits/p_male_07.mdl",
"models/bmscientistcits/p_male_08.mdl",
"models/bmscientistcits/p_male_09.mdl",
"models/bmscientistcits/p_male_10.mdl",
}
CHAOSMODELS = {
"models/kerry/merriweather1.mdl",
"models/kerry/merriweather2.mdl",
"models/kerry/merriweather3.mdl",
"models/kerry/merriweather4.mdl",
"models/kerry/merriweather5.mdl",
"models/kerry/merriweather6.mdl",
"models/kerry/merriweather7.mdl",
"models/kerry/merriweather8.mdl",
}
SECURITYMODELS = {
"models/player/group04/male_01.mdl",
"models/player/group04/male_02.mdl",
"models/player/group04/male_03.mdl",
"models/player/group04/male_04.mdl",
"models/player/group04/male_05.mdl",
"models/player/group04/male_06.mdl",
"models/player/group04/male_07.mdl",
"models/player/group04/male_08.mdl",
"models/player/group04/male_09.mdl",
}
CLASSDMODELS = {
"models/player/kerry/class_d_1.mdl",
"models/player/kerry/class_d_2.mdl",
"models/player/kerry/class_d_3.mdl",
"models/player/kerry/class_d_4.mdl",
"models/player/kerry/class_d_5.mdl",
"models/player/kerry/class_d_6.mdl",
"models/player/kerry/class_d_7.mdl",
}

ALLCLASSES = {
	classds = {
		name = "Classes D",
		color = Color(255, 130, 0),
		roles = {
			{name = ROLES.ROLE_CLASSD,
			 team = TEAM_CLASSD,
			 weapons = {"br_holster", "br_id"},
			 showweapons = {},
			 ammo = {},
			 health = 100,
			 armor = 0,
			 walkspeed = 1,
			 runspeed = 1,
			 jumppower = 1,
			 vest = nil,
			 models = CLASSDMODELS,
			 showmodel = CLASSDMODELS,
			 level = 0,
			 customcheck = nil,
			 flashlight = false,
			 max = 64
			},
			{name = ROLES.ROLE_VETERAN,
			 team = TEAM_CLASSD,
			 weapons = {"br_holster", "br_id", "fas2_dv2"},
			 showweapons = {"DV2"},
			 ammo = {},
			 health = 120,
			 armor = 0,
			 walkspeed = 1.1,
			 runspeed = 1.1,
			 jumppower = 1.1,
			 vest = nil,
			 models = CLASSDMODELS,
			 showmodel = CLASSDMODELS,
			 flashlight = false,
			 level = 6,
			 max = 3
			}
		}
	},
	researchers = {
		name = "Membres du personnel",
		color = Color(66, 188, 244),
		roles = {
			{name = ROLES.ROLE_RES,
			 team = TEAM_SCI,
			 weapons = {"br_holster", "br_id", "keycard_level2"},
			 showweapons = {"Keycard Level 2"},
			 ammo = {},
			 health = 100,
			 armor = 0,
			 walkspeed = 1,
			 runspeed = 1,
			 jumppower = 1,
			 vest = nil,
			 models = RESEARCHERMODELS,
			 showmodel = RESEARCHERMODELS,
			 flashlight = true,
			 level = 0,
			 max = 36
			},
			{name = ROLES.ROLE_MEDIC,
			 team = TEAM_SCI,
			 weapons = {"br_holster", "br_id", "keycard_level2", "item_ultramedkit"},
			 showweapons = {"Keycard Level 2", "Med Kit"},
			 ammo = {},
			 health = 100,
			 armor = 0,
			 walkspeed = 1,
			 runspeed = 1,
			 jumppower = 1,
			 vest = nil,
			 models = RESEARCHERMODELS,
			 showmodel = RESEARCHERMODELS,
			 flashlight = true,
			 level = 1,
			 max = 4
			}
		}
	},
	security = {
		name = "Forces armées du site",
		color = Color(0, 100, 255),
		roles = {
			{name = ROLES.ROLE_SECURITY,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level2", "item_radio", "weapon_stunstick", "fas2_glock20", "fas2_mp5a5"},
			 showweapons = {"Keycard Level 2", "Radio", "Stunstick", "Glock-20"},
			 ammo = {"9X19MM", "10x25MM" 260},
			 health = 100,
			 armor = 0,
			 walkspeed = 0.96,
			 runspeed = 1,
			 jumppower = 1,
			 vest = "armor_security",
			 models = RESEARCHERMODELS,
			 showmodel = SECURITYMODELS[1],
			 pmcolor = nil,
			 flashlight = true,
			 level = 0,
			 max = 24,
			 sorting = 0,
			 importancelevel = 1
			},
			{name = ROLES.ROLE_CSECURITY,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level4", "item_radio", "item_cameraview", "weapon_stunstick", "fas2_ots33", "fas2_g36c"},
			 showweapons = {"Keycard Level 4", "Radio", "Camera View", "Stunstick", "OTs-33 Pernach", "G36C"},
			 ammo = {"5.56x45MM", "9x18MM" 260},
			 health = 100,
			 armor = 50,
			 walkspeed = 1,
			 runspeed = 1.1,
			 jumppower = 1,
			 vest = "armor_security",
			 models = RESEARCHERMODELS,
			 showmodel = SECURITYMODELS[1],
			 pmcolor = nil,
			 flashlight = true,
			 level = 4,
			 max = 1,
			 sorting = 6,
			 importancelevel = 2
			},
			{name = ROLES.ROLE_MTFGUARD,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level3", "item_radio", "weapon_stunstick", "fas2_famas", "fas2_p226"},
			 showweapons = {"Keycard Level 3", "Radio", "Stunstick", "FAMAS", "P226"},
			 ammo = {".357 SIG", "5.56x45MM", 200},
			 health = 100,
			 armor = 10,
			 walkspeed = 0.85,
			 runspeed = 0.92,
			 jumppower = 0.87,
			 vest = "armor_mtfguard",
			 models = {"models/mtf/mtf_remasteredhd.mdl"},
			 showmodel = "models/mtf/mtf_remasteredhd.mdl",
			 pmcolor = nil,
			 flashlight = true,
			 level = 2,
			 max = 12,
			 sorting = 1,
			 importancelevel = 1
			},
			{name = ROLES.ROLE_CHAOSSPY,
			 team = TEAM_CHAOS,
			 weapons = {"br_holster", "br_id", "keycard_level3", "item_radio", "weapon_stunstick", "fas2_ak47", "item_nvg", "fas2_machete"},
			 showweapons = {"Keycard Level 3", "Radio", "Stunstick", "NVG", "AK-47", "Machete"},
			 ammo = {"5.45x39MM", 200},
			 health = 120,
			 armor = 0,
			 walkspeed = 1.2,
			 runspeed = 1.3,
			 jumppower = 1,
			 vest = "armor_mtfguard",
			 models = {"models/mtf/mtf_remasteredhd.mdl"},
			 showmodel = "models/mtf/mtf_remasteredhd.mdl",
			 pmcolor = nil,
			 flashlight = true,
			 level = 5,
			 max = 2,
			 sorting = 2,
			 importancelevel = 1
			},
			{name = ROLES.ROLE_MTFMEDIC,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level3", "item_radio", "item_ultramedkit", "weapon_stunstick", "fas2_p226", "fas2_m3s90"},
			 showweapons = {"Keycard Level 3", "Radio", "Medkit", "Stunstick", "P226", "M3 Super 90"},
			 ammo = {"12 Gauge", ".357 SIG", 90},
			 health = 130,
			 armor = 50,
			 walkspeed = 0.85,
			 runspeed = 0.92,
			 jumppower = 0.87,
			 vest = "armor_mtfmedic",
			 models = {"models/payday2/units/medic_player.mdl"},
			 showmodel = "models/payday2/units/medic_player.mdl",
			 pmcolor = nil,
			 flashlight = true,
			 level = 5,
			 max = 1,
			 sorting = 3,
			 importancelevel = 1
			},
			{name = ROLES.ROLE_MTFL,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level4", "item_radio", "item_nvg", "item_cameraview", "weapon_stunstick", "fas2_m4a1", "fas2_m1911"},
			 showweapons = {"Keycard Level 4", "Radio", "NVG", "Camera View", "Stunstick", "M4A1", "M1911"},
			 ammo = {"5.56x45MM", ".45 ACP" 260},
			 health = 100,
			 armor = 100,
			 walkspeed = 0.87,
			 runspeed = 0.94,
			 jumppower = 0.9,
			 vest = "armor_mtfl",
			 models = {"models/mw2/skin_04/mw2_soldier_04.mdl"},
			 showmodel = "models/mw2/skin_04/mw2_soldier_04.mdl",
			 pmcolor = nil,
			 flashlight = true,
			 level = 4,
			 max = 2,
			 sorting = 4,
			 importancelevel = 1
			},
			{name = ROLES.ROLE_HAZMAT,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level4", "item_radio", "item_nvg", "item_cameraview", "weapon_stunstick", "fas2_famas", "fas2_glock20"},
			 showweapons = {"Keycard Level 4", "Radio", "NVG", "Camera View", "Stunstick", "FAMAS", "Glock-20"},
			 ammo = {"5.56x45MM", "10x25MM", 260},
			 health = 125,
			 armor = 50,
			 walkspeed = 0.93,
			 runspeed = 0.98,
			 jumppower = 0.92,
			 vest = "armor_hazmat",
			 models = {"models/DxN/cod_ghosts/hazmat_pm.mdl"},
			 showmodel = "models/DxN/cod_ghosts/hazmat_pm.mdl",
			 pmcolor = nil,
			 flashlight = true,
			 level = 8,
			 max = 3,
			 sorting = 5,
			 importancelevel = 1
			},
			{name = ROLES.ROLE_MTFCOM,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level4", "item_radio", "item_nvg", "item_cameraview", "weapon_stunstick", "fas2_deagle", "fas2_m14"},
			 showweapons = {"Keycard Level 4", "Radio", "NVG", "Camera View", "Stunstick", "IMI Desert Eagle", "M14"},
			 ammo = {"7.62x51MM", " .50 AE" 200},
			 health = 110,
			 armor = 30,
			 walkspeed = 0.9,
			 runspeed = 0.94,
			 jumppower = 0.9,
			 vest = "armor_mtfcom",
			 models = {"models/mtf/mtf_remasteredhd.mdl"},
			 showmodel = "models/mtf/mtf_remasteredhd.mdl",
			 pmcolor = nil,
			 flashlight = true,
			 level = 5,
			 max = 1,
			 sorting = 7,
			 importancelevel = 3
			},
			{name = ROLES.ROLE_SD,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level5", "item_radio", "item_cameraview", "weapon_stunstick", "fas2_ragingbull", "item_nvg"},
			 showweapons = {"Keycard Level 5", "Radio", "Camera View", "Stunstick", "Raging Bull", "NVG"},
			 ammo = {"Pistol", 105},
			 health = 100,
			 armor = 0,
			 walkspeed = 1.1,
			 runspeed = 1.3,
			 jumppower = 1.2,
			 vest = nil,
			 models = {"models/player/breen.mdl"},
			 showmodel = "models/player/breen.mdl",
			 pmcolor = Color(0,0,0),
			 flashlight = true,
			 level = 6,
			 max = 1,
			 sorting = 8,
			 importancelevel = 4
			}
		}
	},
	support = {
		name = "Renforts armés",
		color = Color(29, 81, 56),
		roles = {
			{name = ROLES.ROLE_MTFNTF,
			 team = TEAM_GUARD,
			 weapons = {"br_holster", "br_id", "keycard_level4", "item_radio", "item_nvg", "weapon_stunstick", "fas2_ak74"},
			 showweapons = {"Keycard Level 4", "Radio", "NVG", "Stunstick", "Ak-74"},
			 ammo = {"5.45x39MM", 180},
			 health = 100,
			 armor = 0,
			 walkspeed = 0.86,
			 runspeed = 0.93,
			 jumppower = 0.85,
			 vest = "armor_ntf",
			 models = {"models/player/pmc_4/pmc__07.mdl"},
			 showmodel = "models/player/pmc_4/pmc__07.mdl",
			 pmcolor = nil,
			 flashlight = true,
			 level = 3,
			 max = 3
			},
			{name = ROLES.ROLE_CHAOS,
			 team = TEAM_CHAOS,
			 weapons = {"br_holster", "br_id", "keycard_level4", "item_radio", "weapon_stunstick", "fas2_rpk", "fas2_m67"},
			 showweapons = {"Keycard Level 4", "Radio", "Stunstick", "RPK-47", "M67"},
			 ammo = {"AR2", 180, "m67", 5},
			 health = 150,
			 armor = 0,
			 walkspeed = 0.86,
			 runspeed = 0.93,
			 jumppower = 0.85,
			 vest = "armor_chaosins",
			 models = ["models/friskiukas/bf4/us_01.mdl"},
			 showmodel = "models/friskiukas/bf4/us_01.mdl",
			 pmcolor = nil,
			 flashlight = true,
			 level = 4,
			 max = 3
			}
		}
	}
}


So, when i join the server, i can’t open the F2 menu, and the console say this :

[breach_(edited)] gamemodes/breach/gamemode/cl_classmenu.lua:41: attempt to index global ‘ALLCLASSES’ (a nil value)

  1. OpenClassMenu - gamemodes/breach/gamemode/cl_classmenu.lua:41
  2. unknown - gamemodes/breach/gamemode/cl_init.lua:461

I try to inspect the cl_init.lua and i didn’t find something wrong

Someone can help me ?

Cordially, Armando Galvãs.

What file are all these tables in?