API REFERENCEIsValidComponentChecks whether a component reference is usable in the current UI context.Reference materialX4 9.00Updated 2026-10-26 LinkReturn value# Type Meaning unknown The return contract has not been established. Unused return values do not prove void or nil. Types and methods Parameters# Name Type / role component local reference of the appropriate UI type 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-isvalidcomponent-af8bb474.mdHow to contribute Download Markdown ↓