FANDOM


The basic library is the core Lua library, which provides useful core functions to Lua, such as print, load, require, and more. It is located in _G, a table with all global variables by default.

Library functionsEdit

Function name Arguments Returns Description Origin
assert variable v, (string message) All of its arguments Issues an error with the message message (or "assertion failed!") when the value of its argument v is false, or returns all of its arguments. Lua 5.2
collectgarbage (string mode) nil or related variables The generic interface to the garbage collector. Originated in Lua 5.2.
error string message, (number level) Does not return Terminates the last protected function called and returns message as the error message, without acually returning. Originated in Lua 5.2.
pcall function f (Template:Tuple arguments) boolean success, Template:Tuple returned values or string error message This function is used to call a function in protected mode, thus preventing the script from crashing from an error being called. Originated in Lua 5.2.
xpcall Missing information. Missing information. Missing description. Originated in Lua 5.2.
ipairs Missing information. Missing information. Missing description. Originated in Lua 5.2.
pairs Missing information. Missing information. Missing description. Originated in Lua 5.2.
next Missing information. Missing information. Missing description. Originated in Lua 5.2.
load Missing information. Missing information. Missing description. Originated in Lua 5.2.
loadfile Missing information. Missing information. Missing description. Originated in Lua 5.2.
dofile Missing information. Missing information. Missing description. Originated in Lua 5.2.
print Missing information. Missing information. Missing description. Originated in Lua 5.2.
rawequal Missing information. Missing information. Missing description. Originated in Lua 5.2.
rawget Missing information. Missing information. Missing description. Originated in Lua 5.2.
rawlen Missing information. Missing information. Missing description. Originated in Lua 5.2.
rawset Missing information. Missing information. Missing description. Originated in Lua 5.2.
tonumber Missing information. Missing information. Missing description. Originated in Lua 5.2.
tostring Missing information. Missing information. Missing description. Originated in Lua 5.2.
type Missing information. Missing information. Missing description. Originated in Lua 5.2.
require Missing information. Missing information. Missing description. Originated in Lua 5.2.
select Missing information. Missing information. Missing description. Originated in Lua 5.2.
getmetatable Missing information. Missing information. Missing description. Originated in Lua 5.2.
setmetatable Missing information. Missing information. Missing description. Originated in Lua 5.2.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.