We're out of RIFT copies for now! Check back soon!

Get Started With WeGame! Download WeGame Client

  • Play

    Download or instantly play hundreds of games.

  • Capture

    Record video or take screenshots directly from your favorite games.

Garry's Mod

About Garry's Mod

Lua is a versatile programming language with a simple syntax. Although many people consider Lua an interpretive language this is incorrect as Lua compiles its scripts when they are loaded. 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. However, the Lua engine implemented in Garry's Mod has a few syntactic differences from the original version of Lua.

Garry's Mod Lua Differences

NameLua StandardC-Syle
Multi-Line Comments--[ [ comment ] ]/* comment */
Single Line Comments-- comment// comment
Andand&&
Oror||
Notnot!
Not-Equal~=!=

Lua References

For more information on Lua, visit the offical Lua website and the Wikipedia article.

Garry's Mod LUA News

Garry's Mod LUA Blogs

Recommendations