In Fallout 4, codes for items from DLCs start with a different code called a DLC code. A DLC code is a two digit number that tells the game the DLC an item comes from. It is different for everyone because it's based on the amount and type of DLCs you have installed.
To find out DLC codes for your DLCs, press "Enable" on the buttons for the DLCs that you have installed. Put this two digit code before the code of an item to spawn it into the game.
|DLC Name||Enable / Disable||DLC Code|
If you play The Elder Scrolls V: Skyrim, you may also be interested in our Skyrim DLC code finder.