Lua Basics Guide - originalfoo/Prison-Architect-API GitHub Wiki

_VERSION states that PA is using Lua 5.1 as of Alpha34 release.

Most of the standard Lua features are available to your scripts...

##Global functions

  • assert() and error()
  • getfenv() and setfenv()
  • getmetatable() and setmetatable()
  • next(), ipairs() and pairs()
  • load() and loadstring()
  • module(), but sadly no require()
  • pcall() and xpcall()
  • rawequal()
  • rawget() and rawset()
  • select()
  • tonumber(), tostring()
  • type()
  • unpack()

##Libraries