Glad to be of help. Practically all municipalities in the US have zoning and code laws and do employ zoning and code enforcement officers. Zoning is typically enforced because zoning is very closely tied to insurance regulations, but code enforcement is very subjective, especially in smaller communities because there nepotism runs rampant; as you note all the gossipy ratting on each other. Code enforcement officers usually have regular employment and do their code violation inspections as a side job, whereas code officers aren't compensated very well so payola is the norm.