This article shall not apply to state or building officials, fire inspectors, fire marshals, building inspectors, or insurance inspectors when acting in their official capacities.