Hi
I've been trying to learn how to lua code in Gmod for a little while now. I've read the most detailed guide I could find, but I still only know the basics..
My question is, how did you guys learn to lua code? I would help me so much, if someone could give me any idea on, how to get better at lua coding!
Had to edit the post, because people got pissed because of my grammar..
[QUOTE=Gravko;44496499]I would help me so much, if someone could give me any idea on, how to get more experience with lua coding! :)[/QUOTE]
You get Lua experience by coding Lua.
Here's a helpful post.
[url]http://facepunch.com/showthread.php?t=1337945[/url]
I also have a lot of tutorials I've written and post when the questions are asked. I've been busy working on a few "tests" to help people better understand GLua and they're going to be ready soon.
It's important to understand realms:
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/loading_files_across_realms.lua.html[/url]
I was looking through other people's code and often playing around adding my own little adjustments to figure out what goes where.
Essential to learn to differentiate between client side and server side Lua.
[QUOTE=EvacX;44496621]You get Lua experience by coding Lua.[/QUOTE]
Well.. I've been trying, but I always feel like not knowing what to do, when I try to code stuff..
start by going here [url]http://wiki.garrysmod.com/page/Chair_Throwing_Gun[/url] and making as many different SWEP's as you can trying different ways every time and when u learn something new go back and update a older one i am also in your position right now, i have so many ideas and i feel like i can go and edit code but i just cant figure out how to just make what i am thinking in my head come out in code. since we are in the same boat if u want a partner to learn with or share tips with we could do that.
I personally recommend starting with modifying DarkRP entities and then DarkRP HUDs. They are really simple and easy to edit and get immediate results. From there you can try making equivalent entities like coding ur own money printer without copying and pasting any code and likewise create your own HUD without copying and pasting.
yes that is what i am working on now i will find a hud that has the things i want and write everything instead of copy then change it up a little
[QUOTE=TrippleT;44502842]start by going here [url]http://wiki.garrysmod.com/page/Chair_Throwing_Gun[/url] and making as many different SWEP's as you can trying different ways every time and when u learn something new go back and update a older one i am also in your position right now, i have so many ideas and i feel like i can go and edit code but i just cant figure out how to just make what i am thinking in my head come out in code. since we are in the same boat if u want a partner to learn with or share tips with we could do that.[/QUOTE]
I would be interested in that. PM me here.
[editline]10th April 2014[/editline]
I am currently trying to create the fuction to make it auto place you in a team
Heres my code
[code]function TZ_START()
RND = math.random( 1,2 )
ply:SetTeam( RND )
end[/code]
Not sure why its not working also what would be the method to make it auto balance? thats using the '<' and '>' values is it not?
"I've been for a long time, been.." - Gravko.
Oh, you are such a poet.
Also, the fact that you can't get a hang of basic grammar tells us that it'll be rather hard for you to learn lua at all.
PS. You get more experienced in lua by.. surprise, surprise, scripting in it.
PPS. I am being a douchebag because people already told you what to do, read other peoples code, try to modify darkrp entities and huds and my personal tip: try making a lua hack including aimbot, wallhack etc. They are 100% clientside and are the easiest thing to make.
[QUOTE=Gravko;44496499]Hi
I've been for a long time, been trying to learn how to lua code. I've the most detailed guide I could find, like 3 times or so, but I still only know the basics..
My question is, how did you guys learn to lua code? I would help me so much, if someone could give me any idea on, how to get more experience with lua coding! :)[/QUOTE]
My first start into coding was using this as starting point. [url]http://www.youtube.com/watch?v=qr8aZpyTV24[/url]
With this i made a swep and used its code as starting point.
With the help of the GMod wikis [URL="http://wiki.garrysmod.com/"]http://wiki.garrysmod.com/[/URL] [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html"]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html[/URL] i began to get experience with lua.
You won't become a "lua king" by doing this, but maybe it helps you getting started.
[QUOTE=Netheous;44506238]"I've been for a long time, been.." - Gravko.
Oh, you are such a poet.
Also, the fact that you can't get a hang of basic grammar tells us that it'll be rather hard for you to learn lua at all.
PS. You get more experienced in lua by.. surprise, surprise, scripting in it.
PPS. I am being a douchebag because people already told you what to do, read other peoples code, try to modify darkrp entities and huds and my personal tip: try making a lua hack including aimbot, wallhack etc. They are 100% clientside and are the easiest thing to make.[/QUOTE]
Hmm, sorry for ruining your day..?
I am working on doing some hacks atm...
Despise hacks. Work on something that is actually creating something that isn't just cheating.
The way I started was I had an idea to recreate an MMORPG's info display above their head, and just expanded from there. Just get a project, set goals and try to meet them. You learn more that way.
Sorry, you need to Log In to post a reply to this thread.