1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Where to start with GLua?

Discussion in 'Programming' started by Moose.exe, Jan 31, 2016.

  1. I only just started with GLua coding and I know a bit about the language. But what I am confused about where do I start coding and what do I start coding?
     
  2. I'm not sure how good my word is, but I'd start with a couple tutorials to basic lua, and then make some derma menus and build knowledge around real basic stuff.
     
  3. Rhenz

    Rhenz Who needs a map? Staff Member Moderator Legend

    • Agree Agree x 1
  4. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    Watch the {CODE BLUE} tutorials on Lua and GLua.
     
    • Like Like x 1
  5. SleepyMode

    SleepyMode Clockwork Customer

    You can take a look at open-source codes, look at wiki.garrysmod.org, and simply try and learn to understand the messages that the game returns you, they are there for a reason. :)
     
  6. I honestly never personally bothered to sit down and "memorize" any shit from the LUA wiki or gLUA wiki, that never really works for me. I learned by experience. The memorization and the point where you won't have to go to the wiki or google to will come later in the game.

    You can't just want to "learn gLUA", it's not that simple. Get a goal, and set out to do it. For example, try making a simple addon, like something that makes a player spew blood from their mouth every 5 seconds, or a new entity that will call you a dumbass when you press E on it.

    In my learning, I started out mostly looking at open-source codes, and even taking code from them. There's nothing wrong with that, as it's open source and out there for anyone to use, but always give credit. Nobody likes a thief.

    The most important resources is a nifty use of google, and http://wiki.garrysmod.com/page/Main_Page , I cannot tell you how many times I have googled something along the lines of this: "facepunch how to attach entity to head of player", or "facepunch how to emit particles from an entity". If you can't find a function or example on the gLUA wiki (often times the gLUA wiki will have a function to do what you want to do, paired with great documentation which tells you what everything does and even gives useful examples), just google it.

    Use these resources wisely, and you'll come to the epiphany that you have the potential to make whatever you want.
     
    • Informative Informative x 1

Previous Readers (Total: 0)