API REFERENCECallEventScriptsX4 interface reference. Types are established only within the stated scope.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: event name payload handler value; its shape depends on the 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 nextAddUITriggeredEventConvertTimeStringDebugErrorSomething to add?Source: content/api-lua-calleventscripts-e758c31c.mdHow to contribute Download Markdown ↓