STOCKTON (CBS13) — A student at Franklin High School in Stockton was found with a loaded gun in his jacket while on campus Wednesday, officials said.

Shortly after noon, the student was caught vaping in class and was sent to the principal’s office, according to the Stockton Unified School District Police Officer’s Association.

READ MORE: Stagg High Stabbing Suspect Anthony Gray Ordered To Undergo Mental Evaluation

When the student became uncooperative, the school resource officer was called in to assist with a search of the student. The student removed his jacket and handed it over to a campus security monitor, who noticed a heavy object inside one of the pockets, officials said.

READ MORE: Boosted Californians Getting COVID At Twice The Rate Of Those Vaccinated But Not Boosted

The school resource officer then searched the jacket and retrieved a loaded handgun. A spare, loaded magazine was reportedly also found in the student’s backpack.

MORE NEWS: Applications Now Open For $10K Grants For Sacramento Artists

The student was arrested and booked into juvenile hall, officials said.