Confers resistance to heavy metal ions (e.g. cadmium (CdCl(2)) and copper (CuCl(2))) by chelating them at the plasma membrane of root cells, thus stopping their entry and reducing their accumulation. Belongs to the CYSTM1 family.