(a) A peace officer, law enforcement officer, or school resource officer may not issue a citation to a child who is alleged to have committed a school offense.
(b) This subchapter does not prohibit a child from being taken into custody under § 52.01, Family Code.