How to use the autoexec.cfg file (FPS COMMANDS???)

  • Looking for our server(s)? Go to our servers page after you've subscribed to our content pack. Hope you enjoy them!
  • You can purchase Premium Membership to enhance your game experience and support our community!
  • Meet other members and stay updated in our Discord and Steam Group. Find out how to get permissions on Discord here.


MRP Senior Administrator
MRP Senior Administrator
Forum Moderator
Report Management
Marketing Team
Event Team
MRP Recruitment Team
Jul 7, 2018
College Station, TX

If you edit the config.cfg or use the ingame console directly, the settings will only stay until you close the game. However, the autoexec.cfg file is used to automatically execute console commands at startup rather than you typing them into console every time you run the game, this is extremely useful for using binds or fps configs made by other people.

You don't need to close Garry's Mod to do this guide. (See step 5)

How to use the autoexec.cfg file
  1. Hit the following keys at the same time
    • WIN
    • R
  2. This dialog window should appear
    If it does, type C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\cfg and hit enter
  3. The file explorer should open up
    7893If the file explorer doesn't pop up, click this spoiler:
    Go to your steam library and right click gmod and select properties
    Switch to the local files tab and select browse local files
    Select the garrysmod folder
    Then select the cfg folder
  4. Open the autoexec.cfg file with notepad and paste any commands you want to automatically execute here.
  5. if you changed your autoexec.cfg and you do not want to restart the game, type into console exec autoexec.cfg

  • Commands are separated by new lines, which you can make by hitting enter.
  • Any text (even inline text) that starts with // are ignored by gmod.
  • All the console commands can be found here.
  • The FPS config that I personally use is this one.
  • If you want to separate it into another file instead of using the autoexec.cfg, you can always make a new config file and add to your launch options +exec "myfile.cfg" (Credit: @DevulTj ).
Last edited: