|
What is Lua?
- Lua is a scripting language with a simple syntax.
- Because Lua can easily be embedded into applications, it is frequently used in games, such as World of Warcraft, Far Cry and Baldur's Gate. Lua is used in Garry's Mod by developers to :add new game modes, weapons and other features.
- There are syntactical differences between Lua and the Garry's Mod implementation — read up on them here.
|
|
|
For newcomers to the Lua language
Most of the articles and references in this Wiki are about applying Lua to Garry's Mod.
If you are new to the Lua language, it is recommended that you view and follow the following two sites just below.
The first is the Lua Manual. This manual is a documentation of and reference for the Lua language. It defines the syntax, variable handling methods, limitations, default libraries and functions, and generally the language itself.
If you need to do a certain thing in the Lua language, it is highly recommended you quickly brush over the default Lua libraries before making your own function. They will most likely complete the task much more efficiently and dynamically than other quick-fix functions.
The second item is an online book, called Programming in Lua. It guides you through getting started with the Lua language generically. You can skip the section on the C interface, as you won't use that in Garry's Mod development.
Once you have gotten to know Lua, you can start using it in Garry's Mod without having to worry about learning both the language and GMod's interface at the same time.
Good luck!
|
|