Console commands with variables?

When I work with console command, they are single execuatables.
How do I add a variables to be read at the end?


teleport <playername>
spawn <npcname>

Make a cvar. This is covered in the basic tutorials found on the maurits gmod wiki.

You use third argument of the callback basically, which is a table containing everything users types after the command, separated by space.

Arent Cvars (ConVars) options for the gamemode, like “gm_shouldpaymoney” ?