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()anderror()getfenv()andsetfenv()getmetatable()andsetmetatable()next(),ipairs()andpairs()load()andloadstring()module(), but sadly norequire()pcall()andxpcall()rawequal()rawget()andrawset()select()tonumber(),tostring()type()unpack()
##Libraries