graphics.fov
graphics.fov <60-90>
Sets the camera field of view in degrees, where higher values show more of the world at the cost of apparent zoom.
复制graphics.fov 90
在游戏中按F1打开控制台。以下内容按实际使用方式分组,管理员专用命令已标记——这些命令需要服务器上的ownerid或moderatorid,在非您拥有的服务器上执行将无效。
显示 70 / 70 条命令.
11 条命令
graphics.fov <60-90>
Sets the camera field of view in degrees, where higher values show more of the world at the cost of apparent zoom.
复制graphics.fov 90
graphics.quality <0-5>
Applies an overall graphics quality preset, with 0 being the fastest and 5 the most detailed.
复制graphics.quality 2
fps.limit <number>
Caps the client framerate to the given value, which smooths frame pacing and reduces heat on capable machines.
复制fps.limit 144
gc.buffer <64-4096>
Sets how many megabytes the garbage collector may buffer before running, where larger values trade RAM for fewer stutters.
复制gc.buffer 2048
streamermode <0|1>
Hides player names, Steam IDs and the server name so your stream does not leak identifying information.
复制streamermode 1
bind <key> <command>
Binds a keyboard or mouse key to any console command or input action.
复制bind f1 consoletoggle
grass.displacement <true|false>
Toggles grass bending away from players and vehicles, which looks better but costs a few frames.
复制grass.displacement false
water.quality <0-3>
Controls water reflection and refraction detail, where 0 is a flat cheap surface and 3 is full quality.
复制water.quality 0
audio.master <0.0-1.0>
Sets the master output volume for all game audio.
复制audio.master 0.4
censornudity <true|false>
Censors character nudity on your client, which is useful for streaming and recording.
复制censornudity true
gfx.ssaa <true|false>
Enables supersampled anti-aliasing, which sharpens distant edges at a large GPU cost.
复制gfx.ssaa false
8 条命令
chat.say "<message>"
Sends a message to server chat without opening the chat window.
复制chat.say "trading scrap at outpost"
combatlog [count]
Prints your most recent combat events with attacker, weapon, distance and damage for each hit.
复制combatlog 20
combatlog_outgoing [count]
Prints only the combat events where you were the attacker, which is the quickest way to confirm your own hits.
复制combatlog_outgoing 10
seed
Prints the procedural world seed of the server you are connected to.
status
Lists every connected player with their Steam ID, ping and connection time.
find <text>
Searches every registered command and convar for the given text and prints the matches with their current values.
复制find weather
players
Prints a detailed player table including health, position and connection quality.
playerlist
Prints a compact list of the players currently online and their Steam IDs.
7 条命令
perf <0-6>
Controls the on-screen performance overlay across levels 1-6, where 0 hides it, 1 shows FPS, 2 adds memory and garbage-collection stats, 3 adds network ping and latency, 4 adds task and thread timings, 5 adds a detailed frame and entity breakdown, and 6 shows the full debug readout.
复制perf 2
ping
Prints your current round-trip latency to the server in milliseconds.
version
Prints the build and protocol version of the client and of the server you are on.
benchmark
Runs the built-in benchmark sequence and reports an average framerate score when it finishes.
kill
Kills your own character immediately, which is the fastest way to respawn when stuck.
client.disconnect
Disconnects you from the current server and returns you to the main menu.
net.visualizedebugging <true|false>
Draws networking debug gizmos in the world so you can see entity replication and interpolation.
复制net.visualizedebugging true
5 条命令
inventory.give <item shortname> <amount>
Gives yourself the specified quantity of an item by its shortname.
复制inventory.give rifle.ak 1
inventory.giveto <player> <item shortname> <amount>
Gives an item to a named online player instead of yourself.
复制inventory.giveto Sam wood 1000
inventory.giveid <steamid> <item id> <amount>
Gives an item to a player by Steam ID using the numeric item ID rather than the shortname.
复制inventory.giveid 76561198012345678 -151838493 1
inventory.giveall <item shortname> <amount>
Gives the specified item to every player currently online.
复制inventory.giveall scrap 100
inventory.givearm <item shortname> <amount>
Gives yourself an item placed directly into your belt slots rather than the main inventory.
复制inventory.givearm syringe.medical 6
6 条命令
teleport <player> [target player]
Teleports you to a player, or teleports the first named player to the second one when two names are given.
复制teleport "Sam" "Alex"
teleport2me <player>
Brings the named player to your current position.
复制teleport2me Sam
teleport2grid <grid> [player]
Teleports you, or an optionally named player, to the centre of a map grid square.
复制teleport2grid H14
teleportlos
Teleports you to the first surface in your line of sight, which is handy for crossing terrain quickly.
teleportpos <x> <y> <z>
Teleports you to exact world coordinates.
复制teleportpos 1200 25 -430
teleporteveryone
Teleports every online player to your current position.
6 条命令
spawn <prefab shortname>
Spawns an entity by its short prefab name at the point you are looking at.
复制spawn bear
entity.create <full prefab path>
Creates an entity from its full prefab path, which reaches prefabs that the short spawn name cannot.
复制entity.create assets/prefabs/deployable/locker/locker.deployed.prefab
heli.call [player]
Calls in a patrol helicopter, targeting the named player when one is supplied.
复制heli.call
supply.call
Calls a cargo plane that drops a supply crate at your position.
bradley.call
Spawns a Bradley APC on its patrol route at the Launch Site.
spawn.fillpopulation
Immediately repopulates the world with animals, nodes and other spawn populations up to their configured targets.
13 条命令
kick <player> [reason]
Disconnects a connected player from the server with an optional reason shown to them.
复制kick "Sam" "afk in safe zone"
ban <player> [reason] [duration]
Bans a currently connected player by name, optionally for a limited duration.
复制ban "Sam" "cheating" 7d
banid <steamid> [name] [reason]
Bans a player by Steam ID, which works even while they are offline.
复制banid 76561198012345678 "Sam" "cheating"
unban <steamid>
Removes a Steam ID from the ban list.
复制unban 76561198012345678
banlistex
Prints the full ban list including each ban reason and expiry time.
god <true|false>
Toggles invulnerability for yourself so no damage source can hurt you.
复制god true
noclip
Toggles free-fly movement that passes through terrain and buildings.
ownerid <steamid> "<name>" "<reason>"
Grants a Steam ID full owner-level admin rights on the server.
复制ownerid 76561198012345678 "Sam" "head admin"
moderatorid <steamid> "<name>" "<reason>"
Grants a Steam ID moderator rights, which allow most admin commands but not server configuration.
复制moderatorid 76561198012345678 "Alex" "weekend mod"
removeowner <steamid>
Revokes owner-level admin rights from a Steam ID.
复制removeowner 76561198012345678
removemoderator <steamid>
Revokes moderator rights from a Steam ID.
复制removemoderator 76561198012345678
mute <player|steamid>
Silences a player so their voice and chat are hidden from everyone on the server.
复制mute 76561198012345678
unmute <player|steamid>
Restores voice and chat for a previously muted player.
复制unmute 76561198012345678
14 条命令
serverinfo
Prints live server statistics including player count, framerate, memory use and uptime.
save
Forces an immediate world save so recent building and loot changes survive a restart.
server.writecfg
Writes the current convar values plus the user and ban lists to disk.
restart [seconds]
Starts a broadcast countdown and then restarts the server, saving on the way down.
复制restart 300
quit
Shuts the server down immediately with no countdown.
env.time <0-24>
Sets the in-game time of day for everyone on the server, where 12 is noon and 0 is midnight.
复制env.time 12
admintime <-1-24>
Overrides the time of day for your client only, with -1 restoring the real server time.
复制admintime 12
weather.rain <0.0-1.0>
Forces rainfall intensity, where 0 clears the sky and 1 is a full downpour.
复制weather.rain 1
weather.fog <0.0-1.0>
Forces fog density from clear to fully fogged.
复制weather.fog 0
weather.wind <0.0-1.0>
Forces wind strength, which affects trees, cloth and wind turbine output.
复制weather.wind 0.5
server.hostname "<name>"
Sets the server name shown in the in-game server browser.
复制server.hostname "RustStats 2x Solo/Duo"
server.description "<text>"
Sets the long description shown on the server browser detail page.
复制server.description "Weekly wipe, no BPs"
server.maxplayers <number>
Sets the maximum number of players allowed on the server at once.
复制server.maxplayers 150
say "<message>"
Broadcasts a message to every player as the SERVER account.
复制say "wipe in 10 minutes"
此页面反映玩家实际使用的命令。权威列表始终是游戏本身:在控制台中输入 find <text> 它会打印当前构建注册的所有命令和变量及其当前值。如果此处与 find不一致,请以 find 为准——Facepunch 会在每月更新中重命名和调整变量。