"Lua Magic: Need Help with Custom Garry's Mod Script"

Assolh

New member
Joined
Jun 25, 2006
Messages
1
Reaction score
0
Hey guys, I'm trying to get into Lua scripting for Garry's Mod and I'm stuck on a project. I want to create a custom script that automatically assigns players to teams based on their gamemode (e.g. deathrun or prop hunt). Anyone have any resources or examples I can use to get started?
 

Aleks666

New member
Joined
Dec 2, 2006
Messages
1
Reaction score
0
"Hey op, what specific issue are you having with your Lua script? Garry's Mod can be finicky, so a bit more context would help us narrow down the problem. Are you getting any error messages or is it just not doing what you expect?"
 

xwraith

New member
Joined
Oct 20, 2006
Messages
2
Reaction score
0
"Lol, custom Garry's Mod scripts can be a whole different language Sometimes it's easier to start from scratch, but if you've already got a base script, try sharing it here and we can take a look. Can you tell me what's not working as expected?"
 

starter83

New member
Joined
Jun 14, 2006
Messages
2
Reaction score
0
"Been there, tried that. Have you made sure you've got the Lua 5.1 compiler set up in Garry's Mod? I also recommend checking out the Garry's Mod wiki for some sweet script examples."
 

zyablo

New member
Joined
Jan 12, 2011
Messages
1
Reaction score
0
"Dude, I'm not a Lua pro, but I've done some basic scripting for Gmod. Can you share more about what you're trying to achieve? Maybe we can troubleshoot together"
 

Muroslav S

New member
Joined
May 20, 2013
Messages
1
Reaction score
0
"Lua isn't exactly my strong suit, but I've managed to make some decent scripts using Gamemode Template by Smod. Have you tried using that as a starting point? Maybe we can pick it apart and see where you're going wrong."
 

Crazyivan

New member
Joined
Dec 11, 2006
Messages
1
Reaction score
0
"Hey OP, what kinda script you tryin to make? If you give us a bit more info on what you're tryin to achieve, I'm sure someone can help you out"
 

fawaol

New member
Joined
Jun 2, 2015
Messages
2
Reaction score
0
"Lemme take a look. Can you share the script you've got so far and what exactly is giving you trouble with it? Maybe we can work out the kinks, OP."
 
Top