In the Space-Time diagram (in the rest frame) we often take the Space axis as the horizontal axis and the time axis as the axis perpendicular to it as in the given figure.

While there are other models to graphically represent space-time, my question is:
What function $f(x,y,z)$ on a $3$ dimensional surface can we define such that no two distinct points $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ shall have the same value?
i.e $f(x_1,y_1,z_1)=f(x_2,y_2,z_2)$ if and only if $x_1=x_2$, $y_1=y_2$ and $z_1=z_2$.
That way every point in the $X$ axis of the figure will represent a unique point in $3$-$D$ space.