• Console commands with variables?
    3 replies, posted
When I work with console command, they are single execuatables. How do I add a variables to be read at the end? Examples: 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" ?
Sorry, you need to Log In to post a reply to this thread.