Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:Lua functions
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Core === : [[API assert|assert]](value[, errormsg]) - returns 'value' if not false. otherwise throws a Lua error using 'message'. : [[API collectgarbage|collectgarbage]]() - Forces garbage collection. (added 1.10.1) : [[API date|date]](format, time) - Returns the current date according to the user's machine. : [[API error|error]]("error message",level) - Throws an error with the given error message. Use pcall() (see below) to catch errors. : [[API gcinfo|gcinfo]]() - Returns the number of kB of add-on memory in use and the current garbage collection threshold (in kB). : [[API getfenv|getfenv]](function or integer) - Returns the table representing the stack frame of the given function or stack level. : [[API getmetatable|getmetatable]](obj, mtable) - Returns the metatable of the given table or userdata object. : [[API loadstring|loadstring]]("Lua code") - Parse the string as Lua code and return it as a function reference. : [[API next|next]](table, index) - Returns the next key, value pair of the table, allowing you to walk over the table. : [[API newproxy|newproxy]](boolean or proxy) - Creates a userdata with a sharable metatable. : [[API pcall|pcall]](func, arg1, arg2, ...) - Returns a true value indicating successful execution of 'func' and return values, otherwise false and the error message. : [[API select|select]](index, list) - Returns the number of items in '''list''' or the value of the item in '''list''' at '''index'''. : [[API setfenv|setfenv]](function or integer, table) - Sets the table representing the stack frame of the given function or stack level. : [[API setmetatable|setmetatable]](obj, mtable) - Sets the metatable of the given table or userdata object. : [[API time|time]](table) - Returns time in seconds since epoch (00:00:00 Jan 1 1970) : [[API type|type]](var) - Returns the type of variable as a string, "number", "string", "table", "function" or "userdata". : [[API unpack|unpack]](table[, start][, end]) - Returns the contents of its argument as separate values. : [[API xpcall|xpcall]](func, err) - Returns a boolean indicating successful execution of func and calls err on failure, additionally returning func's or err's results.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)