Skip to content
/SLASHPLAY

NMRiH console commands

The 95 settings and 41 commands server owners use, with defaults and examples to copy.

136 commands

  1. sv_difficulty

    Picks the difficulty ruleset: classic (the default), casual or nightmare, or the name of your own ruleset file.

    Default classic

    Difficulty and rulesets

  2. sv_mutators

    Lists the mutators the server always runs, separated by commas. Empty by default.

    Default (empty)

    Difficulty and rulesets

  3. sv_realism

    Realism mode: headshots kill zombies at once and hits anywhere else do no damage. Off by default.

    Default 0 (Off)

    Difficulty and rulesets

  4. mp_friendlyfire

    Lets survivors hurt each other. Off by default; the damage dealt is scaled by sv_friendly_fire_factor.

    Default 0 (Off)

    Rounds and game rules

  5. sv_respawn_allowed

    Lets dead players respawn. Off on classic and nightmare, on in casual.

    Default 0 (Off)

    Respawns and tokens

  6. sv_zombie_health

    Sets the maximum health of zombies. 500 on classic and casual, 1000 on nightmare.

    Default 500

    Zombies

  7. ov_runner_chance

    Sets the chance that each spawned zombie is a runner, from 0 to 1. 0.075 on every stock difficulty.

    Default 0.075

    Zombies

  8. sv_spawn_density

    Multiplies the zombie count in spawn zones that have no set maximum. 1 on classic and casual, 1.5 on nightmare.

    Default 1

    Zombies

  9. changelevel

    Changes to another map and keeps players connected.

    Command

    Maps and Workshop

  10. workshop_download

    Downloads a Steam Workshop map by its ID and adds it to the server's map list.

    Command

    Maps and Workshop

  11. sv_ban_items

    Bans items from the game by entity name, separated by commas. Empty by default.

    Default (empty)

    Players and items

  12. respawndeadplayers

    Respawns only the players who are dead.

    Command

    Round control

  13. sv_vote_issue_kick_allowed

    Lets players call votes to kick a player. Off by default.

    Default 0 (Off)

    Admin and voting

  14. kickid

    Kicks a player by userid or Steam ID, with an optional message they see.

    Command

    Admin and voting

  15. banid

    Bans a player by userid or Steam ID for a number of minutes, 0 for permanent. Add kick to remove them now.

    Command

    Admin and voting

  16. sv_cheats

    Allows cheat commands such as noclip, god and give on the server. Off by default.

    Default 0 (Off)

    Cheats

  17. ruleset_reset

    Puts every ruleset setting back to the ruleset's own values and clears the modified status.

    Command

    Difficulty and rulesets

  18. ruleset_validate

    Checks whether the current ruleset has been changed and prints every altered setting.

    Command

    Difficulty and rulesets

  19. sv_allow_custom_balance

    Allows custom weapon scripts. Off by default; the server is flagged as modded when it is on.

    Default 0 (Off)

    Difficulty and rulesets

  20. sv_challenge

    Turns on Challenge mode, the speedrun mode with a run timer. Off by default.

    Default 0 (Off)

    Difficulty and rulesets

  21. sv_realism_allow_respawn

    Allows respawning when realism mode is on. Off by default.

    Default 0 (Off)

    Difficulty and rulesets

  22. mp_timelimit

    Sets the map time limit in minutes. 0 means no limit.

    Default 0

    Rounds and game rules

  23. sv_deathnotice

    Shows a kill feed: 0 off, 1 on, 2 players only. Off by default.

    Default 0 (Off)

    Rounds and game rules

  24. sv_friendly_fire_factor

    Sets the share of damage friendly fire does, from 0 to 1. Classic and casual use 0.1, nightmare 0.5.

    Default 0.1

    Rounds and game rules

  25. sv_friendly_fire_ignore_infected

    Stops the forced friendly fire against infected players, so infected teammates can't be shot while friendly fire is off. Off by default.

    Default 0 (Off)

    Rounds and game rules

  26. sv_killpenalty

    Makes players lose score when they kill a healthy teammate. On by default; set 0 for PvP scoring.

    Default 1 (On)

    Rounds and game rules

  27. sv_level_transition

    Allows level transitions on maps built for them, where reaching the exit takes the group to the next map. On by default.

    Default 1 (On)

    Rounds and game rules

  28. sv_level_transition_time_limit

    Sets how many seconds the others get once the first player reaches a level transition. 60 by default; -1 turns it off.

    Default 60

    Rounds and game rules

  29. sv_nextlevel_on_round_win

    Goes to the next map after a won round instead of restarting the same map. Off by default.

    Default 0 (Off)

    Rounds and game rules

  30. sv_postround_time

    Sets how many seconds pass after a round is won or lost before it resets. 10 by default.

    Default 10

    Rounds and game rules

  31. sv_preround_freezetime

    Sets how many seconds players are frozen at the start of each round. 5 by default.

    Default 5

    Rounds and game rules

  32. sv_resetscore

    Resets every player's score when the round restarts. Off by default.

    Default 0 (Off)

    Rounds and game rules

  33. sv_resupplytime

    Survival: sets the length of the resupply wave in seconds. 60 by default.

    Default 60

    Rounds and game rules

  34. sv_wave_begin_grace

    Survival: sets how many seconds pass before the wave system starts. 30 by default.

    Default 30

    Rounds and game rules

  35. endround

    Ends the current round.

    Command

    Round control

  36. extendmap

    Adds minutes to the map time limit for this map.

    Command

    Round control

  37. extractallplayers

    Extracts every living player at once.

    Command

    Round control

  38. extractplayer

    Extracts one player, as if they reached the extraction zone.

    Command

    Round control

  39. freezeallplayers

    Freezes every player in place.

    Command

    Round control

  40. respawnallplayers

    Respawns all players. Add -force to respawn living players too.

    Command

    Round control

  41. respawnplayer

    Respawns one dead player. Add -force to respawn them even if they are alive.

    Command

    Round control

  42. restartround

    Restarts the current round.

    Command

    Round control

  43. unfreezeallplayers

    Lets frozen players move again.

    Command

    Round control

  44. sv_respawn_initial_token_count_survival

    Sets how many respawn tokens players start with on Survival maps. 0 on classic and nightmare, 3 in casual.

    Default 0

    Respawns and tokens

  45. sv_respawn_kills_per_token_objective

    Sets how many kills earn a respawn token on Objective maps. 0 on classic and nightmare, 10 in casual.

    Default 0

    Respawns and tokens

  46. sv_respawn_kills_per_token_survival

    Sets how many kills earn a respawn token on Survival maps. 40 on classic and nightmare, 10 in casual.

    Default 40

    Respawns and tokens

  47. sv_respawn_nearby_allowed

    Lets players respawn near their living teammates. Off on classic and nightmare, on in casual.

    Default 0 (Off)

    Respawns and tokens

  48. sv_respawn_time_notoken

    Sets how many seconds a dead player waits to respawn without a token. 30 by default.

    Default 30

    Respawns and tokens

  49. sv_respawn_time_token

    Sets how many seconds a dead player waits to respawn with a token. 5 by default.

    Default 5

    Respawns and tokens

  50. sv_respawn_token_objective

    Turns respawn tokens on for Objective maps. Off on classic and nightmare, on in casual.

    Default 0 (Off)

    Respawns and tokens

  51. sv_respawn_token_survival

    Turns respawn tokens on for Survival maps. On in classic and casual, off on nightmare.

    Default 1 (On)

    Respawns and tokens

  52. sv_respawn_with_weapon

    Gives respawning players a weapon. Off on classic and nightmare, on in casual.

    Default 0 (Off)

    Respawns and tokens

  53. sv_respawn_without_tokens

    Lets players respawn without a token, after the longer wait. On by default.

    Default 1 (On)

    Respawns and tokens

  54. sv_spawn_grace

    Sets the spawn grace time in seconds. 180 on classic and nightmare, -1 in casual.

    Default 180

    Respawns and tokens

  55. sv_wave_heal_amount

    Survival: heals players by this much at the start of each new wave. 0 on classic and nightmare, 40 in casual.

    Default 0

    Respawns and tokens

  56. ov_despawn_ignore_population

    With 1, zombies nobody can see always despawn. 0 by default: zones you visited keep their full count.

    Default 0 (Off)

    Zombies

  57. ov_max_zombie_count

    Sets the most zombies a map can have alive at once. 85 by default. Needs sv_cheats 1.

    Default 85

    Zombies

  58. ov_runner_kid_chance

    Sets the chance that a spawned runner is a kid zombie, from 0 to 1. 0.5 on every stock difficulty.

    Default 0.5

    Zombies

  59. sv_brainstem

    Turns on the zombie brainstem hitbox. Off on classic and casual, on in nightmare.

    Default 0 (Off)

    Zombies

  60. sv_infect_chance_modifier

    Modifier in the formula for how likely a zombie hit infects. 0.975 on classic and casual, 0.14 on nightmare.

    Default 0.975

    Zombies

  61. sv_infection_bypass

    Damage at or above this keeps an infected player from turning when they die. 0 by default, so they always turn.

    Default 0

    Zombies

  62. sv_infectionlength

    Sets how many seconds an infection takes to kill a player. 120 by default. Needs sv_cheats 1.

    Default 120

    Zombies

  63. sv_spawn_regen_target

    Dead zombies are replaced to keep this share of a spawn zone's zombies alive over two minutes. 0.6 by default.

    Default 0.6

    Zombies

  64. inv_ammoweight

    Sets how much each ammo box weighs in the inventory. 5 by default. Needs sv_cheats 1 outside a ruleset.

    Default 5

    Players and items

  65. sv_ban_items_on_supplies

    Applies the sv_ban_items list to supply crates too. On by default.

    Default 1 (On)

    Players and items

  66. sv_barricade_show_damage

    Darkens barricade boards as they take damage; the value is how dark at 0 health, from 0 to 1. 0 by default.

    Default 0

    Players and items

  67. sv_bullet_bypass_player

    Makes bullets pass through teammates. Off by default; no effect with friendly fire on or on infected players.

    Default 0 (Off)

    Players and items

  68. sv_health_display

    Lets players see health values. On in classic and casual, off on nightmare.

    Default 1 (On)

    Players and items

  69. sv_idle_autokick_enabled

    Kicks idle players automatically. On by default.

    Default 1 (On)

    Players and items

  70. sv_idle_autokick_time

    Sets how many seconds a player can be idle before being kicked. 120 by default.

    Default 120

    Players and items

  71. sv_kill_player_on_disconnect

    Kills a player who disconnects, so they drop their items before leaving. On by default.

    Default 1 (On)

    Players and items

  72. sv_rare_weapon_chance

    Sets the chance that item boxes contain a rare weapon such as the chainsaw, from 0 to 1. 0.05 by default.

    Default 0.05

    Players and items

  73. sv_shove_multi

    Lets a shove hit several zombies right in front of the player. Off by default.

    Default 0 (Off)

    Players and items

  74. changelevel_next

    Changes to the next map in the map cycle right away.

    Command

    Maps and Workshop

  75. map

    Loads a map from scratch. Players are dropped and have to reconnect, so changelevel is usually better.

    Command

    Maps and Workshop

  76. mapcyclefile

    Names the map cycle file in nmrih/cfg. mapcycle.txt by default, with mapcycle_default.txt as the fallback.

    Default mapcycle.txt

    Maps and Workshop

  77. maps

    Lists the maps on the server whose names match a filter. Use * for all of them.

    Command

    Maps and Workshop

  78. mp_chattime

    Sets how many seconds players can chat on the scoreboard after a map ends, before the next map loads. 10 by default.

    Default 10

    Maps and Workshop

  79. nextlevel

    Sets the map the server goes to at the next map change, instead of the next one in the cycle. Empty by default.

    Default (empty)

    Maps and Workshop

  80. sv_execmapcfg

    Runs cfg/<mapname>.cfg when that map loads. On by default.

    Default 1 (On)

    Maps and Workshop

  81. sv_workshop_autoupdate

    Updates Workshop maps automatically at every level change. Off by default.

    Default 0 (Off)

    Maps and Workshop

  82. workshop_download_collection

    Downloads every map in a Steam Workshop collection.

    Command

    Maps and Workshop

  83. workshop_list

    Prints the Workshop maps installed on the server.

    Command

    Maps and Workshop

  84. workshop_update

    Updates all installed Workshop maps to their latest version.

    Command

    Maps and Workshop

  85. exec

    Runs a config file from nmrih/cfg, line by line, as if typed in the console.

    Command

    Server and network

  86. hide_server

    Keeps the server out of the Steam server list. Off by default.

    Default 0 (Off)

    Server and network

  87. hostname

    Sets the server name players see in the server browser and on the scoreboard.

    Default (empty)

    Server and network

  88. hostport

    The port the game server listens on. 27015 by default.

    Default 27015

    Server and network

  89. log

    Turns server logging on or off. Logs record kills, chat, connections and admin actions.

    Command

    Server and network

  90. maxplayers

    Shows the player limit. A new value only works before a map is running, so it is set on the launch line.

    Command

    Server and network

  91. motdfile

    Sets which file the message of the day shown to joining players is loaded from. motd.txt by default.

    Default motd.txt

    Server and network

  92. rcon_password

    Sets the password for remote console (RCON) access to the server.

    Default (empty)

    Server and network

  93. say

    Sends a chat message to every player from the server console.

    Command

    Server and network

  94. status

    Prints the server name, map, player count and every player with their userid, Steam ID, ping and IP.

    Command

    Server and network

  95. sv_allowdownload

    Lets players download missing files such as custom maps and sounds straight from the server. On by default.

    Default 1 (On)

    Server and network

  96. sv_alltalk

    Lets every player hear every other player's voice chat, whatever their team. Off by default.

    Default 0 (Off)

    Server and network

  97. sv_downloadurl

    Sets a web address players download missing custom files from, instead of the slow in-game transfer.

    Default (empty)

    Server and network

  98. sv_gamedesc_override

    Replaces the game description shown in the server browser. Empty by default.

    Default (empty)

    Server and network

  99. sv_lan

    Makes it a LAN-only server: no Steam authentication and only local-network players can join. 0 by default.

    Default 0 (Off)

    Server and network

  100. sv_logfile

    Writes the server log to files in the logs folder when logging is on. On by default.

    Default 1 (On)

    Server and network

  101. sv_maxrate

    Caps the bandwidth, in bytes per second, the server sends each player. 0 means no cap.

    Default 0

    Server and network

  102. sv_maxupdaterate

    Caps how many updates per second the server sends each player. 66 by default.

    Default 66

    Server and network

  103. sv_password

    Sets the password players must enter to join. Empty means anyone with the address can join.

    Default (empty)

    Server and network

  104. sv_pure

    Controls which custom files players may use, from -1 (no rules) to 2 (only the game's own files).

    Command

    Server and network

  105. sv_region

    Sets the region the server reports to the Steam server browser. -1 means the whole world.

    Default -1 (World (the default))

    Server and network

  106. sv_setsteamaccount

    Logs the server in with a Steam game server login token (GSLT) so it keeps the same Steam ID.

    Command

    Server and network

  107. sv_tags

    Sets comma-separated tags shown with the server in the server browser. Empty by default.

    Default (empty)

    Server and network

  108. sv_timeout

    Sets how many seconds the server waits without hearing from a player before dropping them. 65 by default.

    Default 65

    Server and network

  109. sv_voiceenable

    Turns voice chat on or off for the whole server. On by default.

    Default 1 (On)

    Server and network

  110. sv_voicesubtitles

    Shows voice commands as chat lines, such as (Voice) Player: Need ammo! On by default.

    Default 1 (On)

    Server and network

  111. tv_autorecord

    Records every map as a SourceTV demo automatically. Off by default; needs tv_enable 1.

    Default 0 (Off)

    Server and network

  112. tv_enable

    Turns on SourceTV, the server's built-in spectator and demo recorder. Off by default; starts at the next map.

    Default 0 (Off)

    Server and network

  113. tv_record

    Starts recording a SourceTV demo to a .dem file. SourceTV must be running.

    Command

    Server and network

  114. tv_stoprecord

    Stops the SourceTV demo being recorded and closes the file.

    Command

    Server and network

  115. addip

    Bans an IP address for a number of minutes, 0 for permanent.

    Command

    Admin and voting

  116. kick

    Removes a player from the server by name.

    Command

    Admin and voting

  117. listid

    Lists the Steam ID bans in memory, with their slot numbers.

    Command

    Admin and voting

  118. removeid

    Lifts a ban by Steam ID, or by its slot number in the listid list.

    Command

    Admin and voting

  119. sv_allow_votes

    Turns player voting on or off. On by default.

    Default 1 (On)

    Admin and voting

  120. sv_rcon_banpenalty

    Sets how many minutes an address is banned after too many failed RCON logins. 0 means a permanent ban.

    Default 0

    Admin and voting

  121. sv_rcon_maxfailures

    Sets how many failed RCON logins an address gets in total before it is banned. 10 by default, 1 to 20.

    Default 10

    Admin and voting

  122. sv_vote_creation_timer

    Sets how many seconds a player waits before calling another vote. 150 by default.

    Default 150

    Admin and voting

  123. sv_vote_issue_changedifficulty_allowed

    Lets players call votes to change the difficulty. Off by default.

    Default 0 (Off)

    Admin and voting

  124. sv_vote_issue_changelevel_allowed

    Lets players call votes to change the map. On by default.

    Default 1 (On)

    Admin and voting

  125. sv_vote_issue_nextlevel_allowed

    Lets players call votes to choose the next map. On by default.

    Default 1 (On)

    Admin and voting

  126. sv_vote_issue_restart_game_allowed

    Lets players call votes to restart the round. On by default.

    Default 1 (On)

    Admin and voting

  127. sv_vote_kick_ban_duration

    Sets how many minutes a vote-kicked player is banned. 10 by default; 0 turns the ban off.

    Default 10

    Admin and voting

  128. sv_vote_quorum_ratio

    Sets the share of eligible players who must vote yes for a vote to pass. 0.6 by default, 0.1 to 1.

    Default 0.6

    Admin and voting

  129. sv_vote_timer_duration

    Sets how many seconds players have to vote. 15 by default.

    Default 15

    Admin and voting

  130. writeid

    Saves the permanent Steam ID bans to nmrih/cfg/banned_user.cfg.

    Command

    Admin and voting

  131. writeip

    Saves the permanent IP bans to nmrih/cfg/banned_ip.cfg.

    Command

    Admin and voting

  132. give

    Gives you an item or weapon by its entity name, for example item_pills. Needs sv_cheats 1.

    Command

    Cheats

  133. god

    Makes you take no damage. Type it again to turn it off. Needs sv_cheats 1.

    Command

    Cheats

  134. noclip

    Lets you fly through walls. Type it again to turn it off. Needs sv_cheats 1.

    Command

    Cheats

  135. notarget

    Makes zombies ignore you. Type it again to turn it off. Needs sv_cheats 1.

    Command

    Cheats

  136. sv_infinite_ammo

    Gives everyone unlimited ammo. Off by default. Needs sv_cheats 1.

    Default 0 (Off)

    Cheats

Questions

How do I run NMRiH commands on my server?

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to nmrih/cfg/server.cfg.

How do I keep a setting after a restart?

Settings typed in the console last until the server restarts. Put them in nmrih/cfg/server.cfg, one per line, and they apply every time the server starts.

Where does this list come from?

SLASHPLAY wrote it from the help output of a fresh No More Room in Hell dedicated server, its shipped rulesets, the official NMRiH wiki and the developers' update notes: the settings and commands server owners use, with the game's own defaults.

Try them on
your own server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.