loadstring
functionimplementedavailable in: camelot
Parse a string as Lua code and return it as a reference to a function. func, errorMessage = loadstring("luaCodeBlock"[, "chunkName"]);
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
luaCodeBlock | string | a string of Lua code. Can be very long. |
chunkName | string | optionally name the code block. Will be shown as the "file name" in error messages. If not given, the file name will be "[string: *first line of your Lua code here...*]". |
func | function? | nil if there was a syntax error in the code block |
errorMessage | string? | will contain an error message if *func* was nil. |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.