SACRAMENTO >> At 1:57:02 a.m. April 3, surveillance cameras at 10th and K streets caught a crowd of 70 to 80 people gathering on the northeast corner of the intersection.

Eight seconds later, the crowd began to run. Some drove away in cars. A hot dog vendor ran away from their cart.

But Smiley Martin, his brother Dandrae and Joshua Hoye-Lucchesi stayed. They stood near Sharif Jewelers as a man dressed in black and standing next to Smiley Martin pointed north toward two other men: Mtula Payton and DeVazia Turner.

In less than three minutes, the shooting in downtown Sacramento began, with Smiley Martin reportedly firing 28 rounds from a fully automatic Glock 19 handgun and others returning fire until more than 100 shell casings littered the streets and 18 people were shot — six of them dead including Hoye-Lucchesi and Turner. Twelve others, including Smiley Martin, were wounded.

This description of how one of the largest shootouts in Sacramento history unfolded is contained in newly filed Sacramento Superior Court documents, which are based on homicide detectives scouring numerous video files and studying the events second by second as they search for the five people they say were involved in the gang battle.

The documents, filed Friday afternoon by Sacramento County District Attorney Anne Marie Schubert’s office, are largely focused on Smiley Martin, a recent parolee officials say they will charge with being a felon in possession of a handgun and of carrying a machine gun — the Glock with aftermarket auto sear — that night.

Martin is recovering at a Sacramento hospital. Deputy District Attorney Brad Ng filed the documents in a bid to see that Martin does not win his release on bail once he is booked into the Sacramento County Main Jail, where his brother Dandrae, 26, is being held on a weapons charge.

The court documents outline the gang affiliations attributed to five men at the scene that night, including the three who were killed, and provide a glimpse at how police came to decide the incident resulted from a gang dispute involving five shooters.

Besides Turner and Hoye-Lucchesi, the four others killed in the melee were Sergio Harris, 38; Johntaya Alexander, 21; Yamile “Yami” Martinez-Andrade, 21; and Melinda Davis, 57.

The documents do not reveal the precise nature of the dispute, but note that three men — the Martin brothers and Hoye-Lucchesi — were seen together on an Instagram video posted hours before the shooting several miles away on Traction Avenue in Old North Sacramento.

The three were seen posing with two black handguns, one equipped with a high-capacity magazine, as well as a rifle, the documents say.

“In the video, filmed while the three men were in north Sacramento (territory claimed by the Del Paso Heights Bloods), both Joshua Hoye and defendant Smiley Martin discuss going to downtown Sacramento while armed to loiter outside nightclubs, display gang hand signs to the camera, point firearms at the camera, openly and repeatedly state their allegiance to the Garden Blocc Crips (“GBC”) and boast about shooting rival gang members,” the 13-page document says.

The document identifies Smiley Martin, 27, and Hoye-Lucchesi, 32, of Salinas, as validated members of the Garden Blocc Crip, a gang that includes the 29th Street Crips.