Default keybind is set to Numpad 5. This can be changed in the settings.
Fabric API is required.
This mod is 100% client-side. It only affects rendering the players.
Available for 1.19+ Fabric
Screenshots:
Players hidden:

Players shown:

How to Install Hide The Players (Mod)
Hide The Players by CTAK_CO6AK is verified for Fabric across Minecraft versions 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2 (latest release: 1.0.0, file size: 8 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Hide The Players file into your Minecraft
.minecraft/modsfolder and launch the game.