Justin Martin will be doing his singing behind bars for a while.
The "High School Musical 3" star has been sentenced to 18 months in the house of correction after pleading guilty to multiple charges on Tuesday, the Suffolk County, Massachusetts district attorney's office told TheWrap on Tuesday.
Martin pleaded guilty to assault with a dangerous weapon, unlawful possession of a firearm, unlawful possession of ammunition, carrying a loaded firearm, and discharging a firearm within 500 feet of a building.
In addition to the 18-month sentence, Martin will be subjected to one year of probation, during which must remain drug- and alcohol-free and stay away from the location of his offense.
RELATED: See photos of Zac Efron through the years:
The actor was arrested in July 2015 after an alleged shootout with police. Police said that officers were patrolling in the Dorchester neighborhood of Boston when they heard gunfire erupt and observed Martin running down the street with a gun in his hand.
Police pursued the actor after he pointed the gun at them. At the time a second suspect began to fire multiple shots at the officers.
Martin was fired upon but not struck, police said. After taking the actor to the ground, they recovered a loaded .22-caliber handgun.
A second suspect, described as a juvenile male, approached the police while carrying a loaded .25-caliber handgun, and was subdued and taken into custody.
The district attorney's office had recommended a sentence of three years in state prison followed by three years of probation.
Read original story 'High School Musical 3' Star Justin Martin Sentenced to 18 Months Following Police Shootout At TheWrap