Issues with server-client logic

If I had to assume, they have the map loaded somewhere on the server either far away from the player, or the client hides it, and that’s how they handle raycasting imo.