General Item Codes Item Base Id #: Console Command F04
General Item Codes Item Base Id #: Console Command F04
Here are some helpful item codes. Note that the full list of item codes can be found at the link
above.
The console is a debugging tool in the Windows version of Fallout 4. It is useful for altering
content while in-game, but may be used to cheat as well. It cannot be used in the game console
versions or in Survival mode.
In order to access the console, you will need to use the key appropriate for your language (as
shown in the list of console keys).
The HUD will disappear and you will get a prompt (--- |) in the lower-left corner of the screen
where you can input commands as listed below (The console will also remember any previously
entered commands, which you can scroll through with the Up and Down Arrow keys). 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 turning 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.
The commands listed on this page will appear in two types and are accordingly formated:
target.command – Targeted commands. These will either be listed here with targetID or
player as target.
o Targeted commands also work by selecting the target with the mouse or using
prid <refID> before the command.
command – Untargeted commands.
Some commands will be noted to be able to both be used either with a target or without
one, resulting in a global or targeted effect.
Targets
Targeted commands will require a reference as target usually entered before the actual command,
as noted by the separating dot in between. For the majority of functions, a Form ID will be
needed. For example, if you want your player character (PC) to be the target, you can:
If the desired item was not selected, rotate the mouse's scroll wheel to select the next item
in the scene that falls behind the point that was clicked; the ID shown at the top/middle of
the console will change with each increment of rotation. (If the pointer is within the
console area, the console text may also scroll, but that is unrelated to the ID shown. Also,
when using the scroll wheel to scroll the console text, beware the scroll wheel's dual
purpose, because after scrolling, the item you originally selected probably isn't the item
that is currently selected, which can lead to terrible mistakes.) For each new ID that
appears as the scroll wheel is rotated, use one of the selection verification procedures
discussed above until the desired item is found.
If the ID of the item is already known, the ambiguity of mouse selection can be avoided
by using the command prid 00000014 (Pick Reference ID) to select a target (the player
character, in this example). To deselect it, just enter prid.
o Example: prid 00000014; additem 000D83BF
In case of the player character, you can actually just use "player" as a reference ID which
the console will automatically convert to 00000014 upon executing the command. This is
the only such placeholder in the game, "targetID" is merely a placeholder on this page, to
indicate commands which require a target.
o Example: player.additem 000D83BF
Leading zeroes
Each item, object, character, etc. has an eight character hexadecimal reference ID. When typing
IDs, leading zeroes may be omitted.
Multiple commands
You can enter several commands at once to be executed in a row one after the other. Simply
separate them with ; between each command, as seen in the below example.
Logic
You can use logical operators in your commands in order to have branching conditions. The
syntax to do an if statement in the console is as follows. if <if condition>; <if true>; elseif
<elseif condition>; <elseif true>; else; <if false>; endif.
Explanation:
Logical Operators
Operator Meaning
< Less than
<= Less than or equal to
> Greater than; also referred to as more than
>= Greater than or equal to
== Equal to
|| Or
&& And
! Negate
Note: The console is not case-sensitive. While commands listed here contain capitalization for
better readability, it doesn't matter how you input them: E.g. tgm, TGM or tGm will all work.