Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Well, you can, but you need to do complicated things like writing your own config file, but I don't know how to do that.
This toggles sv_cheats 0 to 1 then to 0
Here is the one you want :
(Code taken from TF2 wiki ( https://wiki.teamfortress.com/wiki/Scripting )
and thats it
bind p unbindall
The above code works, but when I went into the scripting link provided, I found that this was a little difficult to take apart and understand, seeing how there's an actual "toggle" command listed in that link that's different from the "toggle" alias being defined here. Here's a slightly different version:
The first line binds the q key to the toggle_menu command to be implemented. The second line sets the initial execution of the toggle_menu command to execute the menu_on command. The third and fourth lines basically modify the toggle_menu command to switch back and forth between the menu_on and menu_off commands, and then the menu is shown or hidden based on which of those two commands is active at the time.
Also, to make this work without having to enter it into the console each time you startup Gmod, you can put those lines into the autoexec.cfg file, found in the Steam/steamapps/common/GarrysMod/garrysmod/cfg directory.
This was one of the first things that popped up on Google when I was searching for how to do this, so I replied mainly to help others. If people get all up in arms about necro, maybe they shouldn't reply and just let it die? :)
i been trying to toggle leaning