To be clear, It is the Hat mod, not server command GUI that is causing lag. You have a custom function with a syntax error set to a looping keybind most likely. You can also tell because the console spam from it stops abruptly, probably at whatever point you let go of the key.