NMRiH console commands
The 95 settings and 41 commands server owners use, with defaults and examples to copy.
136 commands
- 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
- sv_mutators
Lists the mutators the server always runs, separated by commas. Empty by default.
Default (empty)
Difficulty and rulesets
- 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
- 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
- sv_respawn_allowed
Lets dead players respawn. Off on classic and nightmare, on in casual.
Default 0 (Off)
Respawns and tokens
- sv_zombie_health
Sets the maximum health of zombies. 500 on classic and casual, 1000 on nightmare.
Default 500
Zombies
- 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
- 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
- changelevel
Changes to another map and keeps players connected.
Command
Maps and Workshop
- workshop_download
Downloads a Steam Workshop map by its ID and adds it to the server's map list.
Command
Maps and Workshop
- sv_ban_items
Bans items from the game by entity name, separated by commas. Empty by default.
Default (empty)
Players and items
- respawndeadplayers
Respawns only the players who are dead.
Command
Round control
- sv_vote_issue_kick_allowed
Lets players call votes to kick a player. Off by default.
Default 0 (Off)
Admin and voting
- kickid
Kicks a player by userid or Steam ID, with an optional message they see.
Command
Admin and voting
- 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
- sv_cheats
Allows cheat commands such as noclip, god and give on the server. Off by default.
Default 0 (Off)
Cheats
- ruleset_reset
Puts every ruleset setting back to the ruleset's own values and clears the modified status.
Command
Difficulty and rulesets
- ruleset_validate
Checks whether the current ruleset has been changed and prints every altered setting.
Command
Difficulty and rulesets
- 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
- sv_challenge
Turns on Challenge mode, the speedrun mode with a run timer. Off by default.
Default 0 (Off)
Difficulty and rulesets
- sv_realism_allow_respawn
Allows respawning when realism mode is on. Off by default.
Default 0 (Off)
Difficulty and rulesets
- mp_timelimit
Sets the map time limit in minutes. 0 means no limit.
Default 0
Rounds and game rules
- sv_deathnotice
Shows a kill feed: 0 off, 1 on, 2 players only. Off by default.
Default 0 (Off)
Rounds and game rules
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- sv_resetscore
Resets every player's score when the round restarts. Off by default.
Default 0 (Off)
Rounds and game rules
- sv_resupplytime
Survival: sets the length of the resupply wave in seconds. 60 by default.
Default 60
Rounds and game rules
- sv_wave_begin_grace
Survival: sets how many seconds pass before the wave system starts. 30 by default.
Default 30
Rounds and game rules
- endround
Ends the current round.
Command
Round control
- extendmap
Adds minutes to the map time limit for this map.
Command
Round control
- extractallplayers
Extracts every living player at once.
Command
Round control
- extractplayer
Extracts one player, as if they reached the extraction zone.
Command
Round control
- freezeallplayers
Freezes every player in place.
Command
Round control
- respawnallplayers
Respawns all players. Add -force to respawn living players too.
Command
Round control
- respawnplayer
Respawns one dead player. Add -force to respawn them even if they are alive.
Command
Round control
- restartround
Restarts the current round.
Command
Round control
- unfreezeallplayers
Lets frozen players move again.
Command
Round control
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- sv_respawn_with_weapon
Gives respawning players a weapon. Off on classic and nightmare, on in casual.
Default 0 (Off)
Respawns and tokens
- sv_respawn_without_tokens
Lets players respawn without a token, after the longer wait. On by default.
Default 1 (On)
Respawns and tokens
- sv_spawn_grace
Sets the spawn grace time in seconds. 180 on classic and nightmare, -1 in casual.
Default 180
Respawns and tokens
- 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
- 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
- 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
- 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
- sv_brainstem
Turns on the zombie brainstem hitbox. Off on classic and casual, on in nightmare.
Default 0 (Off)
Zombies
- 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
- 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
- sv_infectionlength
Sets how many seconds an infection takes to kill a player. 120 by default. Needs sv_cheats 1.
Default 120
Zombies
- 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
- 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
- sv_ban_items_on_supplies
Applies the sv_ban_items list to supply crates too. On by default.
Default 1 (On)
Players and items
- 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
- 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
- sv_health_display
Lets players see health values. On in classic and casual, off on nightmare.
Default 1 (On)
Players and items
- sv_idle_autokick_enabled
Kicks idle players automatically. On by default.
Default 1 (On)
Players and items
- sv_idle_autokick_time
Sets how many seconds a player can be idle before being kicked. 120 by default.
Default 120
Players and items
- 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
- 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
- sv_shove_multi
Lets a shove hit several zombies right in front of the player. Off by default.
Default 0 (Off)
Players and items
- changelevel_next
Changes to the next map in the map cycle right away.
Command
Maps and Workshop
- map
Loads a map from scratch. Players are dropped and have to reconnect, so changelevel is usually better.
Command
Maps and Workshop
- 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
- maps
Lists the maps on the server whose names match a filter. Use * for all of them.
Command
Maps and Workshop
- 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
- 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
- sv_execmapcfg
Runs cfg/<mapname>.cfg when that map loads. On by default.
Default 1 (On)
Maps and Workshop
- sv_workshop_autoupdate
Updates Workshop maps automatically at every level change. Off by default.
Default 0 (Off)
Maps and Workshop
- workshop_download_collection
Downloads every map in a Steam Workshop collection.
Command
Maps and Workshop
- workshop_list
Prints the Workshop maps installed on the server.
Command
Maps and Workshop
- workshop_update
Updates all installed Workshop maps to their latest version.
Command
Maps and Workshop
- exec
Runs a config file from nmrih/cfg, line by line, as if typed in the console.
Command
Server and network
- hide_server
Keeps the server out of the Steam server list. Off by default.
Default 0 (Off)
Server and network
- hostname
Sets the server name players see in the server browser and on the scoreboard.
Default (empty)
Server and network
- hostport
The port the game server listens on. 27015 by default.
Default 27015
Server and network
- log
Turns server logging on or off. Logs record kills, chat, connections and admin actions.
Command
Server and network
- 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
- 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
- rcon_password
Sets the password for remote console (RCON) access to the server.
Default (empty)
Server and network
- say
Sends a chat message to every player from the server console.
Command
Server and network
- status
Prints the server name, map, player count and every player with their userid, Steam ID, ping and IP.
Command
Server and network
- 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
- sv_alltalk
Lets every player hear every other player's voice chat, whatever their team. Off by default.
Default 0 (Off)
Server and network
- sv_downloadurl
Sets a web address players download missing custom files from, instead of the slow in-game transfer.
Default (empty)
Server and network
- sv_gamedesc_override
Replaces the game description shown in the server browser. Empty by default.
Default (empty)
Server and network
- 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
- 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
- sv_maxrate
Caps the bandwidth, in bytes per second, the server sends each player. 0 means no cap.
Default 0
Server and network
- sv_maxupdaterate
Caps how many updates per second the server sends each player. 66 by default.
Default 66
Server and network
- sv_password
Sets the password players must enter to join. Empty means anyone with the address can join.
Default (empty)
Server and network
- 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
- 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
- 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
- sv_tags
Sets comma-separated tags shown with the server in the server browser. Empty by default.
Default (empty)
Server and network
- 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
- sv_voiceenable
Turns voice chat on or off for the whole server. On by default.
Default 1 (On)
Server and network
- sv_voicesubtitles
Shows voice commands as chat lines, such as (Voice) Player: Need ammo! On by default.
Default 1 (On)
Server and network
- tv_autorecord
Records every map as a SourceTV demo automatically. Off by default; needs tv_enable 1.
Default 0 (Off)
Server and network
- 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
- tv_record
Starts recording a SourceTV demo to a .dem file. SourceTV must be running.
Command
Server and network
- tv_stoprecord
Stops the SourceTV demo being recorded and closes the file.
Command
Server and network
- addip
Bans an IP address for a number of minutes, 0 for permanent.
Command
Admin and voting
- kick
Removes a player from the server by name.
Command
Admin and voting
- listid
Lists the Steam ID bans in memory, with their slot numbers.
Command
Admin and voting
- removeid
Lifts a ban by Steam ID, or by its slot number in the listid list.
Command
Admin and voting
- sv_allow_votes
Turns player voting on or off. On by default.
Default 1 (On)
Admin and voting
- 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
- 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
- sv_vote_creation_timer
Sets how many seconds a player waits before calling another vote. 150 by default.
Default 150
Admin and voting
- sv_vote_issue_changedifficulty_allowed
Lets players call votes to change the difficulty. Off by default.
Default 0 (Off)
Admin and voting
- sv_vote_issue_changelevel_allowed
Lets players call votes to change the map. On by default.
Default 1 (On)
Admin and voting
- sv_vote_issue_nextlevel_allowed
Lets players call votes to choose the next map. On by default.
Default 1 (On)
Admin and voting
- sv_vote_issue_restart_game_allowed
Lets players call votes to restart the round. On by default.
Default 1 (On)
Admin and voting
- 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
- 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
- sv_vote_timer_duration
Sets how many seconds players have to vote. 15 by default.
Default 15
Admin and voting
- writeid
Saves the permanent Steam ID bans to nmrih/cfg/banned_user.cfg.
Command
Admin and voting
- writeip
Saves the permanent IP bans to nmrih/cfg/banned_ip.cfg.
Command
Admin and voting
- give
Gives you an item or weapon by its entity name, for example item_pills. Needs sv_cheats 1.
Command
Cheats
- god
Makes you take no damage. Type it again to turn it off. Needs sv_cheats 1.
Command
Cheats
- noclip
Lets you fly through walls. Type it again to turn it off. Needs sv_cheats 1.
Command
Cheats
- notarget
Makes zombies ignore you. Type it again to turn it off. Needs sv_cheats 1.
Command
Cheats
- sv_infinite_ammo
Gives everyone unlimited ammo. Off by default. Needs sv_cheats 1.
Default 0 (Off)
Cheats
Nothing matches.
Try part of the name, like freeze or money, or a word from what it does.
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.