Lua Objects

From PZwiki
ModdingLua Objects
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]

Lua Objects and their properties are Java objects exposed by Project Zomboid's Lua API. This allows for easy modding, however, not all objects are included in the API.

Please note that casing for properties isn't consistent, and special care should be used when using them.

Java documentation

Project Zomboid's official Java documentation is the basis for all Lua-related modding. However, only some classes, functions, and variables are exposed via the Lua API. It's still useful as a guide because of the detail it provides and how objects are connected to each other.

Official documentation of Project Zomboid's Java classes, functions, and variables can be found here:

Unofficial documentation of the above can be found here:

Lua Objects

The full list of objects would be too long to include on this wiki. Please refer to the documentation above for less commonly used tables.

Commonly used Lua tables

See also