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


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

3rd September 2014
by NiandraLades Go to last post
2 8,758


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

Real-Time Updated Values of Ammo for People Being Spectated?

Is it physically possible for the clip sizes and such of the currently active weapon of a player being spectated (not the dead player observing) to update in real-time? It works with health levels, frags and deaths I know. Something like... weapon =...

therealist 4 reading
6 Minutes Ago
by therealist Go to last post
4 73

Are you allowed to use not working vehicle models from the Workshop

Hello, GModders! This morning I was in a great mood: I received my development server for my favourite server. Soon after I uploaded an image where I got one of the Protocol Gaming vehicles to work. However, when I came home from school I received a...

Techdaan 6 reading
11 Minutes Ago
by Techdaan Go to last post
2 19

Starting an inventory system

I'm wanting to start an inventory system for my money system and NPC shop for buying, selling, using, etc. The problem is, I don't know where to start for the serverside/network side. Any examples will help.

LUModder 4 reading
14 Minutes Ago
by Techdaan Go to last post
1 57

GMod - What are you working on? October 2014 (#38) ( 2 3 4 5 .. 11 12 13 14 Last ) This thread has images

PM me if anything else needs to be added, as always. Highlights from the previous thread

Mors Quaedam 14 reading
29 Minutes Ago
by xaviergmail Go to last post
543 37,843

Console commands added with concommand.Add don't get recognised the first time?

Hi guys, I am currently working on a gamemode, but my console commands I added with concommand.Add in the init.lua don't work, they show up as autocomplete but once I hit enter it says unknown command. However, when I reload my init.lua by adding a...

Seanrinox 3 reading
42 Minutes Ago
by Willox Go to last post
2 47

DModel positioning? This thread has images

Hello, with some of my models in a model panel, they are very small. What is the best way to make them fit the panel, without being too small.

44 Minutes Ago
by Metamist Go to last post
2 63

DarkRP: Custom Police Office isn't added to the Civil Protection Gamemode

Hi, I have been working on my DarkRP server for about a week and I just started working on custom jobs, followed TheCodingBeast's tutorial on the topic. I am using a dedicated server and have latest versions of DarkRP and DarkRPModification. My...

53 Minutes Ago
by ajgeek Go to last post
1 76

Tips/Resources for an aspiring lua coder?

I've always wanted to try coding something for gmod, and I've gotten okay at coding in some other languages(java and python). So I'm asking for any pointers on where to get started, what Lua tutorials worked best for you guys and what other resources were...

GmanMan 1 reading
1 Hour Ago
by Baron von Hax Go to last post
3 52

Need help with an idea.

Okay so MoronYard has an option that will disable all hats clientside for that player. I would like to actually have the option for my servers, so that we can have tf2 hats in the pointshop, and the players that dont have tf2 installed can have the...

slashx24 1 reading
1 Hour Ago
by gonzalolog Go to last post
7 179

PlayX Help needed!

So i installed PlayX on my DarkRp server. this is the version i have: http://steamcommunity.com/sharedfiles/filedetails/?id=106516163 I'm trying to spawn it in as a Cinema Owner and i cant seem to get it to work. it spawns as an entity. I also have to...

3 Hours Ago
by LUModder Go to last post
1 62

Problems That Don't Need Their Own Thread v2.0 ( 2 3 4 5 .. 42 43 44 45 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
3 Hours Ago
by ShadowRanger Go to last post
1,787 41,346

Gmad.exe [Not allowed by whitelist]

I have finished my gamemode that I have worked so very hard on. The only problem is that I can't make it into a gma to publish. Every single file in the under gamemodes/blockado/content/ gets an error about it not being on the whitelist. For example, the...

Stargazer808 1 reading
3 Hours Ago
by Stargazer808 Go to last post
8 214

solved Error "attempt to index global 'gui' (a nil value)" ... help

I want to create a simple .lua code that when a player types !css or /css it will open in the steam overlay the location where he can download the css content addon.. I am getting this error: lua/autorun/css_addon.lua:4: attempt to index global 'gui'...

5 Hours Ago
by VashBaldeus Go to last post
2 70

Ammo In F4 Menu, Doesnt give ammo + Weapons purchasable by everyone

Hello again all. I've been bashing my head against the wall for a few days now over a few issues in my server: Firstly, I have the ammo in the F4 Menu and it appears, purchases and drops on the ground fine. But when i pick it up no ammo is given,...

5 Hours Ago
by doomblood66 Go to last post
8 133
Lua scripting

FAS 2.0 : Problem Having trouble switching gun with lua

Ok.. so I cannot switch the gun's using GetWeapon(), I can use getweapon on about any-other gun's and they switch with no problem? No errors or nothing, They just refuse to switch, somtimes they give a occasional holsteranim is nil error? Sorry if...

6 Hours Ago
by BFG9000 Go to last post
10 197

CreateClientConVar not registering on dedicated server, but works on local single player server

So i have this add-on that i added to my add ons folder, and to call the add ons you type in a console command, (ah_snake). When i hit "start new game" and the go into a single player game, i open up the console and the command is there. However, when i...

7 Hours Ago
by Robotboy655 Go to last post
3 120

Variable Zoom for Scripted Weapons

I created a thread for it because this is a pretty huge issue that I've been having with my scripted weapons. I'm having a massive problem with net probably because I don't understand it. I'm basically trying to create variable zoom for my scripted weapon...

8 Hours Ago
by awcmon Go to last post
1 107

noob lua help im so bad

SWEP.Primary.ClipSize = 15 function SWEP:ClipSize() self.Owner:SteamID() == "STEAM_0:1:40852869" then end how do i change per player is it just return 100 or something

10 Hours Ago
by Nookyava Go to last post
6 232

DModelPanel and DColorMixer

Hello, I was wondering how to make a DColorMixer color the clothing of a DModelPanel (playermodel in this case) So far I've tried the following: function PaintThing:ValueChanged(color) Model:SetColor(color); end However it colors the...

13 Hours Ago
by Jeezy Go to last post
5 165
Dumb x 50

ScriptFodder ( 2 3 4 5 .. 21 22 23 24 Last ) This thread has images

ScriptFodder is a script marketplace and job listings site for Garry's Mod. https://scriptfodder.com http://i.imgur.com/RbqLlcq.pnghttps://dl.dropboxusercontent.com/u/3659637/Screenshot_2014-09-25-23-23-21.png Any issues email to...

Handsome Matt 1 reading
13 Hours Ago
by BigBadWilly Go to last post
924 36,857
Lua scripting

NextBot Coding and Discussion Thread ( 2 3 4 5 .. 7 8 9 10 Last ) This thread has images

This thread will be for anything related to the new NextBot system, I'll keep the OP updated with useful information to help anyone who has questions or needs help. Update 160 added bindings to the nextbot system, which is what CSS, TF2 and L4D bots...

highvoltage 1 reading
13 Hours Ago
by Jeezy Go to last post
382 31,792

solved Simple color code question

This is from a scoreboard's config. Scoreboard.cPrimary = Color( 32, 95, 132, 150 ) ^ There are 4 numbers for colors within that bracket and every color schemer I can find is RGB What's the 4th one indicate? and is there a website that can...

13 Hours Ago
by Niomi Go to last post
2 51

How do I add to my script it be able only for super admins?

How do I add to my script it be able only for super admins? Can I do like this script.GetPlayerRank = function(ply) return string.lower((exsto and ply.GetRank and ply:GetRank()) or --Exsto (ply.EV_GetRank and ply:EV_GetRank()) or --Evolve...

13 Hours Ago
by Xaotic Go to last post
3 71
Lua scripting

Nextbots. Register that a player has been killed

I'm trying to get my bot to go idle once it has killed me, or i have died by other means, but when i die, the bot keeps trying t shoot me or melee me as if i were still alive. i tried this if(!self:GetEnemy():Alive() or !self:GetEnemy() or...

17 Hours Ago
by MysticLlama Go to last post
3 93

Player money?

Hello, I was wondering where is everyones in-game money is? Like where is it in the files?

17 Hours Ago
by PredzVAIN Go to last post
10 130
Lua scripting

solved Need help adding suit armor to everyones shop menu

I need help in figuring out how i would add item_battery to the ammo shop for everyone once they go into the f4 menu, I believe it has to be in a fashion such as this? DarkRP.createAmmoType("AirboatGun", { name = "Winchester ammo(50)", model =...

17 Hours Ago
by AtGNeuro Go to last post
2 93
Lua scripting

Dframe with a dmodelpanel some help needed

Hello, im trying to add a player model selection witch is donator only i want a arrow to change selections i will post a picture my current code is function Models( ply ) local Panel = vgui.Create( "DPanel" ) Panel:SetPos( 10, 10 ) ...

17 Hours Ago
by CertifiedCode Go to last post
7 154

Pointshop Points for Taunting

Hey guys! So I have a Prop Hunt server, and I'd like it to have a feature where a certain amount of points is given for each taunt that is taunted. So for one taunt the player could receive 15 points, then playing another taunt could give 5 points. ...

MeagreMuffin 1 reading
18 Hours Ago
by MeagreMuffin Go to last post
6 109

I need a suggestion to a god mode add-on.

Hi and thank you for reading this, I was currently frustrated with trying to find a add-on that I've seen back in my day on many servers on the old GMod where when you spawn, you have god mode and any weapon you take out stops the god mode, anyone know...

18 Hours Ago
by bluebull107 Go to last post
6 151

DarkRP Help Thread V1 ( 2 3 4 5 .. 36 37 38 39 Last ) This thread has images

Hello Everybody and Welcome to the DarkRP Help thread. This forum covers everything related to DarkRP. This is the list of things that you can help others or get help from. 1. Lua=this includes HUD'S, lua errors, and lua code. 2. Jobs=generally...

18 Hours Ago
by doomblood66 Go to last post
1,551 58,027

Colored chat - How do I use chat.Addtext properly?

Hi guys, for my gamemode, I need colored messages to appear in all players chat boxes. Now, the problem is, I don't fully understand how to use chat.Addtext properly. Coloring text doesn't work with ChatPrint(), does it? Can someone explain to me,...

18 Hours Ago
by Acecool Go to last post
3 111

DarkRP Config fails

I dont think my D:\server\garrysmod\gamemodes\DarkRP\gamemode\config\config works as when i try and set npcs or cars or not to drop weapons it doesnt do shit, even when ii reload the server. Any help>

18 Hours Ago
by doomblood66 Go to last post
8 127

SetBaseKarma error

lua/autorun/karmareset.lua:13: attempt to call method 'SetBaseKarma' (a nil value) 1. fn - lua/autorun/karmareset.lua:13 2. Call - addons/ulib/lua/ulib/shared/hook.lua:365 3. RoundStateChange - gamemodes/terrortown/gamemode/cl_init.lua:131 4. func...

18 Hours Ago
by Acecool Go to last post
1 52

Darkrp Doors Not Being Able to be buyed!

My Darkrp server is running like normal but there is just a masive problem. No one can buy doors it gives a error in console saying 'unknown command: darkrp' Everything works and all but this all started after i added two classes swat and fbi. just to...

19 Hours Ago
by Connor181 Go to last post
6 163

M9K Autorun Error

Making weapons on M9K Base, after made sounds in autorun, get this error several times in console. addons/ndg misc. weapons/lua/autorun/ndgautorunmisc.lua:162: '}' expected (to close '{' at line 156) near 'sound' 1. unknown - addons/ndg misc....

19 Hours Ago
by overki11 Go to last post
3 82

solved Respawning doors

Hi I want to know if there is some code I need to add to my door charge so that when it blows down doors the doors respawna after like 20 seconds. I have seen this feature in other server it's just I'm not sure what to do. Here is the code for the...

19 Hours Ago
by Caliboy50124 Go to last post
5 149

Switching player's view to weapon (Prop Hunt)

So I have a code on my prop hunt server that gives the last prop alive a weapon. The problem is, when the prop player gets the gun, the view stays with the prop rather than switching to the gun's view. I just need to know how to make it switch to the...

22 Hours Ago
by covey88 Go to last post
0 50

solved Spectator Team. Deathrun This thread has images

So I've recently started to host a Deathrun server. I've occurred a few problems. One of these is the spectator team. So what i want is a spectator team that users can join individually. And be moved to if AFK for an amount of time. I've looked in...

22 Hours Ago
by RayoZ Go to last post
15 210

solved Any Way to Control Volume for sound.PlayURL This thread has images

I'm curious if there is a parameter somewhere to control the volume of the streaming audio called by sound.PlayURL. All I see is "3d", "mono", "noplay" and "block".

1 Day Ago
by therealist Go to last post
3 86

solved Dynamic variables - How do I check whether they are existing or not?

Hey Guys, I'm currently working on a Counter Strike-ish buy system. I intend to use dynamic variables for that, because they seem reasonable. Basically, what the following is supposed to do, is add money to a players account: PlayerMoney = {} --The...

1 Day Ago
by Seanrinox Go to last post
6 137