Fallout 4

Fallout 4

Not enough ratings
FO4 - How to add an item with the console
By tsubear
This is how you can add an item to your inventory with the fallout 4 console command! We'll also go over how each of the parameters work in the command!
   
Award
Favorite
Favorited
Unfavorite
Getting the ID of the item you want.
First of all, to add an item using the console, we need to get the ID of the item we want to use! Start of by pressing ` or ~ on your keyboard to bring up the console!

Next we need to use the help command to lookup the ID of the item we want! Let's say we want a 10mm pistol to be placed in our inventory, we would type:

help 10mm 4 weap

Let's quickly explain what the command does.
- help: This is the command we use to lookup items! It's pretty self-explanatory in this game.
- 10mm: We use the first part of the item's name as we cannot use spaces in this part of the command otherwise it will not work! If you wanted a combat shotgun, you'd type "help combat"
- 4: When using the help command, there are 5 options of forms in the game you can filter for. This is what they all do,
0 - lists all forms
1 - lists all functions
2 - lists all settings
3 - lists all globals
4 - acts as a filter for most things in the game. Each filter has 4 letters, example "WEAP", "NPC_" You can find a full list on the fallout fandom!
-weap: As explained before, WEAP is used in combination with the 5th filter when using the help command. Since the 10mm pistol is a weapon, we need to use that filter.

Once we type this command in, we need to scroll up and find 10mm Pistol (WEAP). Once we see it, we need to look at the number before it (this is called a form id) and use it in the next command!
Adding the item to our inventory.
Alright, now that we have the form id (let's say in this tutorial it is 000539a0)((this isn't the actual form ID)) we can now do the fun part of this guide! Actually adding the 10mm to our inventory! We'll use this command to add it to *our* inventory!

player.additem.000539a0

Let's explain the command!
- player: This is a shortcut to the form ID of the player! There is another ID you can use instead of "player" but this method is a lot easier!
- additem: This is the actual command we are executing, the reason "player" was before it is because we are executing this to the player!
-000539a0: This is the example form ID of the 10mm pistol, however it is different in this guide. Replace it with whatever number you found in the previous section! Also, with form ids there is a sneaky trick to save us more time. Instead of typing "000539a0" we can do this instead!

player.additem.539a0

We can take away the inital 0's at the start of a form ID to shorten it down a tiny bit! However this can occur errors and if the command doesn't work, you can always put back in the 0's!

And that's it! You now have a 10mm pistol in your inventory! Fallout 4's console command does do a thing where whenever you add an item to your/someone else's inventory it will spawn with a random modification (such as magazine, barrel, sights, receiver) and I do not believe there is a way to change it. However you can always take your item to a weapon/armour station to change the mods to your needs!