Standard libraries
Only a subset of the standard Lua libraries are available in PewPew Live: The string library, the table library, and (for meshes and sound effects only) the math library.
Level files do not have access to the math library. Use fmath instead.
String library
The library exposes the following functions:
bytechardumpfindformatgmatchgsublenlowermatchrepreversesubupperpackpacksizeunpack
The official Lua website has the documentation for the string library.
Table library
The library exposes the following functions:
concatinsertpackunpackremovemovesort
The official Lua website has the documentation for the table library.
Math library
The Lua math library is only available for meshes and sound effects.
It is not available when creating levels because the functions it offer are often for dealing with floating point numbers.
The library exposes the following functions:
absacosasinatanceilcosdegexptointegerfloorfmodultlogmaxminmodfradrandomsinsincossqrttantype
and the constants:
pihugemaxintegermininteger
The only absent API is randomseed (the RNG is already seeded with a good seed).
If you need a predictable random sequence, use your own RNG implemented in Lua.
The official Lua website has the documentation for the math library.