According to a release from Lee County Sheriff's Office, the SRO and school administrators got an anonymous tip about 18-year-old Pierce Cole Love.
Investigators found the gun in Love's car, which was parked on school grounds. Lee County Sheriff's Office also said Love was also carrying a pocket knife.
Love is charged with possessing a firearm on school grounds, possessing a weapon on school grounds and marijuana posession.
Lee County Sheriff's Office said no threats of violence were made and no students were in danger.