[DARKRP] Help job coding

Hi, I would like to make it so that only the police could use it, but do not know how to write please tell me.


local PrintMore
function ENT:Initialize()
	local scolor = Color(0, 0, 255, 255)

	self:SetUseType(SIMPLE_USE)
	self:SetModel("models/props_wasteland/controlroom_filecabinet001a.mdl")
	self:SetMaterial("models/rendertarget")
	self:PhysicsInit(SOLID_VPHYSICS)
	self:SetMoveType(MOVETYPE_VPHYSICS)
	self:SetSolid(SOLID_VPHYSICS)
	self:SetColor( scolor )
	local phys = self:GetPhysicsObject()
	phys:Wake()
end

function ENT:Use( ply )

	if ply:Armor() > armorboxamount - 1 then
		DarkRP.notify(ply, 1, 5, "")
	elseif ply:Armor() < armorboxamount then
		ply:SetArmor(armorboxamount)
		DarkRP.notify(ply, 2, 5, armorboxamount.."%")
	end

end

Check if ply:Team() == TEAM_POLICE in the use function

How to do that would more and the mayor could take?

This does not work:

if ply:Team() == TEAM_POLICE or ply:Team() == TEAM_MAYOR then