The Soviets provided China with Mi-4 blueprints just a few years before the Sino-Soviet split in 1958; maiden flight was in 1958 and mass production started in the mid-1960s.
A few Z-5 helicopters were modified to carry machine-guns and rocket pods.
[1] During the Chinese-Western rapprochement, one Z-5 was refitted with a Pratt & Whitney Canada PT6T-6 "Twin Pac" turbo-shaft engine in 1979.
Data from Chinese Aircraft[12]General characteristics Performance
Related development Aircraft of comparable role, configuration, and era