Title / Thread Starter Last Post ByReverse Sort Order Replies Views
Link
 
Winner x 32

NEED A CODER? DON'T MAKE A THREAD - LAST UPDATED 25 OCTOBER 2013 - READ THIS

We are not interested in threads that state you are looking for a coder for your server/addon/gamemode. Please instead use this website. http://coderhire.com/

2 Weeks Ago
by NiandraLades Go to last post
2 8,426
Garry
 

MODDING HELP - READ ME FIRST

This forum is for help modding Garry's Mod. This includes everything from scripting to mapping. Your first port of call should be the Garry's Mod Wiki. If you don't find what you need - please post a thread in this forum asking for the information to...

27th February 2013
by Sethxi Go to last post
6 8,371
Lua scripting
 

CreateSound Problem

I'm trying to get a Nextbot to play sounds using CreateSound. My problem here is that instead of emitting from my bot, it emits from the middle of the map, and i'm not sure why. Here's what i have: local talk = CreateSound(self,...

MysticLlama 2 reading
46 Minutes Ago
by AnonTakesOver Go to last post
13 300
Help
 

People Randomly Dying on server

I dont know how or what is causing it but it keeps killing everybody on the server when they go near 1 guy but we kicked him and it still happens only log from this "player" ServerLog: .:Volume:::::::. (STEAM_0:1:1318) Got killed by .:Volume:::::::....

MasterKenneth 7 reading
52 Minutes Ago
by AnonTakesOver Go to last post
6 142
POST YOUR
 

Problems That Don't Need Their Own Thread v2.0 ( 2 3 4 5 .. 28 29 30 31 Last ) This thread has images

