How to get the player towards direction?

As the title say, I want to get what axis the player is facing towards. What I am referring is not the direction (east,west,north,south), but if the player is moving along the X/Z axis in the positive/negative direction (so specifically the value where it says “Towards xxx”

Dont believe that is exposed on the server end, however its easy to calculate.

Listen to the MoveEvent and then compare the new location to the old location.