A peace officer who is a visiting school resource officer in a public school must be licensed as provided by this chapter.