There are three tiers, and they scale with what you are willing to spend.
Free and adequate: the built-in capture options plus OBS Studio, which is free, open source, and now the standard for this kind of work. Set it to record the Garry's Mod window and you are done.
Free and built in: Steam's own recording and broadcast features cover short clips without any extra software.
Paid and better: Fraps was the long-time favourite at around thirty dollars, and Bandicam occupies similar ground. Both give you cleaner output and lower overhead than a general capture tool.
Skip the suggestion to torrent Fraps. Cracked capture software is a common malware vector, it will not receive updates, and OBS does the same job for nothing.