Unturned commands
Every command built into Unturned 3.26.3.14: 74 that work, with their syntax read from the game's own files, who can use each one and an example you can copy. Plugins such as RocketMod and OpenMod add their own commands, which aren't listed here.
- Cheats in singleplayer
- Becoming admin
- All commands
- Spawning items, vehicles and XP 5
- Teleporting and players 4
- Time, weather and airdrops 6
- Moderation 6
- Admins and the whitelist 6
- Running the server 8
- Server settings (Commands.dat) 22
- Server console only 4
- Map-making and testing 13
- In the game files but not working 3
- Commands.dat
How to type a command
- Open the chat (J for global chat by default) and start the line with
/(or@). Names are not case-sensitive. - Separate the parameters with a slash and no spaces:
/give Nelson/363/2. The command name ends at the first space. - A player is any part of their Steam or character name, or their 17-digit SteamID64. With commands that can target someone else, leaving the player out targets you.
- In the server console, type the same thing without the slash:
give Nelson/363. Most commands report back only in the console, so in chat a command that worked often shows nothing.
How to turn on cheats in singleplayer
- From the main menu go to Play, then Singleplayer, and pick the map.
- Tick Allow Cheatcodes, then press Play Offline. The game remembers the tick for next time.
- In game, open the chat and type a command, such as
/give 363or/experience 10000.
Only the spawning commands need cheats (the list). Teleporting, time, weather and/kill work in any singleplayer game, cheats or not. Server-only commands such as /ban do nothing offline.
How to become admin on your own server
- Find your SteamID64, the 17-digit number Steam shows on your Account details page.
- Open
Servers/<name>/Server/Commands.datin the server's folder (the server creates it, empty, on its first start) and add the lineOwner 76561198…with your number. - To use /give, /vehicle and the other spawning commands, add a line with just
Cheats. - Restart the server. You are now an admin every time you join.
To make someone else an admin, type admin and their name in the server console while they're online, or /admin in chat once you are one. On someone else's server only their admins can do that: no command makes you admin there.
All commands
| Give | This gives a player an item. | Admin + cheats | With cheats |
| Vehicle | This gives a player a vehicle. | Admin + cheats | With cheats |
| Experience | This gives a player some experience. | Admin + cheats | With cheats |
| Reputation | This gives a player some reputation. | Admin + cheats | With cheats |
| Animal | This gives a player an animal. | Admin + cheats | With cheats |
| Teleport | This teleports a player to either another player, or a location. | Admin | Yes |
| Kill | This kills the specified player in-game. | Admin | Yes |
| Players | This shows a list of the current players on the server. | Admin | No |
| Say | This broadcasts a message to all of the connected clients. | Admin | No |
| Time | This assigns the current time in seconds of the day-night cycle. | Admin | Yes |
| Day | This assigns the current time to day. | Admin | Yes |
| Night | This assigns the current time to night. | Admin | Yes |
| Cycle | This assigns the length of the day/night cycle in seconds. | Admin | Yes |
| Weather | This starts or stops the current weather cycle. | Admin | Yes |
| Airdrop | This forces a dropship to fly over and perform an airdrop. | Admin | Yes |
| Kick | This disconnects the specified player from the server. | Admin | No |
| Ban | This adds the specified player to the list of users not allowed to join the server. | Admin | No |
| Unban | This removes the specified player from the list of users not allowed to join the server. | Admin | No |
| Bans | This shows a list of the current bans. | Admin | No |
| Slay | This kills the specified player in-game and permanently bans them. | Admin | No |
| Spy | This requests a screenshot from the target player and saves it on the caller's computer as Spy.jpg. | Admin | Yes |
| Admin | This adds the specified player to the list of users allowed to use admin commands in the chat. | Admin | No |
| Unadmin | This removes the specified player from the list of users allowed to use admin commands in the chat. | Admin | No |
| Admins | This shows a list of the current admins. | Admin | No |
| Permit | This adds the specified player to the list of users allowed to join the server. | Admin | No |
| Unpermit | This removes the specified player from the list of users allowed to join the server. | Admin | No |
| Permits | This shows a list of the current players allowed to join the server. | Admin | No |
| Save | This forces a proper save of the server state. | Admin | Yes |
| Shutdown | This properly saves the server state, disconnects the clients and closes the program. | Admin | No |
| Help | This provides information on commands. | Admin | Yes |
| Debug | This provides information on the state of the server. | Admin | No |
| Modules | This shows a list of the loaded modules. | Admin | Yes |
| Log | This assigns the console log options. | Admin | No |
| Timeout | This assigns a maximum ping threshold to the server before a client is kicked. | Admin | No |
| LogMemoryUsage | Prints counts of loaded objects, textures, sounds and meshes. | Admin | Yes |
| Map | This sets the map that the server loads on startup. | Commands.dat | No |
| Port | This assigns the port of the server. Servers use two consecutive ports: the first for server list queries, and the second for in-game traffic. The first should be configured here, but both should be opened on the router. | Commands.dat | No |
| Bind | This binds a specific internal IP to the socket. | Commands.dat | No |
| Password | This assigns the codeword required for entry to the server. | Commands.dat | No |
| Name | This assigns the name of the server on the server list. | Admin | No |
| MaxPlayers | This sets the maximum number of connections the server is willing to accept. | Admin | No |
| Queue_Size | This sets the maximum number of queued connections the server is willing to hold on to. | Admin | No |
| Mode | This assigns the difficulty of the server. | Commands.dat | No |
| PvE | This disables player-versus-player combat, in favor of player-versus-environment combat. | Commands.dat | No |
| Perspective | This assigns the perspective of the server. | Commands.dat | No |
| Cheats | This allows the use of cheats like spawning items, vehicles and experience. | Commands.dat | No |
| Owner | This sets the owner of the server. | Commands.dat | No |
| Welcome | This sets a welcome message shown to clients once they connect. | Admin | No |
| GSLT | This sets the game server login token. | Commands.dat | No |
| Whitelisted | This makes only permitted players allowed to join the server. | Commands.dat | No |
| Hide_Admins | This hides the visibility of admin labels from players. | Commands.dat | No |
| Filter | This filters out players with non-English-alphanumeric names. | Commands.dat | No |
| Sync | This allows players to share savedata between your servers. | Commands.dat | No |
| Gold | This marks the server as joinable only by Gold members. | Commands.dat | No |
| Loadout | This gives players each item when spawning. Using a skillset ID of 255 gives the item to everyone. | Admin | Yes |
| Chatrate | This assigns a minimum time between chat messages. | Admin | No |
| Votify | This configures voting for the server. | Admin | No |
| CopyServerCode | Copies the server code to the clipboard. | Console | No |
| CopyFakeIP | Copies the server's Steam Fake IP address to the clipboard. | Console | No |
| ScheduledShutdownInfo | Shows when the scheduled shutdown will happen. | Console | No |
| LogTransportConnections | Lists each player's network connection and address. | Console | No |
| Reload | This reloads an asset by GUID or an absolute directory path. | Admin | Yes |
| Flag | This sets a player's flag. | Admin + cheats | With cheats |
| Quest | This gives a player a flag. | Admin + cheats | With cheats |
| EffectUI | This spawns a UI effect for the executing player. | Admin | Yes |
| NpcEvent | Fires an NPC event as if you had triggered it. | Admin + cheats | With cheats |
| Dialogue | Opens an NPC dialogue for you. | Admin + cheats | With cheats |
| RunRewardList | Grants an NPC reward list to you. | Admin + cheats | With cheats |
| SetNpcSpawn | Sets your NPC spawnpoint ID. | Admin + cheats | With cheats |
| ToggleNpcCutsceneMode | Turns NPC cutscene mode on or off for you. | Admin + cheats | With cheats |
| UnlockNpcAchievement | Unlocks a Steam achievement that NPC rewards may grant. | Admin + cheats | With cheats |
| DestroyDrivenVehicle | Destroys the vehicle you are in. | Admin + cheats | With cheats |
| ExitAndDestroyDrivenVehicle | Gets you out of your vehicle and destroys it in the same moment. | Admin + cheats | With cheats |
| EnterAndDestroyNearestVehicle | Gets you into the nearest vehicle (within 16 m) and destroys it in the same moment. | Admin + cheats | With cheats |
| GameMode | This assigns the game mode of the server. | Not working | No |
| Armor | This assigns the barricade and structure damage multiplier where 0 is no damage, 0.5 is 50% damage and 1 is 100%. | Not working | No |
| Decay | This assigns the barricade and structure decay in seconds. Disables decay when set to 0. | Not working | No |
Admin means an admin in chat or the server console. Commands.dat means a startup line in the server's Commands.dat. The help text is the game's own.
Spawning items, vehicles and XP
These need cheats: the Cheats line in Commands.dat on a server, or Allow Cheatcodes in singleplayer. Leave out the player to target yourself.
Give
/Give [SteamID | Player]/[ItemID | Name]/[Amount]
This gives a player an item.
The item goes into the inventory (weapons and clothing are equipped when a slot is free), or drops at the player's feet when there is no room. The item can be its ID, its GUID or a name: an exact file or in-game name wins, then the first partial match, so an ID is the safe choice. Each copy is a full item; the amount is capped at 255.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. Leave it out to target yourself. |
|---|---|
| ItemID | Name | Item ID (see the ID list), GUID or name. |
| Amount | How many, 1 to 255. Default 1. |
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
/give 363Gives you a Maplestrike.
/give 15/5Gives you 5 × Medkit.
/give Nelson/253Gives the player whose name contains Nelson an Alicepack.
Vehicle
/Vehicle [SteamID | Player]/[VehicleID | Name]
This gives a player a vehicle.
Spawns the vehicle next to the player. The vehicle can be its ID, GUID or name (exact matches first, then partial). Paint-variant IDs, such as the coloured Off-Roaders, spawn that colour.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. Leave it out to target yourself. |
|---|---|
| VehicleID | Name | Vehicle ID (see the vehicle ID list), GUID or name. |
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
/vehicle 140Spawns a Fighter Jet next to you.
/vehicle 1Spawns a black Offroader.
/vehicle Nelson/185Spawns a Bicycle next to the player named Nelson.
Experience
/Experience [SteamID | Player]/[Experience]
This gives a player some experience.
Adds experience points, which pay for skills. It adds to what the player has; it can't take any away.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. Leave it out to target yourself. |
|---|---|
| Experience | Points to add, a whole number from 0 up. |
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
/experience 10000Gives you 10,000 experience.
/experience Nelson/500Gives Nelson 500 experience.
Reputation
/Reputation [SteamID | Player]/[Reputation]
This gives a player some reputation.
Changes reputation (the bandit/hero meter) by the amount given, up or down.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. Leave it out to target yourself. |
|---|---|
| Reputation | A whole number; negative lowers it. |
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
/reputation 100Raises your reputation by 100.
/reputation Nelson/-50Lowers Nelson's reputation by 50.
Animal
/Animal [SteamID | Player]/[AnimalID]
This gives a player an animal.
Spawns an animal near the player. It takes the numeric animal ID only.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. Leave it out to target yourself. |
|---|---|
| AnimalID | Numeric animal ID. |
| Animal IDs | 1 Deer, 2 Moose, 3 Wolf, 4 Pig, 5 Bear, 6 Cow, 7 Reindeer |
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
/animal 5Spawns a Bear near you.
/animal Nelson/1Spawns a Deer near Nelson.
Teleporting and players
No cheats needed. On a server you have to be an admin.
Teleport
/Teleport [SteamID | Player]/[SteamID | Player | Location]
This teleports a player to either another player, or a location.
With one parameter it moves you; with two, it moves the first player to the second target. A target is a player, a named location on the map (any part of the name), WP for the marker you placed on your map, or Bed for your bed. You can't teleport to a player who is in a vehicle. The vanilla command is /teleport: /tp is a RocketMod shortcut and does nothing without it.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. |
|---|---|
| SteamID | Player | Location | Where to: a player, a location name, WP or Bed. |
| Keywords | WP (your map marker), Bed (your bed) |
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/teleport WPTeleports you to your map marker.
/teleport NelsonTeleports you to Nelson.
/teleport Nelson/SummersideTeleports Nelson to Summerside (on PEI).
Kill
/Kill [SteamID | Player]
This kills the specified player in-game.
Kills the player outright. Nothing else happens to them: they respawn as usual.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. |
|---|---|
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/kill NelsonKills Nelson.
Players
/Players
This shows a list of the current players on the server.
Lists everyone online with their SteamID64, Steam name, character name and ping. The list goes to the server console, so it's mostly useful there.
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
|---|
playersLists the players online (typed in the server console).
Say
/Say [Text]/[R]/[G]/[B]
This broadcasts a message to all of the connected clients.
Sends a message to everyone, shown as coming from the server. Add three numbers for a colour.
| Text | The message. It can't contain a slash. |
|---|---|
| R | Optional colour, three numbers from 0 to 255 for red, green and blue. |
| G | Optional colour, three numbers from 0 to 255 for red, green and blue. |
| B | Optional colour, three numbers from 0 to 255 for red, green and blue. |
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
/say Restart in 5 minutesBroadcasts the message in the server colour.
/say Restart in 5 minutes/255/0/0The same message in red.
Time, weather and airdrops
No cheats needed, so they also work in a plain singleplayer game. Time commands are refused on Horde and Arena maps.
Time
/Time [Number]
This assigns the current time in seconds of the day-night cycle.
Sets the time as seconds into the day-night cycle (3,600 seconds by default; see Cycle). 0 is sunrise. Day takes the first part of the cycle (half of it with the default lighting), so on the default cycle 900 is around midday and 2700 around midnight.
| Number | Seconds into the cycle. |
|---|---|
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/time 900Sets the time to around midday on a default 3,600-second cycle.
Day
/Day
This assigns the current time to day.
Skips to the start of the day.
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
|---|
/dayMakes it day.
Night
/Night
This assigns the current time to night.
Skips to the start of the night.
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
|---|
/nightMakes it night.
Cycle
/Cycle [Number]
This assigns the length of the day/night cycle in seconds.
Sets how long a full day and night lasts, in seconds. The default is 3,600 (one hour).
| Number | Seconds for one full day and night. |
|---|---|
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/cycle 7200Makes a full day last two hours.
Weather
/Weather [None | Disable | Storm | Blizzard | GUID]
This starts or stops the current weather cycle.
Storm and Blizzard start rain or snow, or stop it if it's already falling. None goes back to the map's normal weather schedule; Disable stops weather altogether. A weather asset GUID starts that weather.
| None | Disable | Storm | Blizzard | GUID | One of the words, or the GUID of a weather asset. |
|---|---|
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/weather StormStarts rain, or stops it if it is raining.
/weather NoneHands the weather back to the map's own schedule.
Airdrop
/Airdrop
This forces a dropship to fly over and perform an airdrop.
Calls the next airdrop now. It does nothing on maps without airdrops.
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
|---|
/airdropSends a plane to drop a care package.
Moderation
Dedicated servers only: in singleplayer these do nothing.
Kick
/Kick [SteamID | Player]/[Reason]
This disconnects the specified player from the server.
Disconnects the player. They can rejoin straight away.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. |
|---|---|
| Reason | Optional; shown to the player. Without it the reason is "unspecified". |
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
/kick Nelson/Spamming chatKicks Nelson with a reason.
Ban
/Ban [SteamID | Player]/[Reason]/[Duration]
This adds the specified player to the list of users not allowed to join the server.
Bans by SteamID, and also by IP address and hardware ID when the player is online. A SteamID64 works for offline players too. Without a duration the ban is "permanent", which the game stores as one year (31,536,000 seconds).
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. |
|---|---|
| Reason | Optional reason shown to the player. |
| Duration | Optional length in seconds (86400 is one day). |
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
/ban Nelson/CheatingBans Nelson for a year.
/ban 76561198000000000/Griefing/86400Bans that SteamID for one day.
Unban
/Unban [SteamID]
This removes the specified player from the list of users not allowed to join the server.
Lifts a ban. Use the SteamID64 shown by Bans.
| SteamID | A 17-digit SteamID64 (starts with 7656119). An online player's name works too where the game says Player. |
|---|---|
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
/unban 76561198000000000Unbans that player.
Bans
/Bans
This shows a list of the current bans.
Lists every ban with who banned them, the reason and the time left. The list goes to the server console.
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
|---|
bansLists the bans (typed in the server console).
Slay
/Slay [SteamID | Player]/[Reason]
This kills the specified player in-game and permanently bans them.
Bans the player (for a year, like Ban without a duration) and kills them. The player has to be online.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. |
|---|---|
| Reason | Optional reason shown to the player. |
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
/slay Nelson/CheatingKills and bans Nelson.
Spy
/Spy [SteamID | Player]
This requests a screenshot from the target player and saves it on the caller's computer as Spy.jpg.
Asks the player's game for a screenshot and saves it on your computer as Spy.jpg. Handy for checking for wallhacks.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. |
|---|---|
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/spy NelsonSaves a screenshot of Nelson's screen.
Admins and the whitelist
Dedicated servers only. Lists are saved in the server's folder, so they survive a restart.
Admin
/Admin [SteamID | Player]
This adds the specified player to the list of users allowed to use admin commands in the chat.
Makes the player an admin, so they can use commands in chat. It takes effect at once and is saved in Adminlist.dat.
| SteamID | Player | An online player's name, or any SteamID64. |
|---|---|
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
admin NelsonMakes Nelson an admin (from the server console).
Unadmin
/Unadmin [SteamID | Player]
This removes the specified player from the list of users allowed to use admin commands in the chat.
Removes a player from the admin list. The owner set in Commands.dat is an admin again on their next join.
| SteamID | Player | An online player's name, or any SteamID64. |
|---|---|
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
/unadmin NelsonTakes Nelson's admin away.
Admins
/Admins
This shows a list of the current admins.
Lists the admins and who made each one admin. The list goes to the server console.
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
|---|
adminsLists the admins (typed in the server console).
Permit
/Permit [SteamID]/[Tag]
This adds the specified player to the list of users allowed to join the server.
Adds a SteamID to the whitelist. It only matters on a server with the Whitelisted line.
| SteamID | A 17-digit SteamID64 (starts with 7656119). An online player's name works too where the game says Player. |
|---|---|
| Tag | A note for yourself, usually the player's name. |
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
permit 76561198000000000/NelsonLets that player join a whitelisted server.
Unpermit
/Unpermit [SteamID]
This removes the specified player from the list of users allowed to join the server.
Removes a SteamID from the whitelist.
| SteamID | A 17-digit SteamID64 (starts with 7656119). An online player's name works too where the game says Player. |
|---|---|
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
unpermit 76561198000000000Takes that player off the whitelist.
Permits
/Permits
This shows a list of the current players allowed to join the server.
Lists the whitelist. The list goes to the server console.
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
|---|
permitsLists who may join (typed in the server console).
Running the server
For the server console or an admin in chat while the server runs.
Save
/Save
This forces a proper save of the server state.
Saves the world and every player now. The server also saves on its own and on Shutdown.
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
|---|
saveSaves the server.
Shutdown
/Shutdown [Delay]/[Explanation]
This properly saves the server state, disconnects the clients and closes the program.
Saves, disconnects everyone and closes the server. With a delay, players get a countdown and the explanation.
| Delay | Optional seconds to wait. |
|---|---|
| Explanation | Optional message shown to players. |
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
shutdownSaves and stops the server now.
/shutdown 300/Restarting for the updateShuts down in five minutes with a message.
Help
/Help [Command]
This provides information on commands.
Without a command it prints every command's syntax to the server console. With one, it shows that command's syntax and help in chat.
| Command | Optional command name. |
|---|---|
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/help giveShows the syntax of Give in chat.
Debug
/Debug
This provides information on the state of the server.
Prints the server's update and tick rates (as a percentage of the 50 per second it aims for) and how many zombies and animals are active.
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
|---|
debugShows how the server is coping.
Modules
/Modules
This shows a list of the loaded modules.
Lists the loaded modules (the loaders that plugin frameworks such as RocketMod and OpenMod install) with their versions.
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
|---|
modulesLists the modules.
Log
/Log [Chat Y/N]/[Join/Leave Y/N]/[Death Y/N]/[Anticheat Y/N]
This assigns the console log options.
Chooses what the server console logs. All four are on by default.
| Chat Y/N | Y or N: log chat. |
|---|---|
| Join/Leave Y/N | Y or N: log players joining and leaving. |
| Death Y/N | Y or N: log deaths. |
| Anticheat Y/N | Y or N: log anti-cheat messages. |
| Who can use it | Admins and the server console. Also works as a line in Commands.dat. Does nothing in singleplayer. |
Log N/Y/Y/YStops logging chat, keeps the rest.
Timeout
/Timeout [Number]
This assigns a maximum ping threshold to the server before a client is kicked.
Players whose ping stays above this many milliseconds are kicked; 50 to 10,000. It changes Max_Ping_Milliseconds from Config.json (750 by default) until the next restart. In Commands.dat it has no effect, because Config.json is read after it: set the value there instead.
| Number | Milliseconds. |
|---|---|
| Who can use it | Admins and the server console. Does nothing in singleplayer. |
Timeout 500Kicks players above 500 ms.
LogMemoryUsage
/LogMemoryUsage
Prints counts of loaded objects, textures, sounds and meshes.
For tracking down memory use, mostly by modded servers. The output goes to the console.
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
|---|
LogMemoryUsagePrints the counts.
Server settings (Commands.dat)
One per line in Servers/<name>/Server/Commands.dat, without the slash. Most are refused once the server is running, so change the file and restart.
Map
Map [Level]
This sets the map that the server loads on startup.
The map to load, by its folder name. The default is PEI.
| Level | Map folder name, such as PEI, Washington, Russia or a Workshop map's folder. |
|---|---|
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
Map WashingtonLoads Washington.
Port
Port [Number]
This assigns the port of the server. Servers use two consecutive ports: the first for server list queries, and the second for in-game traffic. The first should be configured here, but both should be opened on the router.
The default is 27015. For a second server on the same machine use 27017, then 27019, and so on.
| Number | Port number. |
|---|---|
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
Port 27015Uses ports 27015 and 27016.
Bind
Bind [IP]
This binds a specific internal IP to the socket.
Only needed on a machine with several network addresses.
| IP | An IPv4 address of this machine. |
|---|---|
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
Bind 192.168.1.20Listens on that address only.
Password
Password [Text]
This assigns the codeword required for entry to the server.
Players must type it to join. The game only SHA1-hashes it, so don't reuse a password from anywhere else. Leave it out for an open server.
| Text | The password. |
|---|---|
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
Password hunter2Sets the join password.
Name
/Name [Text]
This assigns the name of the server on the server list.
The name in the server list, 5 to 50 characters. Without it the server is called Unturned.
| Text | Server name. |
|---|---|
| Who can use it | Admins and the server console. Also works as a line in Commands.dat. Does nothing in singleplayer. |
Name Nelson's PvE ServerNames the server.
MaxPlayers
/MaxPlayers [Number]
This sets the maximum number of connections the server is willing to accept.
From 1 to 200. The default on a dedicated server is 8.
| Number | Player slots. |
|---|---|
| Who can use it | Admins and the server console. Also works as a line in Commands.dat. Does nothing in singleplayer. |
MaxPlayers 24Allows 24 players.
Queue_Size
/Queue_Size [Number]
This sets the maximum number of queued connections the server is willing to hold on to.
How many players may wait in the join queue while the server is full, up to 64.
| Number | Queue length, 0 to 64. |
|---|---|
| Who can use it | Admins and the server console. Also works as a line in Commands.dat. Does nothing in singleplayer. |
Queue_Size 8Lets eight players queue.
Mode
Mode [Easy | Normal | Hard]
This assigns the difficulty of the server.
The difficulty preset; its values (zombie damage, loot, decay…) are in the server's Config.json. The default is Normal.
| Easy | Normal | Hard | One of the three. |
|---|---|
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
Mode HardRuns the server on Hard.
PvE
PvE
This disables player-versus-player combat, in favor of player-versus-environment combat.
Players can't damage each other. Without the line the server is PvP.
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
|---|
PvETurns off player-versus-player damage.
Perspective
Perspective [First | Third | Both | Vehicle]
This assigns the perspective of the server.
First (the default on a dedicated server) allows first person only; Third, third person only; Both, either; Vehicle, first person on foot and third person in vehicles.
| First | Third | Both | Vehicle | One of the four. |
|---|---|
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
Perspective BothLets players switch between first and third person.
Cheats
Cheats
This allows the use of cheats like spawning items, vehicles and experience.
Lets admins use the spawning commands (Give, Vehicle, Experience…). Without it those commands are refused, even for the owner.
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
|---|
CheatsTurns cheat commands on for admins.
Owner
Owner [SteamID]
This sets the owner of the server.
The owner is always an admin, even when not on the admin list. Use your SteamID64: Steam shows it on your Account details page.
| SteamID | Your 17-digit SteamID64. |
|---|---|
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
Owner 76561198000000000Makes that Steam account the owner.
Welcome
/Welcome [Text]/[R]/[G]/[B]
This sets a welcome message shown to clients once they connect.
Shown in chat to every player who joins. Add three numbers for a colour.
| Text | The message. It can't contain a slash. |
|---|---|
| R | Optional colour, three numbers from 0 to 255 for red, green and blue. |
| G | Optional colour, three numbers from 0 to 255 for red, green and blue. |
| B | Optional colour, three numbers from 0 to 255 for red, green and blue. |
| Who can use it | Admins and the server console. Also works as a line in Commands.dat. Does nothing in singleplayer. |
Welcome Welcome! No raiding before day 3/0/255/0A green welcome message.
GSLT
GSLT [Login Token]
This sets the game server login token.
A Game Server Login Token from Steam (steamcommunity.com/dev/managegameservers, app ID 304930) puts the server on the internet server list. It can also go in Config.json as Login_Token under Browser.
| Login Token | The 32-character token. |
|---|---|
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
GSLT 0123456789ABCDEF0123456789ABCDEFSets the token (use your own).
Whitelisted
Whitelisted
This makes only permitted players allowed to join the server.
Only players added with Permit can join.
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
|---|
WhitelistedMakes the server whitelist-only.
Hide_Admins
Hide_Admins
This hides the visibility of admin labels from players.
Other players can no longer tell who is an admin: no admin colour in chat or the player list.
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
|---|
Hide_AdminsHides admin labels.
Filter
Filter
This filters out players with non-English-alphanumeric names.
Refuses players whose Steam or character name has characters outside plain English text, such as accents, emoji or other alphabets.
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
|---|
FilterTurns the name filter on.
Sync
Sync
This allows players to share savedata between your servers.
Saves player data (inventory, skills) in a Sync folder of the game installation instead of the server's own folder, so servers run from the same installation share characters on the same map.
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
|---|
SyncShares player data between servers.
Gold
Gold
This marks the server as joinable only by Gold members.
Only players who own the Permanent Gold Upgrade can join.
| Who can use it | Dedicated server only, as a line in Commands.dat. Refused once the server is running. |
|---|
GoldMakes the server Gold-only.
Loadout
/Loadout [SkillsetID]/[ItemID]/[ItemID]/...
This gives players each item when spawning. Using a skillset ID of 255 gives the item to everyone.
Items players spawn with. Skillset IDs: 0 none, 1 firefighter, 2 police officer, 3 army, 4 farmer, 5 fisher, 6 camper, 7 worker, 8 chef, 9 thief, 10 medic; 255 means everyone. Use one line per skillset.
| SkillsetID | 0 to 10, or 255 for everyone. |
|---|---|
| ItemID | Item IDs, as many as you like, separated by slashes. |
| ItemID | Item IDs, as many as you like, separated by slashes. |
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
Chatrate
/Chatrate [Number]
This assigns a minimum time between chat messages.
Minimum seconds between two chat messages from the same player, 0 to 60. The default is 0.25.
| Number | Seconds; decimals allowed. |
|---|---|
| Who can use it | Admins and the server console. Also works as a line in Commands.dat. Does nothing in singleplayer. |
Chatrate 2One message every two seconds at most.
Votify
/Votify [Vote Allowed Y/N]/[Pass Cooldown]/[Fail Cooldown]/[Vote Duration]/[Vote Percentage]/[Players]
This configures voting for the server.
Vote-kick settings, all six in one line. The game's defaults: voting off, 5 s pass cooldown, 60 s fail cooldown, 15 s to vote, 0.75 of players needed, at least 3 players online.
| Vote Allowed Y/N | Y to let players start votes. |
|---|---|
| Pass Cooldown | Seconds before another vote after one passes. |
| Fail Cooldown | Seconds before another vote after one fails. |
| Vote Duration | Seconds a vote stays open. |
| Vote Percentage | Share of players who must vote yes, from 0 to 1 (0.75 is 75%). |
| Players | Fewest players online for a vote. |
| Who can use it | Admins and the server console. Also works as a line in Commands.dat. Does nothing in singleplayer. |
Votify Y/5/60/30/0.6/4Turns voting on, 30 s votes, 60% needed, 4 players minimum.
Server console only
Typed into the server's own console window. They ignore players, admins included.
CopyServerCode
CopyServerCode
Copies the server code to the clipboard.
The server code lets friends join through Connect Directly without port forwarding. The server prints it at startup.
| Who can use it | Server console only. |
|---|
CopyServerCodeCopies the code.
CopyFakeIP
CopyFakeIP
Copies the server's Steam Fake IP address to the clipboard.
Only when Use_FakeIP is on in Config.json. Like the server code, the Fake IP lets friends join without port forwarding.
| Who can use it | Server console only. |
|---|
CopyFakeIPCopies the Fake IP and port.
ScheduledShutdownInfo
ScheduledShutdownInfo
Shows when the scheduled shutdown will happen.
Scheduled shutdowns are set in Config.json. Prints the time and how long is left, or that none is scheduled.
| Who can use it | Server console only. |
|---|
ScheduledShutdownInfoShows the next scheduled shutdown.
LogTransportConnections
LogTransportConnections
Lists each player's network connection and address.
For tracking down connection problems or matching a player to an IP address.
| Who can use it | Server console only. |
|---|
LogTransportConnectionsPrints every connection.
Map-making and testing
Tools for map and mod makers. Most need cheats and act on the player who types them.
Reload
/Reload [GUID | Path]
This reloads an asset by GUID or an absolute directory path.
Reloads an asset from disk while the game runs, for testing changes to a mod or map asset.
| GUID | Path | An asset GUID, or the full path of a folder. |
|---|---|
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/reload 0123456789abcdef0123456789abcdefReloads the folder of that asset (use a real GUID).
Flag
/Flag [SteamID | Player]/[Flag]/[Value]
This sets a player's flag.
Sets one of the player's quest flags (the numbers NPC quests and dialogue check). For testing quests.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. Leave it out to target yourself. |
|---|---|
| Flag | Flag ID, 0 to 65535. |
| Value | Value, -32768 to 32767. |
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
/flag 1000/1Sets your flag 1000 to 1.
Quest
/Quest [SteamID | Player]/[Quest]
This gives a player a flag.
Adds a quest to the player's quest log (the game's help text says flag; it adds a quest). For testing NPC quests.
| SteamID | Player | A player on the server: any part of their Steam or character name, or their 17-digit SteamID64. Leave it out to target yourself. |
|---|---|
| Quest | Quest ID or GUID. |
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
/quest 1000Gives you the quest with ID 1000 (if the map has one).
EffectUI
/EffectUI [EffectID]
This spawns a UI effect for the executing player.
Shows a UI effect to you (or, from the console, to the first player online). clearall removes every effect. Extra slash-separated values fill the effect's text fields.
| EffectID | Effect ID or GUID, or clearall. |
|---|---|
| Who can use it | Admins and the server console. In singleplayer: works without cheats. |
/effectui clearallClears every effect.
NpcEvent
/NpcEvent [Event ID]
Fires an NPC event as if you had triggered it.
For testing map objects that listen for NPC events.
| Event ID | The event name the map's objects listen for. |
|---|---|
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
/npcevent OpenBunkerDoorFires the event named OpenBunkerDoor (use one your map listens for).
Dialogue
/Dialogue [GUID]
Opens an NPC dialogue for you.
For testing dialogue without walking to the NPC.
| GUID | The dialogue asset's GUID. |
|---|---|
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
RunRewardList
/RunRewardList [GUID]
Grants an NPC reward list to you.
Checks the list's conditions first and prints the unmet ones.
| GUID | The reward list asset's GUID. |
|---|---|
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
SetNpcSpawn
/SetNpcSpawn [Spawn ID]
Sets your NPC spawnpoint ID.
The ID that NPC rewards use to choose where a player respawns.
| Spawn ID | The spawnpoint ID used by the map's NPC rewards. |
|---|---|
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
ToggleNpcCutsceneMode
/ToggleNpcCutsceneMode
Turns NPC cutscene mode on or off for you.
For testing cutscenes made with NPC rewards.
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
|---|
/togglenpccutscenemodeToggles cutscene mode.
UnlockNpcAchievement
/UnlockNpcAchievement [Name]
Unlocks a Steam achievement that NPC rewards may grant.
Only achievements the game allows NPCs to grant.
| Name | The achievement's internal name. |
|---|---|
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
DestroyDrivenVehicle
/DestroyDrivenVehicle
Destroys the vehicle you are in.
A test command the developers added while fixing a vehicle bug.
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
|---|
/destroydrivenvehicleDestroys your current vehicle.
ExitAndDestroyDrivenVehicle
/ExitAndDestroyDrivenVehicle
Gets you out of your vehicle and destroys it in the same moment.
A test command for a bug the developers fixed in 2025. No use in normal play.
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
|---|
EnterAndDestroyNearestVehicle
/EnterAndDestroyNearestVehicle
Gets you into the nearest vehicle (within 16 m) and destroys it in the same moment.
A test command for a bug the developers fixed in 2025. No use in normal play.
| Who can use it | Admins and the server console, when the server has the Cheats line. In singleplayer: with Allow Cheatcodes on. |
|---|
In the game files but not working
These have a name and help text in the game files but do nothing in this version.
GameMode
GameMode [Class Name]
This assigns the game mode of the server.
Accepted, but does nothing: the game's code marks it as deprecated.
| Class Name | See the syntax line. |
|---|---|
| Who can use it | Nobody: it does nothing. |
Armor
Armor [Barricade Multiplier]/[Structure Multiplier]
This assigns the barricade and structure damage multiplier where 0 is no damage, 0.5 is 50% damage and 1 is 100%.
Never registered as a command, so the game doesn't recognise it. Building damage is set in Config.json instead.
| Barricade Multiplier | See the syntax line. |
|---|---|
| Structure Multiplier | See the syntax line. |
| Who can use it | Nobody: it does nothing. |
Decay
Decay [Barricade Duration]/[Structure Duration]
This assigns the barricade and structure decay in seconds. Disables decay when set to 0.
Never registered as a command, so the game doesn't recognise it. Decay is set in Config.json instead.
| Barricade Duration | See the syntax line. |
|---|---|
| Structure Duration | See the syntax line. |
| Who can use it | Nobody: it does nothing. |
A Commands.dat example
The file is Servers/<name>/Server/Commands.dat, where <name> is the server ID you start the server with (+InternetServer/<name>). One command per line, no slash. The server reads it once at startup, so restart after a change. Gameplay values such as loot, zombie damage and decay live next to it in Config.json.
// Lines starting with // are comments.
Name UnturnedLord Test Server
Map PEI
Port 27015
MaxPlayers 24
Mode Normal
Perspective Both
Owner 76561198000000000
Cheats
Welcome Welcome! Type /help for commands
GSLT 0123456789ABCDEF0123456789ABCDEFPlugin commands
Many community servers run RocketMod or OpenMod. Their plugins add commands such as /tp, /i, /v, /home or /heal, with their own permissions. They aren't part of the game, so they aren't listed here, and they don't work in singleplayer or on a vanilla server.
Source: the 63 command files in Localization/English/Server/ of the Unturned 3.26.3.14 dedicated server, checked against the game code to see which are registered, plus 14 commands that only exist in the code. Not listed: four commands built only into the developers' test builds. Who-can-use and the notes come from reading the game's command code.