Lead chloride is used as a precursor material in the fabrication of methyl ammonium lead iodide-chloride .