Welcome to the PTDNT page ! Have a small problem and need help with it , but you don't want to start a new thread and ask about your problem then you've came to the right thread ! To keep it clean -Post your problem ("Variable returns nil at some...

sm69baller 2 reading
1 Hour Ago
by zeaga Go to last post
1,236 28,006
Help
 

damage stuff in lua

How would I get back damage only or head only damage

log404 4 reading
1 Hour Ago
by CallMePyro Go to last post
3 80
Release
 
Winner x 26

ScriptFodder ( 2 3 4 5 6 7 8 9 Last ) This thread has images

ScriptFodder is a script marketplace and job listings site for Garry's Mod. https://scriptfodder.com A few screenshots of the site (runs great on mobile etc..):...

Handsome Matt 5 reading
1 Hour Ago
by Phoenixf129 Go to last post
359 13,017
Help
 

Net messaging

Hello. Well I've pretty much learnt most of the fundamentals of glua and understand what things do what but I just can't get my head around net messaging. I don't understand it at all. I guess if someone can explain they could use this example: When I...

_Entity 4 reading
1 Hour Ago
by Exho Go to last post
1 63
QUESTION
 

DarkRP prop error

whenever someone spawns a prop and grabs it with a physgun I see this error in console: lua/includes/util.lua:173: attempt to index local 'object' (a number value) 1. IsValid - lua/includes/util.lua:173 2. entGetTouchReason -...

2 Hours Ago
by Retalak Go to last post
2 131
NSFW
 

GMod - What are you working on? September 2014 (#37) ( 2 3 4 5 .. 9 10 11 12 Last ) This thread has images

Time for another thread. Highlights from the previous thread

Mors Quaedam 9 reading
2 Hours Ago
by Nak Go to last post
440 28,654
Lua scripting
 
Winner x 28

Coderhire Addon Cloning Thread ( 2 3 4 5 Last ) This thread has images

Edit 9/14: With the demise of Coderhire and the appearance of a couple clones, I would like this thread to still be focused on recreating paid addons not limited to Coderhire. Gracias The sole purpose is to find fairly easy/5 minute scripts that people...

Exho 1 reading
3 Hours Ago
by zeaga Go to last post
185 6,967
Lua scripting
 

Admin Console Message

Hello, I am currently trying to just print a simple console message (Might change it later) of when an Admin leaves it prints a message in the server console. for some reason I get lua/autorun/admin_disconnect.lua:49: attempt to index...

DerfStew 2 reading
3 Hours Ago
by DerfStew Go to last post
8 101
Help
 

Gmod Server Mass Lag

Heres the mass lag Log:Client cmd out of sync (delta 27). Client cmd out of sync (delta 23). Client cmd out of sync (delta 24). Client cmd out of sync (delta 25). Client cmd out of sync (delta 26). Client cmd out of sync (delta 27). Client cmd out...

MasterKenneth 1 reading
3 Hours Ago
by MasterKenneth Go to last post
0 43
QUESTION
 

Damage Types are incorrect?

I started another thread yesterday but wanted to make a new one to show that damage types are either incorrect, or I'm incredibly stupid and missing something. It started with a leaderboards addon not working correctly (it had actually not been working...

serfma 2 reading
3 Hours Ago
by Robotboy655 Go to last post
7 107
Release
 
Winner x 47

Next Update ( 2 3 4 5 .. 88 89 90 91 Last ) This thread has images

Current to-do list Latest changelog This is a thread for discussing upcoming Garry's Mod updates. All changes in the latest changelog should be already in the dev branch, so if anyone here is running on that branch, please test those changes and...

_Kilburn 1 reading
4 Hours Ago
by ManFlakes Go to last post
3,629 191,985
Help
 

DarkRP Custom Job Spawns

I want my Civil Protection job to spawn near the PD. TEAM_POLICE What command exactly do I do, and how?

4 Hours Ago
by mushroompizza Go to last post
4 91
QUESTION
 

Calling a function from another lua script?

I'm not entirely sure how this is done, I've tried include("blah.lua") trying to include the functions from another script.

Winter 2 reading
4 Hours Ago
by Internet1001 Go to last post
1 61
Help
 

gamemodes/desire/gamemode/cl_init.lua:4: attempt to index a nil value

I'm getting this error, when I shouldn't (in theory) be. gamemodes/desire/gamemode/cl_init.lua:4: attempt to index a nil value VIP table (in shared.lua) VIP = {} VIP = { name = "No VIP", salaryboost = 1,

mindfulhacker 2 reading
4 Hours Ago
by mindfulhacker Go to last post
2 57
Help
 

Give ranked players weapon on spawn (TTT) ( 2 Last )

Hi all! Yes im a LUA noob, but im trying to learn. The idea is to give ranked players a weapon on spawn each round. Like a bonus for the regular playes. this is what I've made so far, but i keep getting the error: Lua 4: function arguments...

4 Hours Ago
by Sm63 Go to last post
48 4,820
Help
 

GCFScape?

So, I've been trying to use GCFScape to find Breen Voices to add to a Half Life Two RP Server, for custom sounds. Yet, I can't figure out what to do, cause I am a newbie. 1. How do I edit the file to make a breen voice? it says for a CP Voice...

Dedpool 1 reading
4 Hours Ago
by Dedpool Go to last post
4 93
Lua scripting
 

Hiring a Coder MegaThread ~ Rip In Peace CoderHire ( 2 3 4 5 6 7 Last ) This thread has images

New Gmod Scripts/Jobs Site: ScriptFodder By now we all heard the news that http://coderhire.com/ is going to be closing it's doors so might as well go back to the good ol' megathread days. This thread is for anyone who wishes to hire a coder to...

5 Hours Ago
by UniqueGuy Go to last post
249 10,016
Help
 

How to retrive the number of players of another server.

Hello! First, sorry for my bad english, I'm french canadian. Feel free to fix my typos and all that stuff I will appreciate it :) So I own a community in which I host multiple servers (Cinema, Trouble In Terrorist Town, Deathrun, etc.) and what i'm...

5 Hours Ago
by raphy963 Go to last post
17 250
Help
 

solved Get nearest person

Hey guys! How do i possibly get the nearest player from my position?

5 Hours Ago
by Xaotic Go to last post
2 57
QUESTION
 

solved Help with finding the cause of server crashes?

I've been running a TTT server for a month or so and recently the server has been crashing daily, around 2+ times a day. I've got no clue if an addon is causing it but I do have the mini dump files but I'm unsure how to read them properly (I know not...

6 Hours Ago
by serfma Go to last post
4 146
Lua scripting
 

Simple Lua help

Hello guys, I got a small problem with my code. What am I doing wrong with it? I know its sooo easy but I am very tired and I cant find the problem. Nope I am not getting any errors. Code:

7 Hours Ago
by LetsTutorial Go to last post
4 83
Lua scripting
 

Including other lua files?

So, im writing an addon. The main majority of the code is in sv_-snip-.lua which is in -snip-/lua/autorun/server/ . I want to have a settings file, at first im trying to get it work in the same folder. so settings.lua in -snip-/lua/autorun/server/ . Heres...

Strideynet 1 reading
7 Hours Ago
by Strideynet Go to last post
4 66
Lua scripting
 

Quick help for donator rank weps.

Hey all I wrote abit of code but it doesn't seem to work, was asking for some advice. function roundstartbenefits() for k, v in ipairs(player.GetAll()) do if not v:IsSpec() then if v:IsUserGroup("donator") then ...

Dahedgehog 1 reading
7 Hours Ago
by Dahedgehog Go to last post
5 67
Help
 

[B]Last Prop Standing script[/B]

I'm looking for a code for prop hunt that gives the last prop a weapon. I've tried creating my own but nothing works. I've only seen a few servers that had this feature, so finding a code is next to impossible. Here is a code that might be helpful,...

covey88 1 reading
8 Hours Ago
by covey88 Go to last post
11 259
cpp
 

Passing Entites through Lua Modules.

I cant seem to figure out specifically what class type is being pointed at by lua userdata. int testLuaFunc( lua_State *state ){ UserData *ud = (UserData*)LUA->GetUserdata( 1 ); CBaseHandle *hent = (CBaseHandle*)ud->data; if( !hent ){ ...

mcd1992 2 reading
8 Hours Ago
by mcd1992 Go to last post
6 208
QUESTION
 

Get an entity's weapon class?

When weapon entities are on the world they are called spawned_entity. I wanted to get the weapon's entity name. For example, I used print( LocalPlayer():GetEyeTrace().Entity:GetClass() ) thinking I'd get something like weapon_crossbow, instead it's...

Winter 1 reading
11 Hours Ago
by ShadowRanger Go to last post
3 104
Help
 

Automatic Restart on Crash (i.e.

Currently I'm running Garry's Mod (for a TTT server) within GNU screen, so I can easily reattach to get access to the game console. (Running on a Debian box.) I have a shell script that boots the server with the required arguments, launching a new screen...

CaptainPicard 1 reading
14 Hours Ago
by mib999 Go to last post
3 130
QUESTION
 

sql.Query do not want to make another SQL table

Info http://wiki.garrysmod.com/page/sql/Query Hello, every1 When I use my dynamic SQL Query generator library, I get the following output. SQLCreateTable: Table PIECES Dropped ! SQLCreateTable: Indexed Table PIECES Created ! SQLCreateTable:...

18 Hours Ago
by dvd_video Go to last post
4 194
QUESTION
 

Checking if a spot is free

I want to check if the spot is free (SetPos) and if it's not then use a different one. I looked it up and I can't find anything to check if an entity is already in spot.

RonanZer0 1 reading
19 Hours Ago
by Disseminate Go to last post
3 150
Lua scripting
 

Disabling Advanced Duplicator 2 Uploads

Players have been able to upload stuff like e2 and weapons to my server and then spawn them in and I want to know how to disable uploading of files to my sever's advanced duplicator 2 tool. I found some info but its all on Advanced Duplicator 1.

19 Hours Ago
by Ott Go to last post
3 133
Help
 

Fixing stuff luaside with PAC3

In the development branch Metastruct has for PAC3. We have this thing called mdl_import which uses the VFS binary module. Sometimes the MDL's have 2 issues. 1. Texture scaling issues 2. Not being able to put multiple textures on models that need them ...

21 Hours Ago
by LUModder Go to last post
4 122
QUESTION
 

What would cause all weapons to change DMG Type?

I recently installed M9K weapons, but only as skins in my PointShop. (Yeah, Pointshop) Lately players have pointed out that my leaderboards were no longer working so I checked the damage type and it turns out to be 8194 (DMG_ALWAYSGIB) when they were...

23 Hours Ago
by serfma Go to last post
5 190
Request
 

Requesting RP_C18_V1 VMF

Hey, so I don't post on here so much, or rather just request anything. I have looked nearly everywhere now and I can't seem to find a working original .vmf file for the map rp_c18_v1. If anybody has any information or even said file, it would help out a...

1 Day Ago
by Liink Go to last post
6 183
Help
 

solved Need help with NPC shop

I have the NPC spawning, unable to move, or take damage. Now I need to set it up so useing the NPC (push e) opens a derma menu, but I can't seem to figure out how to do that. Every tutorial that I have found so far regarding NPC shops is i suspect...

1 Day Ago
by narpuppy Go to last post
2 101
Help
 

Save DColorMixer color

I'm in need of a way for the color chosen on a "DColorMixer" to be saved as the color of a, DFrame in this example. I've got it working to where when the frame is open, the mixer is shown on the panel. When I change the color on the mixer, the frame...

1 Day Ago
by IMayhem Go to last post
2 105
Help
 

Some Crossbow

Problem: When this crossbow is shot at someone, it instantly damages them (70 damage) while shooting a projectile (a visual bolt) that eventually hits right after, and does 0 damage. Is there a way for me to make the visual bolt do the damage? It...

1 Day Ago
by Acecool Go to last post
1 85
Lua scripting
 

solved Pointshop Item - Ranks

So I had this idea where I wanted to offer ranks by points in the pointshop. I want to add an item that users can buy that would be a price like 50,000 points and they can use their points to buy the rank "VIP" or something similar. Is there anyway to do...

1 Day Ago
by bluebull107 Go to last post
6 107
Lua scripting
 

Transmitting Sound

How might I hook into gmod and do the following. Make a an entity that looks like a can. Then take all the sounds it picks up, at their sound strength. The transmit them syncronously to another entity, a barrel, as a speaker. Think how you can...

BlueMustache 1 reading
1 Day Ago
by BlueMustache Go to last post
12 239