Fallout 4 console commands

The console is a debugging tool in the PC version of Fallout 4. It is useful for altering content while in-game, but may be used to cheat as well.

Use the tilde (~) key to open the console, to the left of the 1 key, and below ESC.

The HUD will disappear and you will get a prompt (|) in the lower left corner of the screen where you can input commands. While the console is open, the game will pause and the camera will freeze. If the left side of the console is not visible, one may need to edit the Fallout4_Default.ini file in the installation folder. Increasing the iConsoleTextXPos variable will move the prompt further right into the field of view. Fallout 4 does not require you to turn off an Xbox/PS Controller if you are using one, to use the console. If you are using a controller, simply use your keyboard to enable the console.

Debugging and mapping

 * – Searches for item IDs, perk names, and even other commands. Use PageUp and PageDown keys to scroll through the console.
 * Example: – This will list everything - item IDs, perk names, and commands - with "Leather" in the name.
 * Example #2: – If your search term contains a space, surround it in quotation marks.
 * Example #3: – then use player.placeatme ID you find on the help console to summon it. Example: player.placeatme 00184752 10. will summon 10 legendary raiders
 * – Toggle Map Marker: Fully activates all Pip-Boy map markers, making them both visible on the map and available as fast travel destinations. Note, however, that it does not update the "locations discovered" statistic in the Pip-Boy 3000. tmm 1,0,0 should allow you to see unknown locations without fast travel.
 * – Toggle God Mode: Gives the player invincibility to damage, radiation and oxygen underwater. It also gives unlimited ammo, carrying capacity and AP (reloading does use AP with some weapons) and stops item degradation. Rad-Away and Stimpacks do not work while tgm is active, but Power armor Fusion Cores will still drain. In addition, it enables building items at Settlements without using resources (Resources cap at 999 including bottle caps, meaning you can't build the higher tier stores from the Local Leader 2 perk while in "god mode").
 * – Toggle Immortal Mode: Character will still take damage, but their health will never reach zero. No radiation invincibility, no infinity AP and ammo.
 * – Toggle CLipping: Enables the player to move in any direction, including through solid objects and/or empty space. (A.K.A. "noclip"). It allows you to "fly" over an area and view it or get unstuck from a location. Make sure to click on an empty space to clear any IDs that are being used in the console for this to work, "prid" with no parameters also serves the same purpose.
 * – Toggle Game Pause: Puts the game in a frozen state, even when leaving the console. Useful in combination with tfc and tm to line up perfect screenshots. Type again to resume the game.
 * – The angle of the game camera's horizontal Field Of View settings in degrees. Higher values make more of the world around you fit on screen, but also distort the image more.
 * or - Sets the default of 70 degrees.
 * - Sets the Third person camera to 90 degrees, and the first person camera back to 70. If you are in first person mode, this can make it seem as if the setting was ignored.
 * – Toggle Freefly Camera: tfc 1 freezes all animations, useful for screenshots.
 * - Changes the Freefly camera movement speed. 20 is default.
 * – Toggle Menu: Toggles UI Overlay (including console, type TM again to show.)
 * – Takes a screenshot without removing any HUD elements. Screenshot is stored in the root Fallout4.exe directory named "ScreenShot#.png". Use in conjunction with tm to make the console and HUD invisible for a better screenshot.
 * – Character Light: Enable/Disable/Edit the rim lighting that is used on character models. Character Light can also be applied to other models that currently do not use it. It can also be removed from models.
 * – Enable/Disable/Edit God-Ray
 * - Center On Cell: Teleports the player to the specified cell. For example, to teleport to the Pre-War Sanctuary Hills from the beginning of the game type coc PreWarSanctuaryExt01 Red Rocket gas station which is next to Sanctuary would be "coc RedRocketExt".
 * – Writes console output to the specified file.
 * – BATch: Executes specified list of commands as defined by a text file (.txt).
 * – Toggle Grass: Toggles grass display.
 * - Toggle Low LOD: Toggles distant LOD display.
 * - Toggle Sky: Toggles sky display.
 * - Toggle Water System: Toggles water display.
 * – "Fast quit", immediately closes the game.

Quests

 * – Moves the quest in your quest log to the indicated quest stage. Recommended command for moving past bugged sections of quests rather than forcing the entire quest to become completed.
 * – Generates a list of current quest targets. Can also be used to find Quest IDs.
 * – Completes the given quest.
 * – Moves the player to the target (if available) of the current quest.
 * – Shows all current quest objectives (even completed ones).
 * – Shows all objectives for the given quest.
 * – Completes all current objectives for the given quest.
 * – Resets the given quest.

Inventory manipulation

 * – Add any item to your inventory. Use the "help" command to find the base ID.
 * Example: to add 1 Aluminum. The command is not case-sensitive. If the ID begins with 0's, they can be omitted ("6907a" will work fine in the above example).
 * Note: "Prefix" edits the item's prefix. This is only confirmed to work on armor.
 * – Remove any item from your inventory.
 * or – Lists Inventory with object IDs.
 * – Equip an item from the inventory. Useful for equipping items that don't appear in Pip-Boy inventory.
 * – Unequip inaccessible items (e.g. Pip-Boy).
 * Gives Item ID of currently held Item (e.g. Press and hold E on item and type command in console)

NPC Manipulation

 * – Spawn an enemy/creature/item/object on top of the player. While the console is open, you may also click on an NPC to target it, then simply use "placeatme" without the "player." to spawn on top of the target.
 * Example: to spawn 1 Deathclaw on top of you.
 * – Lists NPC's Inventory with object IDs.
 * – Kills the target (unless essential).
 * – Resurrects NPC Working - Tested. Be aware that NPCs with crippled limbs/head can spawn without them and look glitchy.
 * – Kills all NPCs and creatures in the area except for companions and "essential" NPCs that are too important to die. They will instead slump down until healed with a Stimpack.
 * - Unequips all items from an NPC.
 * – Opens any NPC's Inventory as if they were a container. Equipped clothes do not show.
 * – Toggles the AI on an NPC. This basically freezes them until toggled again.
 * – Toggle Combat AI: Toggles all AI combat routines.
 * – Toggle detection: Player can't be detected by enemies.
 * – Changes the sex of the NPC. Please note that this does not always come out comely.
 * WARNING: Only use this on disposable NPCs. This will mess up NPCS, but it can be remedied by restarting the game and loading a previous save.
 * – Allows an NPC to be permanently killed. Click on a an NPC then enter the command for it to work. Use the resurrect command to revive them.
 * – Allows the NPC to be permanently killed.
 * – Sets them to be unkillable.
 * – Returns 0 or 1 depending on wether the target is non-essential or essential.
 * – Get Companion Affinity Level (Events usually triggered at 250, 500, 750, 1000 with 1000 being max)
 * – Sets Companion Affinity Level to an absolute value.
 * – Modifies Companion Affinity Level by a relative value.
 * – Resets AI.
 * – Allows you to control selected AI.

Stats and character manipulation

 * - Sets actor values to a given amount (S.P.E.C.I.A.L., skills, resistances, actionpoints, health, etc). Using setav will affect the perk chart and unlock new perks for the player to select from.
 * - Modify an actor value. S.P.E.C.I.A.L. set using "modav" will change in the Pip Boy but will not affect the Perk chart - use "setav" for this instead. The value will max out at its normal maximum value (100 for skills, 85 for resistances, 10 for S.P.E.C.I.A.L., etc.). A negative number lowers the variable.
 * - Force a value.
 * Example:
 * Note: It is recommended to use ModAV instead of ForceAV, especially if you want to revert the change later. ForceAV overrides the automatic calculation of actor values, and nothing will affect that actor value again aside from another ForceAV or a ModAV. For example, with a Carry Weight of 200, a will give the player character a carrying capacity of 5000. Getting an extra point of strength will not change that capacity, even if you ForceAV the Carry Weight back to 200 before getting the additional point of strength. On the other hand, a  will result in a carrying capacity of 5200, getting an additional point of Strength will make that increase appropriately, and a subsequent  will place the value back where it should be based on Strength.  Also, Player.ModAV Experience ### will add or subtract experience from your XP pool.
 * - Adds a specific perk and its rank. For a list of perks see Fallout 4 perks.
 * Note: This command does not add preceding or succeeding ranks within a perk - it only adds one perk rank. For example, if you want to be a Master Locksmith (rank 4/4), you must also add (or have already learned) Locksmith perk ranks 1/4, 2/4, and 3/4.
 * - Removes a specified perk.
 * Note: For some reason this does not seem to work for the V.A.N.S. perk.
 * - Change player character's gender.
 * - Set level. Note that this cannot be used to level your character down.
 * - Advance a point on a specific skill branch.
 * or - Edit player or npc appearance. # - player ID [14] or NPC ID. WARNING do not modify non humans !!!
 * - Show game settings value.
 * - Refills health bar, leaves radiation sickness.
 * Allows you to set the value for your running speed. Default is 100.
 * Allows you to set the value for your jump. The higher the number, the higher the jump. Be careful as jumping too high will cause fall damage. (Default 90)
 * - Move to the NPC or item.
 * - Changes the race of the player. Can be used to change into a Ghoul, Super Mutant, or a Synth. You can find a list of the race ID's using the help function. Note: Changing into certain races can cause the game to crash.

Items & world manipulation
This is easiest if you first click on something in the world with the console open to target it.


 * – Removes the selected object.
 * – Adds a mod onto the selected item.
 * – Same as above.
 * – Removes a mod from the selected item.
 * – Same as above.
 * – Transports you to a room with access to all items in the game.Use "coc SanctuaryExt" to get back to the world.
 * – Set the scale of an item in game. It's usually required to "disable" then "enable" the item for the new scaling to fully take place.
 * Note: Be careful when using setscale to large numbers like 10. You may seem big and powerful, but a very small drop-off (in comparison to your size) will be fatal. Cliffs look very tiny from 50 feet up, but still kill you as if you were normal size. Additionally cells will still only load as if you were normal size, and moving through un-spawned cells can crash the game. It is suggested to use the no-clip command 'tcl' to prevent falling.
 * – Prints out the scale of the item in the console.
 * & – Lock/Unlock doors, safes, terminals or any other locked container. Other lock states can also be set with special values. Unlock will not work on doors that are "locked from the other side".
 * Values between and  set the difficulty to that of the Lockpick skill (0-25 novice, 26-50 advanced, 51-75 expert, 76-100 master).
 * Lock using the previous type of lock it had, or novice if it had none.
 * or - "Requires Key"
 * or - "Inaccessible"
 * or - "Requires Terminal"
 * or - "Chained"
 * or - "Barred"
 * – Activate an item, say a door, that is normally operated by a switch
 * – Similar to disable, will delete any item from the game, removing it permanently. It may disappear immediately, or it may require you to exit and re-enter the area.
 * – Similar to activate, but will open and close it without the player having to use it 0 = close 2 = open.
 * – Make the item yours. (for instance a cabinet or a bed, but if you try to make a safe or cash register and things like that yours, you will still lose Karma and there's almost no point.)
 * – Place an item next to the player; for many items only a stack amount of 1 is valid.
 * – Move the player to a nearby item. Player needs to be within the same location cell.
 * – Sets the timescale, the ratio determining how fast game time moves relative to real time; the default setting is 30. For example, setting the timescale to 1 would cause one second to pass in game time for every second in real time.
 * Warning: Altering the timescale will cause the game to crash if NPCs spawned using placeleveledactoratme or movetoplayer enter into combat.
 * – Sets the gamehour to the entered value. Change applies only when player unpauses the game. Before making any changes to the gamehour using might be useful.
 * – Force Weather: Changes the weather. The following are confirmed to work (more are coming):

Settlements
These commands only affect workbenches in settlements. The easiest way to modify a settlement is to travel there and target the workbench with the console open.

Size Budget
The size budget is a combination of triangle counts and draw calls and is configured for each settlement. Each object the player creates in the settlement will use a portion of both in the budget, with more complex objects using up more. The budget itself is tracked as actor values attached to the workbench. Note that in order to use these actor values you must use the numeric id as they do not have a usable console name.

You can see your current usage with these commands. As these are calculated by the workbench, changing them with or the like is not recommended.
 * - Gets the current number of triangles used by player.

These commands will let you change the actual budget. Increasing the values will allow you to build more.
 * - Gets the current number of draw calls used by player.
 * - Set the maximum triangle budget for the settlement.

Note: The budgets are there for a reason, to keep players from building overly large settlements that could negatively impact performance. Using these commands to ignore the budgets could have consequences.
 * - Set the maximum draw budget for the settlement.

Cheat Scripts
On PC, place a file (with any name or extension - .txt, .bat, or nothing at all) in the Fallout main directory with any and all of the above cheats, ending with a semicolon and a new cheat on each line, save the file as 'all files'. To run the cheat script while in-game, open the console and type bat filename without an extension. For example, if the file name is "test", simply type bat test in-game to run the script and all of the cheats will be applied instantly.

Visual Bug Glitch
There's currently a bug going around that involves locking the imagespace mod of the Recon sight and/or the Night vision sight. Use these two codes to correct them.

rimod 00094636; rimod 002041b6;