Getting "No SteamUser" error on Garry's Mod

Open task manager (cntrl + alt + delete) or search for it via the start menu. Look for the Steam process, select it, and then click "End process". After that open Steam/Gmod again and you should not get this error.