How to program lua for gmod
Scripted Entities. Names[index] ; end. Scripted Weapons [wiki. BitCurious 10 Nov, pm. What is "ply", and what mean ":" in code? Yiannis 9 Oct, am. So about the arrays it is a bit confusing. Isn't the name of the array a pointer to the first value and not array[1]? Sniper 8 Dec, am. Burnto 16 Nov, am. I need help. SetAttachment - [C] 2. A function is a command that does something when you call it. Many functions can take arguments, which is data you give the function to change exactly what it does.
In this case, print takes only one argument, which is a string a series of letters, numbers, spaces, and so on , and when print is called, it puts that string into the console in Garry's Mod.
You're now ready to save the actual Lua file. To find your Lua folder, follow the following path - depending on where you have installed Garry's Mod on your computer, this path may be different, but will look something like this:. In the filename box, type helloworld. Now, just press enter or press the save button to save your script. Make sure you have the "File name extensions" checkbox checked in File Explorer. Originally Posted by canttouchthis On my computer the lua was in the cache folder Post added at AM Previous post was at AM On my computer the lua was in the cache folder.
Originally Posted by ThatHackingTroll. Replies: 15 Last Post: , AM. Replies: 1 Last Post: , PM. How do I install this hack i gots? Replies: 0 Last Post: , AM. How do you install the hacks By Drag0nkillz in forum General Hacking. Stack-Overflow is meant for very specific technical questions that can be answered objectively. Add a comment. Active Oldest Votes. Improve this answer. KaratemanJohnson KaratemanJohnson 7 7 bronze badges.
I don't think that Python is an easier language to learn than Lua; in fact, I think that it is the other way around. But there are more resources available for Python. Thank you! The reason I choose lua is cause I need it for my own sake, cause it fits my interests. I heard many people say that C is the best language to learn, and that lua takes a really long time to learn, but I think that I could really do alot, but I fear the limitations of the Source engine, cause I really dont know if I can do everything I want to do,so I really fear that I would just end up wasting time learning lua, when I can't do everything I wanted to do with it.
Half of the battle when learning programming for the first time is simply learning how to ask the right questions. Start with VERY basic problems. Get some text to display! Gradually over time do harder and harder projects. You wont waste your time learning lua, because the knowledge of programming you gain will transfer to other languages. Learning how to ask a programming question and what questions you need to ask will take you far : — KaratemanJohnson.
The best language to start with is one that lets you do something that you want to do; if scripting in Lua lets you make mods, and if that is something that you want to do, then Lua is a good language for you to start with.
0コメント