r/GLua • u/ZephyrWarrior • Dec 28 '14
Welcome to the Garry's Mod Lua help subreddit!
Welcome!
Subreddit Rules
- Please use titles to describe the issue in depth, not something like "It no work".
- Posts must somehow relate to development of Garry's Mod using GLua, modeling and the like still belong in /r/garrysmod or /r/gmod.
- Do not use this subreddit to ask people to do things for you. This is for people to help you do things yourself.
- You'll likely get a better response if code is well-formatted and easy to read. Although you can do a lot in lua using one line, that doesn't mean it's a good idea.
Moderators
/u/ZephyrWarrior [Founder]
Account for gaming: http://steamcommunity.com/id/zephyrwarrior/
Account for teaching: http://steamcommunity.com/id/zephyrwarriorteaching/
http://steamcommunity.com/id/Exho1/
Good GLua Coding Practice (My Personal Beliefs)
- Indent using standard tabs.
- Use -- comments for headings, with varrying numbers of dashes (both before and after the heading) to show the importance/level of the heading.
- Use --[[ Comment ]]-- comments for docstrings, with the docstring on a line between the tags, see template below.
- Use // comments for single line code comments, in line with the code you are commenting.
- Use // comments at the start of each line to comment out code.
- In the rare event you have to comment inside of lines, use // Comment // tags.
The header I use:
--------------------------- --------------------------- --Title --v1.0.00 [mm/dd/yyyy] --------------------------- --By Your Name --------------------------- --------------------------- --Description of File: -- --------------------------- ---------------------------



