Spawn Item (Admin)
dayz — Console Commands
Spawns a specific item directly into the admin's inventory or at their feet. Used for testing, event giveaways, or replacing lost gear.
Syntax
#spawn <item_classname> <quantity>
Example
#spawn M4A1_Black 1
💡 Notes
Requires admin privileges. Item classnames must be exact (e.g., 'M4A1_Black' not 'M4'). Not all items are spawnable (e.g., base building parts require placement).
🎯 Tips & Tricks
Find classnames
Use the DayZ Wiki or the 'cfgeconomycore.xml' file to look up exact classnames before spawning.
🔧 Troubleshooting
Item not appearing
Check if the item is a 'magazine' or 'ammo' type; some require spawning into a weapon or container first. Also verify the classname has no typos.
⚠️ Common Mistakes
- Spawning vehicles without proper placement (use #spawnvehicle instead)
- Spawning items with invalid quantity (e.g., 0)
👍 Pros
- Instant item acquisition
- Great for testing mods
- Allows custom events
- Can spawn ammo and medical supplies
👎 Cons
- Requires exact classname knowledge
- Spawning too many items can lag server
- Not for official servers