Page views: 191Updated: Last Month Playing. What can Lua do on Gmod ? Lua can help you create add-ons like the ones in the workshop. You can use it to control objects in-game, create an admin system, or anything you want, as long as you know how to do it. By LuckyLuke Lua Kill Counter - Learn how to make a Lua Kill Counter.
Join for support, or just to. I hope I can help you guys learn lua ! It will make more sense in the future episodes. Lua Tutorial Series - GMod. This tutorial is going to teach you how to make a stats and money system, via SQLite.
By the end you should have a fairly decent understanding of the tool. Save it in you gamemode folder as sql_database. Knowledge Prior to Using the Tutorial : - A basic knowledge of SQL. Teaches you how to make your first Lua script.
Firstly, this is a TUTORIAL and you are meant to learn from it. Instead of using regex, the Lua string library has a special set of characters used in syntax matches. Both can be very similar, but Lua pattern matching is more limited and has a different syntax.
Lua is an open source language built on top of C programming language. Lua has its value across multiple platforms ranging from large server systems to small mobile applications. Though this tutorial focuses on application in GMod , the code and concepts can be used elsewhere.
The SQL will then send the back to Lua. If the result is true, meaning it was able to find the data we were looking for, then it sets up the players stats and skills. However, if it returns false, meaning the data was not foun it will create a new player.
How To Use Lua Scripts in Garrys Mod For some reason a lot of people dont know how to do this yet fuck. In this tutorial , we will be making a SWep with the RPG Launcher model to fire chairs. This will make your life a lot easier. See Getting Started With Lua for help. Select Gmod Lua under the Languages tab.
Tutorial on how to properly install gmod hacks with lua codeing involved. So if you get a sorce code its very simple. In your documents create folder external and put. One of the other common idioms of Lua is to use assert to guard against nil values.
A metatable is a regular Lua table containing a set. Enter your Lua program or choose one of the demo programs below. To learn more about Lua , buy a book at Amazon or an e-book at Feisty Duck.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.