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

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 these resources: https://scriptfodder.com/ Want to learn to code? http://facepunch.com/showthread.php?t=1250283

garry Winner x 38
3rd September 2014
by NiandraLades Go to last post
2 17,203
Garry

MODDING HELP - READ ME FIRST - LAST UPDATED 5 OCTOBER 2015

This forum is for help modding Garry's Mod. This does NOT include Mapping or Modelling. Mapping: http://facepunch.com/forums/40 Modelling: http://facepunch.com/forums/38 Your first port of call should be the Garry's Mod Wiki. If you don't find...

garry Lua King x 27
27th February 2013
by garry Go to last post
0 17,618
Love

GMod - What are you working on? July 2016 (#59) ( 2 3 4 5 .. 10 11 12 13 Last )

Highlights from the previous thread

26 Minutes Ago
by Netheous Go to last post
489 29,430
Help

Easily accessing serverside values clientside

Hi. Does anyone have some advice on how to easily access serverside values from clientside? As in, being able to view them without the ability to modify? An (obvious) example of this is Health and Max Health, you can see both with Health() and...

overki11 3 people are reading this thread x 3
33 Minutes Ago
by overki11 Go to last post
2 29
Love

Mod Mountain - The Better Garry's Mod Marketplace ( 2 3 4 5 Last )

Mod Mountain is a brand new marketplace for Garry's Mod addons with a focus on community and transparency. Most of you already know the drill by now, so let's just go into some of MM's unique features: - Team Revenue Splitting: easily share addon...

58 Minutes Ago
by andreblue Go to last post
181 7,871
Post Your

Problems That Don't Need Their Own Thread v4 ( 2 3 4 5 .. 69 70 71 72 Last )

Welcome to Problems That Don't Need Their Own Thread v4! Have a small problem in your Lua code that keeps nagging you, but you feel like it's not worth making a thread for? Well then you've come to the right place! Reply to this thread with your...

1 Hour Ago
by bobbleheadbob Go to last post
2,862 72,712
Garry

Next Update v5 - April 2016 Update is out! ( 2 3 4 5 .. 18 19 20 21 Last )

http://cdn.akamai.steamstatic.com/steam/apps/4000/header.jpg?t=1421333577 Changelog Main repository Pull requests Latest update is out: http://www.garrysmod.com/2016/04/28/april-2016-update/

1 Hour Ago
by DarthTealc Go to last post
838 59,087
Question

How do I set spawns up to face a certain direction for each spawn?

Currently using DarkRP When I do "/setspawn (job command)" in a certain location facing a certain way, when you respawn, it just faces one direction for each spawn you set. So when I set a spawn, each spawn you set all face one direction for each...

1 Hour Ago
by StaticXNation Go to last post
0 20
Help

TTT Hooks

I was wondering if there is a website where i can find all of the ttt hooks. PS http://ttt.badking.net/ doesn't have all of them

2 Hours Ago
by code_gs Go to last post
1 49
Help

you are unable to /demote

For some reason, I can't demote anyone on my server which I need to know how :( Sorry If I sound like a noob, I'm a beginner in some things, not all tho. So all I know is when I try to demote someone, it says "you are unable to /demote" Thanks to...

4 Hours Ago
by RandyButter Go to last post
3 99
Help

[ERROR] lua/giverandom.lua:205: attempt to call method 'Give' (a nil value) 1. unknown - lua/giver

So basically, I am trying to make a command that gives me a random gun from a predefined list, but whenever I run it, it gives me this error: lua/giverandom.lua:205: attempt to call method 'Give' (a nil value) 1. unknown - lua/giverandom.lua:205 ...

5 Hours Ago
by obesewhale Go to last post
17 334
Help

Hud doesn't work on dedicated server?

I've created my own gamemode, with its own hud. I'm running it on my dedicated server for me and my friends to enjoy. So far there are no real gameplay bugs and we've been having tonnes of fun, but there's one little problem with the gamemode's custom...

6 Hours Ago
by KO #1 Go to last post
5 153
Shitpost

solved UnMakePopup? Is it possible?

Hi, is there way to make DFrame not MakePopup?

6 Hours Ago
by Koji6ac9H Go to last post
6 165
Release

Simple Radio/Comms command for DarkRP

Hey everyone, this is my first attempt at creating a Gmod script of any kind. Basically its a re-do of the /advert command but instead of /advert its /radio, /comms, or /coms that puts out text in the format of *yourname* : *your message in bright...

6 Hours Ago
by skullorz Go to last post
10 220
Lua

ScriptFodder - The Garry's Mod Marketplace ( 2 3 4 5 .. 46 47 48 49 Last )

ScriptFodder - The Garry's Mod Marketplace ScriptFodder is tailored towards two types of people, if you're a Garry's Mod server owner, ScriptFodder can offer a variety of premium content for your server, or if you're looking for something a little more...

7 Hours Ago
by roastchicken Go to last post
1,920 70,531
Lua

HUD Kill Feed troubles

So I have this weird problem that I have been trying to work out for a couple of hours. I am making a kill feed. (going for something similar to this) Here is my code-- init.lua--

7 Hours Ago
by bosnian_cyco Go to last post
0 75
Question

Find water's surface with trace

How can I find where air changes to water and vise-versa? I tried using a combination of trace masks, but I couldn't find anything that would void out empty space.

8 Hours Ago
by code_gs Go to last post
4 99
Lua

Need Help With Derma Panels! And Net Libraries

Im trying to get a derma panel to open with a chat command! I cant seem to get it to work. FYI(I am running a dedicated server with the DarkRP gamemode. Also i have VERY little knowledge about lua coding itself. I am trying to learn more so please no...

8 Hours Ago
by PureCTRL Go to last post
8 199
Help

Recording all the palyers in the game? video.Record

I havn't ever used video.Record before because really it ain't something people use... but I was thinking of a system were people can report a player? and when we type a command in chat it loads up the players replay? local config = { container =...

8 Hours Ago
by Mitsudigi Go to last post
7 230
Help

solved HUD Help (Again)

Hello FacePunch, I need some help coding a HUD. I released some code that I later decided to scrap because it was a bulkey design. It is now one bar. I am needing to invert or reverse the animation of which the armor bar increces and decreses when the...

8 Hours Ago
by Syntax2056 Go to last post
6 129
Lua

Worldmodel Bodygroups Broken.

I'm not really sure how to even explain this bug, so here's a video and my code. Code function SWEP:DrawWorldModel() if CLIENT then self:DrawModel() self:SetBodygroup(1,self.ShieldGroup)

9 Hours Ago
by code_gs Go to last post
3 66
Lua

solved Protect my code?

If i've created an addon and sell it to a customer on PayPal, and if i'm scared that he is going to sell it again for more. Is there a way that i can do so he is not allowed to resell it. Please help. :)

9 Hours Ago
by typedef state Go to last post
1 69
Steam

How can i upload my mods to steam

Hi! i make a gamemode for Garry's mod and i wanted to ask how can i upload it to steam workshop thanks :D

10 Hours Ago
by Robotboy655 Go to last post
4 102
Lua

DarkRP Entity Take Damage help

Hi, I've been trying to get a GM:EntityTakeDamage function to work in darkrp but no matter what I try I can't get it to work and I keep getting lua errors. This is what I have so far. PlayerLoadout = function(ply) function GM:EntityTakeDamage(...

11 Hours Ago
by Kiro The Pro Go to last post
1 60
Lua

Help With Wings And Hats Code

hi i want to add to my pointshop these wings : http://steamcommunity.com/sharedfiles/filedetails/?id=107165776 i try somethings and i still failed and i have this addon of hats and stuff and i want to add it to to my pointshop :...

12 Hours Ago
by code_gs Go to last post
8 209
Help

solved MOTD Edit Help

I want to edit the code of the MOTD to make it open it after a set time on a loop. I've tried adding a "for do" and "simple timer" but none of these worked. Here's the unedited version of the MOTD. Thanks! ulx.motdmenu_exists = true local mode...

13 Hours Ago
by Noble Atticus Go to last post
2 84
Lua

solved Need some HUD help.

I need some help with antialiasing this HUD and Scaleing it propperly insted of the way it is being scaled now. Scaleing works but doesnt at the same time. The HUD code will be below. --SNIPCODE--

13 Hours Ago
by Syntax2056 Go to last post
6 109
Lua

dont see the model

hi i have deathrun server and i was trying to change the death model with this code : i removed this code from init.lua : ply:SetModel( mdl or table.Random( rModels ) ) for this code : if ply:Team() == TEAM_RUNNER then ply:SetModel( mdl or...

13 Hours Ago
by soosy Go to last post
10 101
Help

solved Turbostrois for linux server

I have server what is running on linux. i want players to driver train. Metrostroi trains are so detailed that when i spawn one train with three waggons server dosen't lag. But when 2 trian is spawned server starts lagging. Turbostroi is lua file what...

14 Hours Ago
by GXsakuboy99 Go to last post
4 94
Lua

solved Strange issue regarding particles

Hello, em... so I've tried to make particles for the first time, basically, and while I thought that I got it, something strange happens. I've made a rain effect which, upon start, starts to go off every 5 seconds and go on again. Here's a video: ...

14 Hours Ago
by typedef state Go to last post
6 64
Help

Adding custom weapon information to corpses?

Hi! I was wondering how to add information to corpses for custom weapons in TTT. I've noticed how Radar, disguiser, and body armor would show up when you checking the body. Saying something vague like "This person had technology that would hide his...

16 Hours Ago
by markusmarkusz Go to last post
1 82
Lua

csgo knives disappeared

hi i have deathrun server with pointshop and when someone buying an knife from the shop It disappeared after one round and cant be equiqed anymore even if im doing holster and then equiq its still dosent work this is the code im using : ITEM.Name =...

16 Hours Ago
by meharryp Go to last post
4 115
Help

Custom Money Printer Help! URGENT!

So i am fairly new to lua scripting and id like to know more about it. But before that... I need some help with this error im getting. I would like a quick response please! And i dont want details on how i can learn to do it i just want to know whats...

16 Hours Ago
by VoXBox Go to last post
22 272
Help

Using Next() in lua. Help with for loops and spectator function.

I've been trying to figure out how to go the the next active player in a table using various loops and functions. I have a networked spectate function made which is activated by a button press on the client in a derma menu. The client button click...

18 Hours Ago
by typedef state Go to last post
7 178
Help

Need a log error solved!

Hello! I am a developer of a CW:HL2RP Server. I have an issue where in my server logs it shows this error } Calling GetCollectionDetails Response missing: {

19 Hours Ago
by typedef state Go to last post
1 82
Help

Creating an NPC ( 2 Last )

Hello, I was wondering how I would create an NPC, where when you interact with it, a menu pops up with information, I have no idea how to create the actual NPC and was hoping someone could point me in the right direction. I sort-of know how to create the...

19 Hours Ago
by UnknownFusion Go to last post
69 998
Lua

SQL to MySQL issue (MySQLOO) Need help

Guys I don't understand what is the alternative for sql.Begin() and sql.Commit() in MySQLOO, can someone explain to me what can I do to replace them? Is it really needed or does MySQL works with them? Thanks for reading (Rated dumb on the way I bet) ...

19 Hours Ago
by typedef state Go to last post
3 102
Lua

F4 Menu Error

gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:27: attempt to call field 'toggleF4Menu' (a nil value) 1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:27 2. unknown -...

1 Day Ago
by Klaes4Zaugen Go to last post
5 183
Help

Help with Basic GLua

Hi there, I'm currently learning to code lua, but I'm slightly stuck on how to get the GM:PropBreak to detect the prop broken. Here is my code: local function PropBreak( client, prop ) chat.AddText(client, " just broke the prop...

1 Day Ago
by MPan1 Go to last post
7 142
Help

solved surface.DrawPoly not working propperly.

For some reason when I do surface.DrawPoly it doesnt show all of the polygons. I dont know why this is but I have tried everything and no luck. This is a darkrp hud. Also errors dont appear when this happens as well. -snip- Who ever helps me...

1 Day Ago
by Martin132 Go to last post
4 205
Question

Run speed equivalent to hammer units?

I wasn't sure if this was a question for mapping or here, so don't ban me or anything (plez no!). What is the player class property 'RunSpeed' equivalent to in hammer units? In the context of player classes, what is the class property 'Runspeed'...

1 Day Ago
by vrej Go to last post
7 224
Lua

Easy Entity Help

I have a addon that i need help allowing the player who bought the entity (DarkRP) to be able to move it with a physgun, i would like this entity to be picked up only by the player who spawned it and can use the physgun on it. I have tried multiple tricks...

1 Day Ago
by typedef state Go to last post
2 77
Help

How to run server-sided autorun scripts on map or server start.

One last post today: How does one automatically run a autorun.lua file which is in the addon/lua/autorun/server/autorun.lua folder? Whenever i restart the server it does not seem to run properly, which is a shame considering i need some entities to...

1 Day Ago
by wh1t3rabbit Go to last post
4 153
Lua

Lua code- slow people with certain armour values (pls help)

Hey guys, I want to make a lua code that whenever someone has armour, lets say 100 they have a slower movement speed of for example, 350 The thing is, (as far as I know) A- You have to make the code check every few seconds if someone has that certain...

1 Day Ago
by Mrkrabz Go to last post
1 74
Lua

I have a great issue in charge-up SWEP.

So... I made a code that makes weapon fire with a delay (Charge-up). It works well besides the fact that i can't see the projectile traces when shooting. Without timed shots traces were visible. function SWEP:FireProj() local bullet = {} bullet.Num...

1 Day Ago
by xgdg Go to last post
8 91
Lua

A function which would be able to check for money.

Hey So i am writing you this message cause i am searching for a function with be able to check for money like left click show how many money a player got ( in a swep ) Thanx ^^

1 Day Ago
by code_gs Go to last post
1 64
Help

solved attempt to call field 'Get' (a nil value) with custom scoreboard.

So I completed that scoreboard I was working on, but now whenever my players click on a tool, go to the NPC/Weapons/Entities tab, an error like this appears: gamemodes/sandbox/gamemode/spawnmenu/contextmenu.lua:213: attempt to call field 'Get' (a...

1 Day Ago
by VeXan Go to last post
3 63
Help

Avoiding Karma loss for a player affected by the Traitor Chip

Hello! I've been working on fixing a TTT weapon called the Traitor Chip, but i've had no luck!. The weapon allows traitors to place a chip on the back of someone's head, then the traitor would left click the remote to make the chipped player misfire...

1 Day Ago
by geferon Go to last post
10 255
Help

How to give access to playx to one player?

I would like to give playx access to only one person (using ULX). Thing is I don't know what commands to authorize.. I would go with: ulx userallow "name" "playx_uri" but it doesn't work.. the player still gets "you do not have permission to use...

1 Day Ago
by Marmigamed Go to last post
4 113
Help

solved table.Random: Is it possible to make a chance system with it?

Hello, so recently i made a thing that spawns random loot like in dayz or rust. Of course it's still a WIP, but it works for now. The problem is that when i make: strangethings = { "cw_g4p_m16a2", "", "", "", "", "", "", "", "", "" } As you can see,...

1 Day Ago
by BlackSnow Go to last post
2 71
Help

Need Help with adding Sound when the players health is at 25 and below ( 2 Last )

I have started to make some HUDs and i really wanna add some custom sounds to them i have tried for about 3 hours now trying to add some type of sound but nothing is working or i just keep getting errors like this oneCSoundEmitterSystemBase::AddSound(...

1 Day Ago
by Lavacoal123 Go to last post
43 593
Help

How to make swep (weapon) use several sounds for shooting?

How to make swep (weapon) use several sounds for shooting and reload sounds (clipin, clipout, boltpull)?

1 Day Ago
by Leystryku Go to last post
2 94
Lua
1 Day Ago
by Martin132 Go to last post
3 158
Lua

solved Intermittently omnipresent to ents.FindInSphere

Anyone know why i am intermittently omnipresent when using ents.FindInSphere? I have GM:Think timer checking a sphere for ents/players making sure both IsPlayer() and Alive() are true - Example: TheTable = { { Size=150,...

1 Day Ago
by Gedo789 Go to last post
5 139
Lua

solved Whats wrong with this code?

Whats wrong with this? lua/entities/custom_printer/cl_init.lua:47: attempt to index global 'umsg' (a nil value) 1. DoClick - lua/entities/custom_printer/cl_init.lua:47 2. unknown - lua/vgui/dlabel.lua:218

1 Day Ago
by reece:D Go to last post
5 98
Lua

NetworkVar function returns nil value

Hey guys just a quick one. I made a custom player class, everything's was going smoothly, the player was given all the attributes I assigned it, the loadout override function worked fine, but when I add a self:NetworkVar() call to my...

1 Day Ago
by Robotboy655 Go to last post
3 108
Help

How could I edit/create a GM function from an addon?

'GM' doesn't get recognized outside of the gamemode's code, so what would I put in it's place? Would it be like DARKRP.Initialize?

1 Day Ago
by uRandomAlex Go to last post
2 131
Question

Say Command Edits

Hey guys i just want to know if its possible to like color the message which appears when you type say "text" using rcon like for example (Apparently i cant color text but lets just say red)Console: Hello server wassup And or change the text...

1 Day Ago
by MPan1 Go to last post
3 114
Lua

help csgo knives and more

hi i have csgo addon on my server this is the addon : http://steamcommunity.com/sharedfiles/filedetails/?id=506283460 and i want to add knives to my pointshop how do i do that ? and i have thirdperson addon and i want to set a command like !3p to do...

1 Day Ago
by soosy Go to last post
7 191
Lua

solved Get the skin in DModelPanel?

I'm attempting to make a NPC that will change your playermodel's skin / bodygroup, and I was wondering how I would get the DModelPanel's skin? Sorry if I didn't explain it correctly. If it helps, I want to do something like this: DModelPanel:GetSkin.

2 Days Ago
by ExTaZiE Go to last post
16 163
Help

solved GMod Linux Server Installation

So I've got a question, because I'm completely inexperienced with this. I want to install a Garry's Mod server on Linux, but I want to install it in to a different directory. If I use this as a directory: force_install_dir...

2 Days Ago
by andreblue Go to last post
5 86
Help

solved Name Rewards

Hey, So I wanna do a Name Reward script, the idea behind it is that when you join the server and you have a certain string in your name then you will be rewarded with some DarkRP money, I Want this to happen just once not every time you join the server....

2 Days Ago
by Rolekk Go to last post
16 366
Help

Are there any Models from "The Culling" available yet?

So I working on a gamemode based on "The Culling" (http://store.steampowered.com/app/437220/) and I am wondering if there are any ported models out there that I could use so it could save me time from creating models. Does anyone know anywhere I could get...

2 Days Ago
by jacobcooper18 Go to last post
2 76
Lua

solved Attempt to call method 'Fire' error

I'm adding a swep to lock and unlock doors. It (un)locks the doors just fine, but it gives me an error each time. Here's the code for the SWEP: if SERVER then AddCSLuaFile() end if CLIENT then SWEP.PrintName = "Keys" SWEP.Slot = 1

ExTaZiE 1 people are reading this thread x 1
2 Days Ago
by ExTaZiE Go to last post
2 97
Help

NextBots won't collide with anything

NextBot NPCs won't collide with props. they will, however, collide with other NextBots and players. this often leads to them phasing through what're intended to be defenses/traps. is there any known cause or solution for this?

2 Days Ago
by portalcrazy Go to last post
8 194
Help

ents.Create does not create vehicles. Any help?

Hello, seems like ents.Create does not create vehicles at all! For example, here is my code: local car = ents.Create( table.Random( cars ) ) if ( !IsValid( car ) ) then return end car:SetPos( Vector( -12485.921875, 4651.514648, 1274.078979 ) )...

2 Days Ago
by Nak Go to last post
6 113
Help

solved CreateSound on client-side is glitchy AF

I don't know what I'm doing wrong, but I've been more than an hour now trying to figure out how does the CreateSound function work in clientside, and why is so glitchy. Whenever I create a sound (which I need to create on a Think loop because...

2 Days Ago
by Robotboy655 Go to last post
8 120
Help

Why are NPCs suddenly retarded in multiplayer?

When I load an addon onto a multiplayer server, a lot of the functionality- (npcs following me, et cetera) is gone. Some NPCs, like the half-life 2 helicopter, don't even do anything! I mean granted, the helicopter is retarded in singleplayer, but it...

2 Days Ago
by BlackSnow Go to last post
5 248
Question

Playermodel for a specific player in pointshop?

Is there a way to make a playermodel purchasable only for a specific player in pointshop? If there is, how can this be achieved?

2 Days Ago
by MooreTwisted Go to last post
0 60
Help

solved Cop Model and adding the ranks with them to a TTT server

http://steamcommunity.com/sharedfiles/filedetails/?id=295069403 i add it i can do the ranks for sandbox but when i add models for TTT How do you add the ranks with them otherwise i just get regular models. 21st July 2016 normally when on TTT...

2 Days Ago
by C.Finley Go to last post
6 104
Lua

solved Overwrite ":" function

Hello, I want to overwrite a function from an other addon. The original function is something like: function addon:tooverwrite(arg1, arg2, arg3) ... end I want that if this function is called, I can do my staff and then call the original...

2 Days Ago
by ibot3 Go to last post
2 93
Help

List of bone attachments?

I know this is a basic question, but I'm using pointshop on a server, and I understand how to attach to Eyes. But I wan't to add a backpack and can't find a list of bone names for this function ITEM.Attachment = 'bone name' Thanks

2 Days Ago
by Gedo789 Go to last post
5 124
Help

TTT Damagelogs and Explosions

For some reason, TTT damagelogs (the addon or the built-in) do not like explosions. Here are two different attempts I have at making an explosion: function SWEP:PrimaryAttack() local ply = self:GetOwner() local trace =...

2 Days Ago
by markusmarkusz Go to last post
2 81
Help

Best way to get an NPC corpse?

I've had this question for a while, but no answers so far. What's the best way to get the corpse of an NPC, preferably in an GM:OnNPCKilled hook? I know I could use an GM:OnEntityCreated hook and do a timer from the time the OnNPCKilled hook was...

2 Days Ago
by MPan1 Go to last post
4 119
Lua

Need a design for a HUD!

I have made a HUD before, but the design was terrible as I improvised. Now I am asking if anyone has some bright ideas of a HUD. I want it for personal use! But the person whos design I use will get the HUD also.

2 Days Ago
by timz9 Go to last post
3 224
Help

Ent touch sound, and visual effects

So I made a barrel entity, and a sugar entity for a cooking mod im working on. I got the sugar jar to disappear when touching the barrel, but have yet to find out how to make the jar make the glass break effect, and sound. Here's the functions im...

3 Days Ago
by Apickx Go to last post
1 76
Question

solved Need Help : How to make a chat command

So in short, I'm trying to create a super simple script for DarkRP that simple does this: When a player types /comms *text* or /radio *text* it'll display the text like an advert but say Comms instead of advert and it'll be in blue text. So instead...

3 Days Ago
by FirstOrder Go to last post
0 59
Question

Some questions about the gmod lua.

So.. I am terrible sorry this is the wrong section for posting a question about gmod lua that has no code in it... but here goes (Thanks for not banning me.. yet, facepunch admins) This is my regular bases (I created: 'Star Wars Force Choke', if it's...

3 Days Ago
by PIXX Go to last post
3 92
Help

Workshop items (Skins, maps, etc..) not showing up in GMAD Extractor

So recently I started up my community again, and I can do all the coding and such without issues, but downloading workshop items works, but when I open gmad extractor it's empty. Any suggestions or reasons behind this?

3 Days Ago
by MPan1 Go to last post
4 90
Help

DModelSelect has errors for icons?

I'm trying to do something like the player model selector from sandbox in my gamemode. I've manged to get a DModelSelect panel on my DFrame but all the icons are errors! I saw the wiki page that said this is a bug, but I'm wondering if there's a way...

3 Days Ago
by KO #1 Go to last post
5 134
Lua

DarkRP F4 Any job being able to buy singular weapons but not shipments?

Title says it all. 21st July 2016 http://pastebin.com/Sm7n3mWY Thats the codes used

3 Days Ago
by UnknownFusion Go to last post
2 99
Help

solved Calling net.Start with unpooled message name!

Hey! I've ran into an issue where I am increasingly confident Garry's Mod is to blame for the error here, despite a verify of the game cache, but hoping a smartie could have a brief look at the code to assure me I am not going crazy! Originally it...

3 Days Ago
by Bings Go to last post
4 141