Replicating movement from client to server in flight demo

Hello,
I have been trying to figure out how to make the client pawn from the flight demo (the spaceship thing) replicate it’s movement to the server.
I know that it doesnt because the client can see the server movements but the server sees the client as if it was moving in a straight line.

The only modification I made to the demo were adding shooting and making the conrols like in battlefield’s jets (you cant yaw only pitch and roll.

Help would be very appreciated.