跳至主要内容
RustStats PRO
控制台命令

Rust 控制台,已索引

在游戏中按F1打开控制台。以下内容按实际使用方式分组,管理员专用命令已标记——这些命令需要服务器上的ownerid或moderatorid,在非您拥有的服务器上执行将无效。

谁可以运行
搜索

显示 70 / 70 条命令.

任意玩家

Client & Graphics

11 条命令

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

graphics.quality

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

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

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

streamermode <0|1>

Hides player names, Steam IDs and the server name so your stream does not leak identifying information.

复制streamermode 1

bind

bind <key> <command>

Binds a keyboard or mouse key to any console command or input action.

复制bind f1 consoletoggle

grass.displacement

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

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

audio.master <0.0-1.0>

Sets the master output volume for all game audio.

复制audio.master 0.4

censornudity

censornudity <true|false>

Censors character nudity on your client, which is useful for streaming and recording.

复制censornudity true

gfx.ssaa

gfx.ssaa <true|false>

Enables supersampled anti-aliasing, which sharpens distant edges at a large GPU cost.

复制gfx.ssaa false

任意玩家

Chat & Info

8 条命令

chat.say

chat.say "<message>"

Sends a message to server chat without opening the chat window.

复制chat.say "trading scrap at outpost"

combatlog

combatlog [count]

Prints your most recent combat events with attacker, weapon, distance and damage for each hit.

复制combatlog 20

combatlog_outgoing

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

seed

Prints the procedural world seed of the server you are connected to.

status

status

Lists every connected player with their Steam ID, ping and connection time.

find

find <text>

Searches every registered command and convar for the given text and prints the matches with their current values.

复制find weather

players

players

Prints a detailed player table including health, position and connection quality.

playerlist

playerlist

Prints a compact list of the players currently online and their Steam IDs.

任意玩家

Debug & Performance

7 条命令

perf

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

ping

Prints your current round-trip latency to the server in milliseconds.

version

version

Prints the build and protocol version of the client and of the server you are on.

benchmark

benchmark

Runs the built-in benchmark sequence and reports an average framerate score when it finishes.

kill

kill

Kills your own character immediately, which is the fastest way to respawn when stuck.

client.disconnect

client.disconnect

Disconnects you from the current server and returns you to the main menu.

net.visualizedebugging

net.visualizedebugging <true|false>

Draws networking debug gizmos in the world so you can see entity replication and interpolation.

复制net.visualizedebugging true

仅管理员

Giving Items

5 条命令

inventory.give

管理员

inventory.give <item shortname> <amount>

Gives yourself the specified quantity of an item by its shortname.

复制inventory.give rifle.ak 1

inventory.giveto

管理员

inventory.giveto <player> <item shortname> <amount>

Gives an item to a named online player instead of yourself.

复制inventory.giveto Sam wood 1000

inventory.giveid

管理员

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

管理员

inventory.giveall <item shortname> <amount>

Gives the specified item to every player currently online.

复制inventory.giveall scrap 100

inventory.givearm

管理员

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

仅管理员

Teleporting

6 条命令

teleport

管理员

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

管理员

teleport2me <player>

Brings the named player to your current position.

复制teleport2me Sam

teleport2grid

管理员

teleport2grid <grid> [player]

Teleports you, or an optionally named player, to the centre of a map grid square.

复制teleport2grid H14

teleportlos

管理员

teleportlos

Teleports you to the first surface in your line of sight, which is handy for crossing terrain quickly.

teleportpos

管理员

teleportpos <x> <y> <z>

Teleports you to exact world coordinates.

复制teleportpos 1200 25 -430

teleporteveryone

管理员

teleporteveryone

Teleports every online player to your current position.

仅管理员

Spawning

6 条命令

spawn

管理员

spawn <prefab shortname>

Spawns an entity by its short prefab name at the point you are looking at.

复制spawn bear

entity.create

管理员

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

管理员

heli.call [player]

