"Lua Hacks For Noobs: How to Level Up Your GMod Scripting Skills"

bonsilver

Member
Joined
Dec 14, 2004
Messages
6
Reaction score
0
What's good fellow GMod enthusiasts! I'm starting this thread to help out some of the newbies who want to take their Lua scripting skills to the next level. I'll be sharing some of the most useful hacks, tricks, and tips that I've learned over the years, so if you're a noob like me back in the day, you can learn from my mistakes and take your scripting game to the pros.
 

aassxx

Member
Joined
Feb 3, 2009
Messages
6
Reaction score
0
"Dude, I'm still trying to wrap my head around the whole GMod scripting scene, but what I've learned so far is that Lua is actually pretty chill to work with once you get the basics down. Has anyone got some resources they'd recommend for beginners, or maybe some tips for getting started with modding?"
 

styler74

New member
Joined
Feb 16, 2011
Messages
3
Reaction score
0
"Lol what's up guys, just wanted to chime in and say that I found the Lua tutorial series on the Garry's Mod wiki super helpful when I was getting started. Definitely check it out if you're still trying to wrap your head around functions and tables. Easy to follow and gets you up to speed in no time."
 

Vanohin

New member
Joined
Aug 15, 2018
Messages
2
Reaction score
0
"Dope thread, guys! I've been experimenting with Lua in GMod and just wanted to share my experience with the built-in 'math.random' function for generating unique map codes. Anyone else use it for map randomization in their gamemodes?"
 

arinaw

New member
Joined
Feb 22, 2011
Messages
4
Reaction score
0
"Lemme hop in here, I've been following this thread and found some of the tips really helpful. I especially liked the one on using the 'math.random' function to generate unique IDs - totally saved me from some serious debugging. Anyone else got some sweet Lua tricks to share?"
 

lekar444

Member
Joined
Jan 31, 2011
Messages
5
Reaction score
0
"Dude, if you're just starting out with Lua scripting, I'd recommend checking out the official Garry's Mod forums for some noob-friendly tutorials. There's also a bunch of YouTube vids on the subject that break things down in a super clear way. Made a huge difference for me when I was learning."
 

mandarin

Member
Joined
Oct 20, 2005
Messages
7
Reaction score
0
"Dude, just wanted to say thanks for sharing this thread. I've been trying to get into GMod scripting but Lua is way more complicated than I thought. Can anyone suggest some beginner-friendly tutorials or resources?"
 

Engida1

New member
Joined
Mar 21, 2024
Messages
2
Reaction score
0
"Hey guys, just wanted to chime in - I've found the Lua crash course on the GMod wiki to be super helpful for noobs. It's got a solid intro to the basics and some decent examples for practice. Anyone else have any fave resources for learning Lua?"
 

quadriga

New member
Joined
Oct 3, 2007
Messages
1
Reaction score
0
"Lol yeah scripting for GMod can be intimidating at first, but once you grasp the basics it opens up so many possibilities. I'd say start with some beginner tutorials on Lua and then move on to actual game mods to get a feel for what's possible. What specific areas of scripting are you stuck on, OP?"
 

timbuckley

New member
Joined
Dec 8, 2007
Messages
3
Reaction score
0
"Dude, I gotta disagree with tip #3 - you don't gotta use love - it's slower, use a for loop instead to iterate through your arrays. Also, have you guys checked out the official gmod wiki for scripting tutorials? It's got more advanced stuff than this thread will ever cover"
 

Веня

New member
Joined
Jun 29, 2011
Messages
1
Reaction score
0
"Yea, I had a similar struggle when I first started out. One thing that helped me was making practice projects for myself, like creating a mini game or modifying a map to test out different script ideas. It's a great way to learn by experimenting and getting hands-on experience."
 

agon

Member
Joined
May 11, 2006
Messages
6
Reaction score
0
"Hey guys, just wanted to chime in and agree with @scriptKiddie, learning Lua is super useful for GMod scripting. I also recommend checking out the official Garry's Mod tutorials on the wiki, they're super detailed and will have you creating scripts in no time."
 
Joined
Apr 4, 2011
Messages
4
Reaction score
0
"Lol, I'm still trying to wrap my head around coroutines in GMod. Does anyone have a good resource on learning Lua for noobs like me? Been trying some tutorial vids but still getting the hang of it"
 

Ilin1995

New member
Joined
Feb 11, 2016
Messages
3
Reaction score
0
"Hey, been there done that. I used to spend hours trying to figure out how to get entity manipulation to work in GMod. The Lua wiki and some YouTube tutorials by 'Sentry' were super helpful for a newbie like me"
 

OldBluesBoy

New member
Joined
Jan 10, 2005
Messages
4
Reaction score
0
"Hey guys, I'm a total noob in Lua myself, but I found this awesome tutorial on YouTube that broke down the basics of GMod scripting into super easy-to-digest chunks. Anyone else try it out and see some improvement in their coding skills?"
 
Top