--- title: X4 Lua environment events summary: 2 API entries with return and parameter types. section: reference kind: guide status: reference updated: 2026-10-26 tags: ["API","X4"] sources: ["https://wiki.egosoft.com/X4%20Foundations%20Wiki/Modding%20Support/","https://www.lua.org/manual/5.1/manual.html","https://luajit.org/ext_ffi_api.html"] --- ## Contents [Types and methods](wiki:types). Parameter and result types refer to the stated X4 layer; unknown contracts are explicit. ## Lua environment events | Call / event | Returns | | --- | --- | | [gameSaved](wiki:api-event-gamesaved-984171bf) | event data | | [onUpdate](wiki:api-event-onupdate-0e377c56) | event data |