LAKEWOOD - A Snapchat post showing a gun and money led to the arrest of a Brick man who police say has been charged with drug and weapons offenses, police said.

Taishaun Cosme, 24, posted a picture of a gun and money to his Snapchat social media account Thursday. Within hours, police were able to use Snapchat's geo-location function to locate Cosme in Lakewood, the Ocean County Prosecutor's Office announced in a news release.

Once police located Cosme, they pulled him over and searched his car, finding a .40-caliber semiautomatic handgun with several rounds of hollow-point bullets, a "significant amount of cocaine," a digital scale and "assorted paraphernalia indicative of drug distribution," according to the release.

Ocean County: Lakewood gets its first Orthodox Jewish cop; he joins a force girding against hate

[ A place to find home service providers. Find local pros. ]

“The apprehension of Taishaun Cosme is a prime example of what law enforcement agencies can accomplish when they work together. This was truly a collaborative effort by multiple departments to remove a dangerous drug dealer from the streets of Ocean County. We will continue to relentlessly pursue individuals that poison our communities with drugs and terrify our neighborhoods with guns,” Prosecutor Bradley Billhimer said in the statement.

Cosme is charged with possession of cocaine with intent to distribute, possession of drug paraphernalia, possession of a weapon while committing a controlled dangerous substance offense, unlawful possession of a weapon, possession of a prohibited weapon, cyber harassment and disorderly conduct, according to the release.

[ If you're not a subscriber already, become one today and don't forget to download our mobile app too. ]

Keith Schubert is the morning breaking news reporter. He can be contacted via text, call or signal at 732-239-8731 or emailed at kschubert@gannett.com. Follow him on Twitter at @keithsch94.