API REFERENCEGetComponentDataReads requested component fields in Lua UI.Reference materialX4 9.00Updated 2026-10-26 LinkReturn value# Type Meaning any, ... (field dependent) Types describe the declared interface, not proof of a successful game effect. Types and methods Parameters# Name Type / role component component in the representation expected by this Lua API, not a network ID field, ... requested string field names, for example name Example and context#See language basics, types and methods and Lua / MD events. Examples there are independent learning examples. No project source files or private implementation fragments are distributed with this reference. Sources and verificationA reference or guide based on the listed sources.wiki.egosoft.com/X4 Foundations Wiki/Modding Support/www.lua.org/manual/5.1/manual.htmlluajit.org/ext_ffi_api.htmlIndependent learning examples and external sources are published. New examples are not claimed as tested in game.Read nextConvertIDTo64BitConvertStringTo64BitConvertStringToLuaIDSomething to add?Source: content/api-lua-getcomponentdata-466ba6e8.mdHow to contribute Download Markdown ↓