Unturned Server Commands: Full List, Commands.dat and How to Enable Cheats

Unturned server commands are typed in the server console, in chat with a / or @ in front, or saved one per line in your server’s Commands.dat file. Some set up the server (map, name, password), some moderate it (kick, ban, admin), and some are cheat commands that only work once Cheats is enabled. Below is every command, grouped by what you’d use it for, plus exactly how to enable cheats on a dedicated or LAN server.

How Unturned commands work

Every command can be used in one of three places, and the command list below shows which ones it supports. Config commands go in Commands.dat and apply when the server starts. Runtime commands only work while the server is up. Commands marked “any” work in both places. Cheat commands are runtime commands that also need cheats turned on.

  • Server console: type the command as-is, for example Save.
  • In-game chat: admins only, with / or @ in front, for example /kick Bob/griefing.
  • Commands.dat: one command per line in ...\U3DS\Servers\<ServerID>\Server\Commands.dat. Lines starting with // are comments.

Separate parameters with a forward slash: /give Bob/[item ID]/2. Commands aren’t case-sensitive. Type Help in the console for the full list, or Help <command> for one. On Unturned server hosting, the panel console takes the same commands.

How to enable cheats on an Unturned server

To enable cheats on an Unturned server, add a line that just says Cheats to Commands.dat, make yourself an admin, and restart. Cheats only work for admins. On a single-player world you’re always admin. On any server, including a LAN server, it’s these three steps:

  1. Stop the server and open Server\Commands.dat.
  2. Add these lines (use your own 17-digit steamID64):
    Cheats
    Owner 76561198000000000
  3. Start the server, join, and test it with /give [item ID] in chat.

Other ways to get admin: run Admin <SteamID or name> in the console while you’re online, or add your ID to Adminlist.dat. Without Cheats, admins can still kick, ban and teleport, but Give, Vehicle, Experience and the other cheat commands are refused.

Server setup commands (Commands.dat)

These configure the server at startup. Put them in Commands.dat.

Command What it does Default
Name [text] Server name in the list (5 to 50 characters) Unturned
Map [level] Map to load at startup PEI
MaxPlayers [number] Player cap, 1 to 200 8
Password [text] Password to join. It’s stored as a SHA-1 hash, so don’t reuse a password from anywhere else none
Mode [Easy | Normal | Hard] Difficulty Normal
PvE Turns off player-vs-player damage off (PvP on)
Perspective [First | Third | Both | Vehicle] Camera options for players Both
Cheats Lets admins use cheat commands off
Owner [SteamID] Sets the server owner (full admin) none
Port [number] First of two ports; the next one is used too 27015
Bind [IP] Binds to one internal IP 0.0.0.0
GSLT [token] Game Server Login Token for Internet listing none
Whitelisted Only permitted players can join off
Hide_Admins Hides admin labels from players off
Filter Filters out players with non-English, non-alphanumeric names off
Gold Only Gold members can join off
Sync Players share savedata between your servers off
GameMode [class name] Sets a custom game mode class none

Commands that work in Commands.dat or at runtime

Command What it does Default
Welcome [text]/[R]/[G]/[B] Welcome message shown on connect none
Cycle [seconds] Length of the day/night cycle 3600
Chatrate [seconds] Cooldown between chat messages (0 to 60) 0.25
Timeout [ms] Ping limit before a player is kicked (50 to 10000) 750
Queue_Size [number] Queued connections to hold (0 to 64) none
Loadout [SkillsetID]/[ItemID]/… Items given on spawn for a skillset; 255 means every skillset none
Votify [Y/N]/[pass cooldown]/[fail cooldown]/[duration]/[percent]/[players] Sets up player voting (off by default) off
Log [chat]/[join-leave]/[death]/[anticheat] What goes into the console log, each Y or N N/N/N/N

Loadout is the vanilla way to give players a starting kit. “OP kits” servers usually go further, with a kits plugin on top of Rocket or OpenMod.

Admin and moderation commands

These run while the server is up, from the console or from chat as an admin. None of them need cheats.

