The mound of weed was found stuffed in garbage bags and five-gallon buckets after cops raided the Tascott St. apartment in Brownsville about 2:45 p.m., police said.
Cops also scooped up a 9-mm. pistol and several rounds of ammunition in the bust, police said.
Investigators applied for the search warrant soon after one of the tenants — Franze Williams, 32 — was shot in the building about 11:45 p.m., police said.
Williams was rushed to Brookdale University Hospital, where he was treated for a gunshot wound to his stomach, authorities said.
As the detectives probed the scene, they spotted traces of what appeared to be marijuana in Williams’ apartment, sources said.
After they found the stash, cops collared three others that were in the pad at the time of the shooting, the sources said.
Williams and the three others — Michelle Maxwell, 44; Melissa Garvey, 25; and Mario Anthony, 38 — were booked on a slew of charges that include drug and weapons possession, police said.
Cops were still probing whether the shooting was a result of a deal gone bad, sources said. The gunman was still at large Friday night.