API REFERENCERegisterEventRegisters a named event callback in the current Lua UI environment.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 name string: exact event name callback function: handler; its arguments are determined by the particular event 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 nextAddUITriggeredEventCallEventScriptsConvertTimeStringSomething to add?Source: content/api-lua-registerevent-f1695a83.mdHow to contribute Download Markdown ↓