Here z=internal parameter and this is different for different compound. Some compound's "z" is given on materials project but this "z" position is not match with research paper.
What will be the value of z for Hexagonal crystal structure?
That is element-dependent. You can either enter it manually or check if your particular compound is listed in the Cambridge database CCDC: https://www.ccdc.cam.ac.uk/structures/