Command Line Parameters

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added -disableluarefresh)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  
= List of important Command Launch Parameters =
+
A full list of Source command-line options can be found [https://developer.valvesoftware.com/wiki/Command_Line_Options here].
  
This is a list of some important Command Line Parameters for Garry's Mod.
+
= Garry's Mod-Specific Commands =
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 11: Line 11:
 
|-
 
|-
 
| -noworkshop
 
| -noworkshop
|Disables workshop addon system in the game. Works on Dedicated servers as well as your client. Does not affect folder/legacy addons or directly loaded .gma files.
+
|Disables workshop addon system in the game. Works on Dedicated servers as well as your client. Does not affect folder/legacy addons or directly loaded .gma files
  
 
|-
 
|-
| -disableluarefresh
+
| -noaddons
|Disables [http://wiki.garrysmod.com/page/Auto_Refresh Auto Refresh]
+
|Disables folder/legacy addons
  
 
|-
 
|-
| -noaddons
+
| -disableluarefresh
|Disables folder/legacy addons. Introduced in the [http://www.garrysmod.com/2016/10/10/october-2016-update/ October 2016 update]
+
|Disables [[Auto Refresh]]
  
 
|-
 
|-
Line 26: Line 26:
  
 
|-
 
|-
| -dxlevel
+
| -nochromium
|Forces the game to start using specified DirectX API version. Officially supported values are: 90, 91, 95 (recommended) After starting the game with this launch parameter, the selected value will be saved for future start ups and video settings will be temporarily reset (but not saved), so it is highly recommended to remove this launch parameter after first launch with it.
+
|If on a Beta branch that runs Chromium, disables Chromium.
  
 
|-
 
|-
| -window
+
| -allowlocalhttp
|Forces the game to start in windowed mode regardless of the setting in the options
+
|
 +
Allows local IP links (192.168.x.x) to be used with the {{Lib|http}} functions. This only works on the server.
  
 
|-
 
|-
| -noborder
+
| -fullwindowsdump
|In combination with -window, hides the default OS window border, including drag bar and close buttons.
+
|{{NextUpdate}}
 +
Generates more detailed crash dumps on Windows.
  
 
|-
 
|-
| -w <number>
+
| -language
|Forces width of your game window. Used in combination with -h. Must be a valid screen resolution.
+
|
 
+
Overrides Steam's language setting for the primary game language, which controls captions and engine panels.
|-
+
| -h <number>
+
|Forces height of your game window. Used in combination with -w. Must be a valid screen resolution.
+
  
 
|-
 
|-
 
| style="width:180px;" | +<{{Type|ConVar}} name> <value>
 
| style="width:180px;" | +<{{Type|ConVar}} name> <value>
 
|Sets value of a console variable after the game is started.
 
|Sets value of a console variable after the game is started.
 
|-
 
| -tools
 
|Starts the game in tool mode, allowing use of [https://developer.valvesoftware.com/wiki/Particle_Editor Particle Editor] and similar [https://developer.valvesoftware.com/wiki/Engine_tools Engine Tools]
 
 
|-
 
| -condebug
 
|Puts all console output into a console.log file located in garrysmod/.
 
 
 
|}
 
|}
  

Latest revision as of 16:09, 21 January 2020

A full list of Source command-line options can be found here.

Garry's Mod-Specific Commands

Command Line Description
-noworkshop Disables workshop addon system in the game. Works on Dedicated servers as well as your client. Does not affect folder/legacy addons or directly loaded .gma files
-noaddons Disables folder/legacy addons
-disableluarefresh Disables Auto Refresh
-multirun Allows you to launch multiple instances of the game. You will not be able to connect to the same multiplayer server from both instances, unless the server has sv_lan set to 1.
Please note that the sv_lan 1 command must be set before the server is started or a changelevel is required.
-nochromium If on a Beta branch that runs Chromium, disables Chromium.
-allowlocalhttp

Allows local IP links (192.168.x.x) to be used with the http library functions. This only works on the server.

-fullwindowsdump
Next Update Change

This feature is only available in the next update.

Generates more detailed crash dumps on Windows.

-language

Overrides Steam's language setting for the primary game language, which controls captions and engine panels.

+<ConVar name> <value> Sets value of a console variable after the game is started.

Setting up Command Line Parameters in Steam

To set Command Line Parameters (Launch Options) in Steam for Garry's Mod:

  • Open your Steam Library and right click on Garry's Mod and click Properties

Right Click GMod.png

  • In the pop up window press Set Launch Options...
  • A new pop up window will appear, where you can enter your desired Launch Options, separated by space

Launch Parameters GMod.png

  • After you are done, press OK and then Close and you are done
Personal tools
Navigation