A man in possession with a stolen handgun was arrested in South Sacramento Monday night after ShotSpotter technology lead officers to the area for gunfire, police officials said.

Officers responded to the 3100 block of 33rd Avenue after the department's ShotSpotter detected gun shots. According to police, when officers arrived, they located 22-year-old Eric Perez-Alvarez and one other man sitting in a truck in the backyard of a house.

After searching the two men, police said Perez-Alvarez was in possession of loaded handgun. There were three other handguns in the truck, one of which was stolen.

Perez-ALvarez was arrested and booked into the Sacramento County Jail for negligent discharge of a fire arm, possession of stolen property and possession of a controlled substance.

The Sacramento Police Department credited the arrest to the ShotSpotter technology, which has had its effectiveness questioned during the holiday weekend because of fireworks.