Calls in a patrol helicopter, targeting the named player when one is supplied.

复制heli.call

supply.call

管理员

supply.call

Calls a cargo plane that drops a supply crate at your position.

bradley.call

管理员

bradley.call

Spawns a Bradley APC on its patrol route at the Launch Site.

spawn.fillpopulation

管理员

spawn.fillpopulation

Immediately repopulates the world with animals, nodes and other spawn populations up to their configured targets.

仅管理员

Player Administration

13 条命令

kick

管理员

kick <player> [reason]

Disconnects a connected player from the server with an optional reason shown to them.

复制kick "Sam" "afk in safe zone"

ban

管理员

ban <player> [reason] [duration]

Bans a currently connected player by name, optionally for a limited duration.

复制ban "Sam" "cheating" 7d

banid

管理员

banid <steamid> [name] [reason]

Bans a player by Steam ID, which works even while they are offline.

复制banid 76561198012345678 "Sam" "cheating"

unban

管理员

unban <steamid>

Removes a Steam ID from the ban list.

复制unban 76561198012345678

banlistex

管理员

banlistex

Prints the full ban list including each ban reason and expiry time.

god

管理员

god <true|false>

Toggles invulnerability for yourself so no damage source can hurt you.

复制god true

noclip

管理员

noclip

Toggles free-fly movement that passes through terrain and buildings.

ownerid

管理员

ownerid <steamid> "<name>" "<reason>"

Grants a Steam ID full owner-level admin rights on the server.

复制ownerid 76561198012345678 "Sam" "head admin"

moderatorid

管理员

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

管理员

removeowner <steamid>

Revokes owner-level admin rights from a Steam ID.

复制removeowner 76561198012345678

removemoderator

管理员

removemoderator <steamid>

Revokes moderator rights from a Steam ID.

复制removemoderator 76561198012345678

mute

管理员

mute <player|steamid>

Silences a player so their voice and chat are hidden from everyone on the server.

复制mute 76561198012345678

unmute

管理员

unmute <player|steamid>

Restores voice and chat for a previously muted player.

复制unmute 76561198012345678

仅管理员

Server Control

14 条命令

serverinfo

管理员

serverinfo

Prints live server statistics including player count, framerate, memory use and uptime.

save

管理员

save

Forces an immediate world save so recent building and loot changes survive a restart.

server.writecfg

管理员

server.writecfg

Writes the current convar values plus the user and ban lists to disk.

restart

管理员

restart [seconds]

Starts a broadcast countdown and then restarts the server, saving on the way down.

复制restart 300

quit

管理员

quit

Shuts the server down immediately with no countdown.

env.time

管理员

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

管理员

admintime <-1-24>

Overrides the time of day for your client only, with -1 restoring the real server time.

复制admintime 12

weather.rain

管理员

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

管理员

weather.fog <0.0-1.0>

Forces fog density from clear to fully fogged.

复制weather.fog 0

weather.wind

管理员

weather.wind <0.0-1.0>

Forces wind strength, which affects trees, cloth and wind turbine output.

复制weather.wind 0.5

server.hostname

管理员

server.hostname "<name>"

Sets the server name shown in the in-game server browser.

复制server.hostname "RustStats 2x Solo/Duo"

server.description

管理员

server.description "<text>"

Sets the long description shown on the server browser detail page.

复制server.description "Weekly wipe, no BPs"

server.maxplayers

管理员

server.maxplayers <number>

Sets the maximum number of players allowed on the server at once.

复制server.maxplayers 150

say

管理员

say "<message>"

Broadcasts a message to every player as the SERVER account.

复制say "wipe in 10 minutes"

最终说明

此页面反映玩家实际使用的命令。权威列表始终是游戏本身:在控制台中输入 find <text> 它会打印当前构建注册的所有命令和变量及其当前值。如果此处与 find不一致,请以 find 为准——Facepunch 会在每月更新中重命名和调整变量。