X4 Foundations Console Commands 2021
: This is the gold standard for "commands." It adds an in-game UI that allows you to spawn ships, add money, reveal the map, and toggle invincibility.
: player.inventory:addItem("mod_weapon_damage_01", 100) (Gives you 100 Weapon Damage Mods. Replace the ID for other items.)
While not "cheats," these built-in command shortcuts are essential for management: X4 Foundations Console Commands
: debug print(factions.factions)
His ship glowed with an ethereal, unyielding light. The Xenon graviton beams lashed out, hitting his hull with the power of dying stars, but the shield percentage stayed at a defiant 100%. Julian leaned back, watching the majestic, cheating fire of his main batteries erase the machines from existence. : This is the gold standard for "commands
The mod translates all the complex console commands into simple buttons.
| Command | Effect | |---------|--------| | help | List all available commands | | help [command] | Show usage for a specific command | | eval "some lua code" | Run Lua directly | | set_cheat true | Enable cheat mode | | addmoney <amount> | Add credits (cheat mode) | | addship <ship macro> <owner> | Spawn a ship | | teleport <zone> | Move player to a zone | | godmode true/false | Toggle invincibility | | reveal_all_sectors | Reveal full map | | add_blueprints_to_player | Unlock all blueprints | | finish_research | Complete all research instantly | | set_relation <faction> <faction> <value> | Change faction standing | | debug_show_asteroid_info | Debug asteroid data | | debug_show_highway_connections | Visualize highway links | The Xenon graviton beams lashed out, hitting his
When you press , a small terminal window appears. This is the Lua interpreter. Everything you type here is executed as live Lua code. This is where the magic happens.
Sometimes, clipping through a station happens. Instead of reloading: player.entity:setPosition(player.entity.position.offset(0, 100, 0)) (Teleports you 100 meters up.)
For 99% of players, the mod (by Rei Ayanami) is vastly better than manual console commands:
Unlike many modern games that require editing .ini files or installing third-party software to access the developer console, X4 Foundations makes the process relatively straightforward, though it varies slightly depending on your input method.
