So much for “Hakuna Matata.”

A former puppet worker for Broadway’s “The Lion King” plans to sue the city for costing him a “lucrative” deal with Disney when cops busted him for allegedly making a 3-D printed gun, The Post has learned.

Prop maker Ilya Vett, 48, claims he was the victim of false arrest last year over the “black plastic object” that a co-worker saw him printing inside the Minkskoff Theatre.

The Brooklyn resident says he told cops that the gun he was making would be “completely non-functioning,” and a detective acknowledged it was merely “a prop of a firearm,” according to a notice of claim filed with the city Comptroller’s Office last month.

Vett’s Sept. 21, 2018, arrest came amid controversy over plans by gun-rights activist Cody Wilson to post online instructions for making unregulated, 3-D printed handguns.

Manhattan prosecutors dropped the case against Vett in March and sealed the record, the filing says.

“The police knew that what our client had was a prop, it couldn’t fire and therefore as a matter of law is not a firearm,” Vett lawyer Henry Bell said.

“As soon as they knew that, they shouldn’t have gone any further with any sort of investigation. The fact that they did is sort of shocking and sort of also inexplicable.”

The NYPD declined to comment on Vett’s filing, but noted that “often times the operability of a ‘ghost gun’ cannot be determined without a ballistics examination.”