Press F1 during gameplay to turn on the console, then enter one of the following codes and press Enter.
god 1 - Enable god mode.
noclip - The player model flies and ignores colliders.
respawn - Revive you on the beach as a rookie.
ent kill - Instantly destroys the entity you are looking at.
debugcamera - Enable free camera.
teleport - Teleport to the selected player.
heli.call - Launch an event with a helicopter.
env.time - Change the time of day. Example: env.time 0-24 (6 = sunrise, 12 = noon, 24 = midnight).
weather.fog - Customize the fog.
weather.rain - Set up rain.
inventory.give - Get a specific item and amount. A short name or code is required.
Example: inventory.give "metal.plate.torso" 3