πŸ“š General Information
πŸ”§ Garry's Mod Server Setup

How to use default commands.dat variables

Do you need to set variables for your server in the Commands.dat file? Are you unsure of which ones to use? This article will tell you about the variables that can be set.

As part of Unturned, many variables can be set, which can impact how you and others experience the game. The table below provides a full list of variables that are usable:

Name

Command

Description

​Bind​

bind [IP Address]

This command binds the server to the specified IP address/socket.

​Camera​

camera [Perspective]

This command changes the camera perspective for all users on an Unturned server. The possible perspectives being: first, third, both (allowing the user to choose) and vehicle.

​Cheats​

cheats

This command toggles the availability of cheat commands on an Unturned server. It must be written in the commands.dat file - not in-game.

​Filter​

filter

This command filters alpha-numeric characters out of player names.

​Gamemode​

gamemode [Mode Class Name]

This command can be used to change the gamemode of the server.

​Gold​

gold

This command makes it so that only Gold members can connect to the server. If already enabled, this will toggle the feature off when executed.

​Hide_Admins​

hide_admins

This command hides the admin status of players who are admin, so that regular players cannot see that they are administrators.

​Map​

map [Level Name]

This command changes the map for the server that loads when the server starts up.

​Mode​

mode [Difficulty Mode]

This command changes the difficulty mode of the server - to easy, normal or hard.

​Owner​

owner [Steam ID]

This command sets the server time to night.

​Password​

password [Password]

This command gives/sets the server password. The password is required to be entered by any player who tries to connect to the server.

​Port​

port [Port]

This command sets the port the server will run on.

​PvE​

pve

This command enables PvE (plus versus environment) combat.

​Sync​

sync

This command enables the option for players to share savedata between servers.

​Whitelisted​

whitelisted

This command enables the whitelist on an Unturned server, making it so that anyone who is not on the whitelist (permitted) cannot connect to the server.

The above information is provided by UnturnedHub. We are not affiliated with this page, and we only provide it as a reference.