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


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,431


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,375

Problems That Don't Need Their Own Thread v2.0 ( 2 3 4 5 .. 29 30 31 32 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 3 reading
11 Minutes Ago
by Acecool Go to last post
1,250 28,341

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 6 reading
16 Minutes Ago
by PaellaPablo Go to last post
3 143
Lua scripting

Antispam Prototype This thread has images

Hey im currently working on an antispam script which should be a bit more intelligent than just preventing ppl from spawning props if they reaced like 5props / sec. Initially just wanted to get a system that prevents ppl from spawning props inside each...

Uke 3 reading
1 Hour Ago
by Uke Go to last post
0 72

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...

2 Hours Ago
by >>oubliette<< Go to last post
6 224

solved How to restrict pac3?

I have seen it restricted to a single ulx group before on different servers, how do I do it to mine?

2 Hours Ago
by tallsparton Go to last post
10 113

damage stuff in lua

How would I get back damage only or head only damage

log404 1 reading
3 Hours Ago
by mcd1992 Go to last post
6 197

solved I am new to coding darkrp and I need help

addons/darkrpmodification/lua/darkrp_config/settings.lua:150: unexpected symbol near '23rd September 2014 It only says = "superadmin", at line 150

3 Hours Ago
by helplesskitty Go to last post
10 169

Furryfinder for Linux?

Does anyone have a copy of gmsv_furryfinder for Linux? (or have the ability to compile it for me :3) Can't seen to find it anyway, nor can I find an alternative (SAPI is not an alternative).

3 Hours Ago
by Jarva Go to last post
12 337
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 5 reading
4 Hours Ago
by Acecool Go to last post
3,630 192,238

Trying to integrate hook into a functions breaks the function

Hi I'm trying to call hooks whenever a prop gets un-/frozen but after running the code I can't freeze anything anymore. oldfrz = oldfrz or _R.PhysObj.EnableMotion function _R.PhysObj:EnableMotion(bool) local ent = self:GetEntity( ) if bool...

5 Hours Ago
by Uke Go to last post
2 94

Help with custom ULX command

So I'm wanting to make a command that gives a player the item_ar2_grenade (This is for Prop Hunt) I want it so when a player types !buy it will spawn them the grenade. And if they type !buy 3 it will spawn them 3 grenades. I've tried to make a command...

6 Hours Ago
by CallMePyro Go to last post
1 77

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 6 reading
7 Hours Ago
by Giraffen93 Go to last post
444 29,473

Derma check if open

local blah = vgui.Create("DLabel", myParent) blah:SetPos(ScrW() / 2, ScrH() / 2) // Position blah:SetColor(Color(255,255,255,255)) // Color blah:SetFont("default") blah:SetText("PRESS E TO START ROUND") // Text blah:SizeToContents() // make the...

8 Hours Ago
by Robotboy655 Go to last post
3 133

Source Compiler Tool Development

Hey everyone - my name is Jeanette and I'm the Junior TD at Mixamo. We're working on some tools where you'll be able to rig, animate and download character models compiled for Source games with a one-click installation process and Gary's Mod is one of...

mixamobuddy 1 reading
8 Hours Ago
by Robotboy655 Go to last post
5 313

Derma (text only) not working, or is it the hook?

What I want to do is make text be displayed at all times unless a value is true. This is my code: Derma for text: function StartARndGUI() local blah = vgui.Create("DLabel", myParent) blah:SetPos(ScrW() / 2, ScrH() / 2)...

RonanZer0 1 reading
8 Hours Ago
by robbert^^ Go to last post
1 85

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:::::::....

8 Hours Ago
by gonzalolog Go to last post
9 243
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 2 reading
9 Hours Ago
by gonzalolog Go to last post
187 7,107

solved How does CustomEntityName:IsBLAHing thing work?

This is kinda hard to explain. Various mods have things like ent:isRolling (just an example). how do you define things like that? I just don't know what it is actually called or what it can do. Like I wanted to do CustomDoor:IsBreaching or something but...

13 Hours Ago
by gonzalolog Go to last post
9 141
Winner x 26

ScriptFodder ( 2 3 4 5 .. 7 8 9 10 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 2 reading
13 Hours Ago
by helplesskitty Go to last post
367 13,423
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,...

16 Hours Ago
by AnonTakesOver Go to last post
13 324

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 -...

18 Hours Ago
by Retalak Go to last post
2 145
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...

19 Hours Ago
by DerfStew Go to last post
8 127

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...

19 Hours Ago
by MasterKenneth Go to last post
0 63

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 1 reading
20 Hours Ago
by Robotboy655 Go to last post
7 124

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?

20 Hours Ago
by mushroompizza Go to last post
4 98

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 1 reading
20 Hours Ago
by Internet1001 Go to last post
1 74

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,

20 Hours Ago
by mindfulhacker Go to last post
2 68

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...

20 Hours Ago
by Sm63 Go to last post
48 4,844


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...

21 Hours Ago
by Dedpool Go to last post
4 110
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...

YourStalker 1 reading
21 Hours Ago
by UniqueGuy Go to last post
249 10,051

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...

21 Hours Ago
by raphy963 Go to last post
17 260

solved Get nearest person

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

21 Hours Ago
by Xaotic Go to last post
2 67

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...

22 Hours Ago
by serfma Go to last post
4 152
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:

23 Hours Ago
by LetsTutorial Go to last post
4 94
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...

23 Hours Ago
by Strideynet Go to last post
4 75
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 ...

1 Day Ago
by Dahedgehog Go to last post
5 73

[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
1 Day Ago
by covey88 Go to last post
11 269

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 ){ ...

1 Day Ago
by mcd1992 Go to last post
6 219

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...

1 Day Ago
by ShadowRanger Go to last post
3 111

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:...

1 Day Ago
by dvd_video Go to last post
4 196