SAN DIEGO — An hours-long SWAT standoff that caused Friday morning road closures in Carlsbad has ended.

A man with armed with a hand gun was reportedly experiencing a mental health crisis inside his vehicle on the 2700 block of Loker Avenue West, near Palomar Airport Road, the Carlsbad Police Department confirmed.

The situation initially started around 7:15 p.m. Thursday following reports of an individual in distress in an office building parking lot on Loker Avenue West, according to police.

Authorities say the man activated the vehicle’s emergency communication system — similar to  OnStar — Thursday evening.

Carlsbad police told FOX 5 it was challenging to communicate with the man through the third-party OnStar system due to a language barrier.

Police temporarily closed Loker Avenue West from Palomar Airport Road to El Fuerte Street while officers responded to the situation. Crisis negotiators were also called to the scene and police say someone who speaks the man’s language also assisted throughout the standoff.

Businesses on Loker Avenue West from Palomar Airport Road to 2762 Loker Avenue West were also temporarily closed “out of an abundance of caution,” police said.

Those arriving to work in the area where seen being turned away by authorities. It appeared public transportation was also been affected. A BREEZE bus was seen at a standstill around 7 a.m.

Authorities say there no current threat to public and the SWAT standoff “has been resolved peacefully.”

All roads in the area have have since reopened.

FOX 5’s Elizabeth Alvarez contributed to this report.