GetDarkVar for job

Hello i’d like to make an if like : if the job of the player is Citizen for example then …

That’s my code :
function ENT:DoColorstuff(ent)
if ent ~= self.GrenadeOwner then
ent:SetModelScale(0.25, 1)
ent:SetColor(Color(0, 255, 0))
if ent:IsPlayer() then
ent:Spectate(OBS_MODE_CHASE)
ent:SpectateEntity(self.GrenadeOwner)
print(ent:GetName()…“capturé par”…self.GrenadeOwner:GetName())
if ent:GetDarkRPVar(“job”) == Citizen then
–my code
else
timer.Simple(3, function()
ent:Remove()
end)
end
else

end
end

end

this line don’t work : if ent:GetDarkRPVar(“job”) == Citizen then

Did you try [lua]ent:Team() == TEAM_CITIZEN[/lua]
Also, for future reference, wrap code you post in [noparse][lua][/lua][/noparse] tags

Example: [noparse][lua]code here[/lua][/noparse]