After tracing I found out that the client calls functions pitch(); and yaw(); to change the aim, but I could not find a server-sided function which is called when a client adjusts their aim.
There is another function called called "getMouseAdjustAmount()" but it appears to be client sided.
Does anyone know a server-sided function to check if someone changed their aim?
