From GMod Wiki
The Lua code can set a variable named OUT which will be substituted in place of the code in the template string. Lua expressions and statements are evaluated by loadstring with the function environment set to the first table. The following example shows how to use expand. Note that Expand.lua only works with Lua 5.0. Userdata values are objects foreign to Lua, such as objects implemented in C. Samsung frp tool 2017 crack download. These typically come about when an object in a C library is exposed to Lua. A thread value represents an independent (cooperative) thread of execution. Lua has dynamic typing. This means that types are checked while a program is running. Lua Templates is a multi-purpose templating engine used to create output in various formats, e.g. HTML pages, plain text, or, LaTeX source files. Lua Templates can contain Lua code or Lua expressions (whence the name), but there is also a powerful mechanism to extend existing templates by re-defining named blocks found in the base template (one.
Jump to: navigation, search
Lua C++ Templates
Description | N/A | |
---|---|---|
Used on | ||
Code |
| |
Output | N/A |
To use type:
{{Lua example |
description = DESCRIPTION |
useOn = LOCATION |
code = CODE |
output = OUTPUT |}}
{{Lua example |
description = DESCRIPTION |
useOn = LOCATION |
code = CODE |
output = OUTPUT |}}
- DESCRIPTION = A description of what the example code does.
- LOCATION = Where the action is executed, e.g. Server Side.
Use {{Serverside}}, {{Client}} or {{Menu}} instead of words.
- CODE = The example code.
Lua C++ Template Download
- Caution: Remember to include the <lua> & </lua> tags!
- OUTPUT = The outputed result of the executed code.
Lua C++ Bind
Use this template on a Lua function page (after the Lua function template) to add an example.
Editing this template will effect every page using it. BE CAREFUL! |
Lua Scripts
Retrieved from 'http://wiki.garrysmod.com/?title=Template:Lua_example'