Command What it does
Admin [SteamID | player] Makes a player an admin
Unadmin [SteamID | player] Removes admin rights
Admins Lists admins in the console
Kick [SteamID | player]/[reason] Disconnects a player
Ban [SteamID | player]/[reason]/[seconds] Bans a player; with no duration, it’s 31,536,000 seconds (365 days)
Unban [SteamID] Lifts a ban
Bans Lists bans
Slay [SteamID | player]/[reason] Kills a player, then bans them (365 days by default)
Kill [SteamID | player] Kills a player in game
Permit [SteamID]/[tag] / Unpermit [SteamID] Adds to or removes from the whitelist
Permits Lists whitelisted players
Players Lists who’s online
Say [text]/[R]/[G]/[B] Broadcasts a chat message (green by default)
Teleport [player]/[player | location | wp | bed] Teleports a player to another player, a location, a waypoint or a bed
Spy [SteamID | player] Requests a screenshot from a player (saved as Spy.jpg)
Day / Night / Time [seconds] Sets the time of day
Weather [None | Disable | Storm | Blizzard | GUID] Controls the weather
Airdrop Forces an airdrop now
Save Saves the server state (use it often: there’s no built-in autosave)
Shutdown [delay]/[explanation] Saves, disconnects everyone and closes the server
Debug Prints the server’s state to the console
Modules Lists loaded modules (useful to check Rocket or OpenMod loaded)
ResetConfig Resets the config file to defaults
Help [command] Lists commands, or explains one

Cheat commands

These need Cheats in Commands.dat and admin rights. If you leave out the player, the command applies to you.

Command What it does
Give [player]/[item ID or name]/[amount] Gives an item (1 if no amount)
Vehicle [player]/[vehicle ID or name] Spawns a vehicle in front of the player
Animal [player]/[animal ID] Spawns an animal
Experience [player]/[amount] Gives experience points
Reputation [player]/[amount] Gives reputation
Quest [player]/[quest] Gives a quest flag
Flag [player]/[flag]/[value] Sets a player flag
UnlockNpcAchievement [player]/[achievement ID] Grants an eligible achievement

A complete Commands.dat example

A ready-to-use list for a private PvE server with friends. Copy it, change the name, owner and password, and restart:

// Basic setup
Name Weekend Survivors
Map Washington
MaxPlayers 16
Password pick-something
Mode Normal
PvE
Perspective Both

// Admin and cheats
Owner 76561198000000000
Cheats

// Quality of life
Welcome Welcome in. Be nice, build big./255/200/0
Cycle 3600
Chatrate 1

For maps from the Workshop, login tokens and making the server public, see the Unturned dedicated server guide.

When a command doesn’t work

Symptom Fix
Chat command does nothing You’re not admin. Add Owner or run Admin <you> in the console
Give or Vehicle refused Cheats missing from Commands.dat; add it and restart
Commands.dat changes ignored Server was running when you edited, or the file is in the wrong server folder; check the ServerID
Multi-part command misreads Separate parameters with /, not spaces

Skip the console: let the copilot run the commands

If you’d rather not keep a console window open, Unturned server hosting on GameTeam gives you a 24/7 server with the AI copilot built in. You pay per GB of RAM with unlimited slots, from $0.49/GB a week on Budget or $1.99/GB billed monthly. Tell it “turn on cheats, make me owner and give everyone a starter kit when they spawn” and it edits Commands.dat, adds the Loadout line and restarts the server. Or ask “ban the player who just joined for a week” and it runs the Ban command for you. It can also run Save before any restart, so nothing gets lost along the way.

FAQ

How do I use commands on an Unturned server?

Type them in the server console, or in chat with / or @ in front if you’re an admin. Setup commands go in Commands.dat, one per line.

How do I enable cheats in an Unturned LAN server?

Same as any server: add Cheats and Owner <your steamID64> to Commands.dat and restart.

Where is the Commands.dat file?

In ...\U3DS\Servers\<ServerID>\Server\Commands.dat. The simple setup uses the Default server folder.

What is the max players command in Unturned?

MaxPlayers [number]. The default is 8 and the maximum is 200.

How do I make someone admin?

Run Admin <SteamID or name> in the console, or add their ID to Adminlist.dat. Owner in Commands.dat sets the server owner.

How long is a ban by default?

365 days (31,536,000 seconds) when you don’t give a duration. Add the time in seconds as the third parameter for a shorter ban.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *