Issue adding Entities

I’ve tried adding some new Entities for our DarkRP server to buy using the F4 menu using our Hospital Doctor job and Swat Medic.

But I’ve ran into an issue with the Hopsital Doctor job.

This is how the Job for the doctor look like.

Notice that TEAM_DOCTOR is used in the Entities file as allowed = {TEAM_DOCTOR}


TEAM_DOCTOR = DarkRP.createJob("Hospital Doctor", {
	color = Color(47, 79, 79, 255),
	model = "models/player/kleiner.mdl",
	description = [[With your medical knowledge you work to restore players to full health.
		Without a Doctor, people cannot be healed.
		Left click with the Medical Kit to heal other players.
		Right click with the Medical Kit to heal yourself. You can also buy armor battery]],
	weapons = {"fas2_ifak","weapon_fists"},
	command = "medic",
	max = 4,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = true,
	medic = true
})

Thats how the code for the Doctor looks like in the Entities file.


AddEntity("Suit Battery", {
	ent = "item_battery",
	model = "models/items/battery.mdl",
	price = 70,
	max = 1000,
	cmd = "buybattery",
	allowed = {TEAM_DOCTOR}
})

AddEntity("Bandages", {
	ent = "fas2_ammo_bandages",
	model = "models/items/boxmrounds.mdl",
	price = 50,
	max = 1000,
	cmd = "buybandages",
	allowed = {TEAM_DOCTOR}
})

AddEntity("Hemostats", {
	ent = "fas2_ammo_hemostats",
	model = "models/items/boxmrounds.mdl",
	price = 50,
	max = 1000,
	cmd = "buyhermostats",
	allowed = {TEAM_DOCTOR}
})

AddEntity("Medical Supplies", {
	ent = "fas2_ammo_medical",
	model = "models/items/boxmrounds.mdl",
	price = 550,
	max = 1000,
	cmd = "buymedicalsupplies",
	allowed = {TEAM_DOCTOR}
})

AddEntity("Quikclots", {
	ent = "fas2_ammo_quikclots",
	model = "models/items/boxmrounds.mdl",
	price = 250,
	max = 1000,
	cmd = "buymedicalsupplies",
	allowed = {TEAM_DOCTOR}
})


Does anyone know whats wrong with this?

Thanks, have a great one.