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,991
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 28
27th February 2013
by garry Go to last post
0 18,432
Lua

Geting players Name's

So i am making some thing for my server and i need the server to get the players names and i need it to write all the players names down in a text doc and later on i will make it in to a multi use doc. The problem is that the server is not writing or...

reece:D 4 people are reading this thread x 4
12 Minutes Ago
by NiandraLades Go to last post
1 16
Release

GMod - What are you working on? August 2016 (#60) ( 2 3 4 5 .. 8 9 10 11 Last )

Highlights from the previous thread

38 Minutes Ago
by MeepDarknessM Go to last post
400 30,177
Help

Simple SWEP issue

When I shoot something with my SWEP it doesn't say that I killed it, but the entity What's wrong with my SWEP script? if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end

1 Hour Ago
by HipsterRaptor Go to last post
3 43
Help

Prevent the opening/closing of doors?

Is there any hook for this? Not much to say here.

2 Hours Ago
by Jvs Go to last post
1 45
Lua

solved Making a sniper the way it should be

I want to have a cone of (practically) 0 when aiming with a sniper rifle, and insanely high when not aiming. But it looks like just setting self.Primary.Cone whenever the player aims/stops aiming doesn't work. How can I do this?

2 Hours Ago
by JasonMan34 Go to last post
4 87
Help

Really bad GMOD DarkRP bug/glitch.

I don't know if this goes for other servers too or if its just from something in my server but when players or admins type "debugcmd" in console it automatically gives them superadmin. You can see why this is such a big problem for my DarkRP server. I...

4 Hours Ago
by Robotboy655 Go to last post
5 121
Post Your

Problems That Don't Need Their Own Thread v4 ( 2 3 4 5 .. 82 83 84 85 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...

6 Hours Ago
by NeatNit Go to last post
3,385 89,053
Help

Why does this script crash?

Hello. Im trying to make an entity that clones all entities around it every few secounds but for some reason gmod immediately crashes when using this script function ENT:Think() for k,v in pairs( ents.FindInSphere( self:GetPos(), 300 ) ) do if...

6 Hours Ago
by NeatNit Go to last post
8 214
Help

solved XP System working out how much XP they just gained help

local client = LocalPlayer() xptable = {} if xptable == nil then table.insert( xptable, tonumber(client:GetNWInt( "XPBar" )) elseif tonumber(client:GetNWInt( "XPBar" )) != tonumber(xptable) then client:PrintMessage( HUD_PRINTTALK,...

7 Hours Ago
by jacobcooper18 Go to last post
4 114
Lua

Trouble getting sWep to play custom sound.

Howdy, sorry to bother you. But this is bothering me. Here's the code and the error below. Failed to load sound "weapons\mccree\nooner.wav", file probably missing from disk/repository AddCSLuaFile() if ( SERVER ) then resource.AddWorkshop(...

7 Hours Ago
by Robotboy655 Go to last post
13 156
Help

Addon has been literally copied

Sorry if this is the wrong thread. The description says "Help and discussion with development in Garry's Mod." I need help. Lol. I will be linking everything below and I will be showing code and screenshots. (The formatting of my code is a little weird...

7 Hours Ago
by Robotboy655 Go to last post
4 150
Help

solved Restricting DFrame movement

So basically i want to restrict the movement of a DFrame from left of right meaning i dont want players to be able to drag the DFrame left or right BUT i want them to be able to drag it up and down... Idk if this is possible but im drawing a blank.....

8 Hours Ago
by XxLMM13xXx Go to last post
5 72
Lua

Render.renderView a circle?

Hi facepunch! Is there any way to make render.renderView show up as a circle instead of a square? I'm making a minimap and want to try it out. Thanks! 23rd November 2013 I think one way to do this is to make render.renderView into a texture and then...

8 Hours Ago
by Klaes4Zaugen Go to last post
5 330
Lua

Pointshop 2 Hide Trails?

Does anyone know how to hide trails on a player? I can't figure it out.

8 Hours Ago
by Klaes4Zaugen Go to last post
3 83
Question

solved Entity with crate model, how do I break it like the prop version?

How can I make this crate entity break like the prop version? Should I spawn crate debris?

8 Hours Ago
by Winter Go to last post
0 30
Help

TTT Advanced End Round Music F1 Menu Not Work

local function AddSettings( dtabs ) local musicsettings = vgui.Create( "DPanelList", dtabs ) musicsettings:StretchToParent( 0, 0, padding, 0 ) musicsettings:EnableVerticalScrollbar( true ) musicsettings:SetPadding( 10 )...

10 Hours Ago
by pants73 Go to last post
17 274
Link

SourceMod.Market ( 2 3 4 5 Last )

You might remember the last thread I made in this section by the name of Scriptspawn which was essentially another marketplace. Since it's release, it has received lots of feedback which has inspired or influenced other marketplaces. However, Scriptspawn...

11 Hours Ago
by Zeh Matt Go to last post
175 5,021
Help

Make 3D2D face player

Hello everyone, So, I'm facing a problem here. I am working with 3D2D and wanted to make it face the player, however since the rotation is along the object's origin, it doesn't look right. I was wondering if someone has tinkered with this before, or if...

11 Hours Ago
by Chessnut Go to last post
4 80
Help

Turret Angles / Player Positioning.

Hello Facepunch, for a few days now i've been struggling to fix an issue I'm having, that issue is well... I cannot get my turret to face me, I'm unable to get the turrets angles to face me when I step inside the radius. I'd apprecaite it if anyone...

12 Hours Ago
by crazyscouter Go to last post
5 75
Help

render.RencerView cut to a filled circle

Hi :D can i cut a rect to a circle when i use render.RenderView i made a minimap with render.Renderview but i want it as a circle not a rect how can i do this?

13 Hours Ago
by poepel Go to last post
10 181
Garry

Next Update v5 - April 2016 Update is out! ( 2 3 4 5 .. 23 24 25 26 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/

15 Hours Ago
by zeaga Go to last post
1,025 73,809
Help

/advert not working on my DarkRP server

Hey whats up guys. So I got a problem on my DarkRP server. It's as simple as /advert not working. I use Atlas Chat but even when I take Atlas Chat off the server /advert does not work. When Atlas Chat is off the server /advert just says /advert "then...

16 Hours Ago
by [NS] aLpHa Go to last post
4 140
Help

Drawing over world and everything else

So I've got my addon where I want to fully encase the user inside this 'vortex', but so far I've been unable to render it over everything else. Below is a screenshot for context on what I'm trying to achieve - you can see the issue: ...

16 Hours Ago
by MattJeanes Go to last post
0 93
Lua

ScriptFodder - The Garry's Mod Marketplace ( 2 3 4 5 .. 59 60 61 62 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...

Handsome Matt Thread has images 2 people are reading this thread x 2 Dumb x 26
16 Hours Ago
by LegendEffects Go to last post
2,459 93,468
Help

Long Download

I own a TTT server on gmod. Of course, I have created fastdl for the server. Every time a player joins, they complain about the long download. A lot of players will even leave because of it. I think one of the main reasons the download is so long is...

17 Hours Ago
by Frag105 Go to last post
2 71
Games

Garry's Mod. Gmad dosen't work

So basically i made my own mod and got everything ready for the gmad to convert my folder to gma. I dragged the folder to gmad but there was no gma file made. I looked everywhere in the pc and found none. Can someone tell me what is my problem?

17 Hours Ago
by Peach Go to last post
3 68
Help

Re-enable lua refresh?

My Garry's Mod suddenly stopped doing lua refresh a few days ago and I cannot seem to get it to auto refresh again. Any one know what I may have done? (Im on single player btw)

17 Hours Ago
by Nookyava Go to last post
12 373
Lua

Circular Images

So I've been trying to figure out how to create circular images for something I'm working on for my server, and when I try to google how to create a circular image with LUA it tells me something like physics.AddBody() I'm not too sure if that is correct...

18 Hours Ago
by chikkenslayer Go to last post
20 327
Question

Consolechat command, help

So i made a console command thing and i need a script that if i for example type !test it executes the console command. Anyone?

18 Hours Ago
by code_gs Go to last post
9 258
Help

DarkRP bodygroups

Hello, I recently came across a very nice player model pack that would be great for darkRP. However this pack relies on bodygroups alot, so I was wondering how I would go about using specific body groups in the DarkRP job config model =...

22 Hours Ago
by vitoTCROA Go to last post
9 2,093
Help

Derma screen help

So i created a derma screen and stuff and i just need a command to open it via chat example !odst if anyone can make a command that if u type !odst it opens my derma screen, im a beginner coder so im sry :3

1 Day Ago
by Jason138 Go to last post
7 193
Help

solved Easiest way to get boundaries for an ents.FindInBox() zone?

any clientside scripts I can run to get a vector of where i'm pointing?

1 Day Ago
by portalcrazy Go to last post
2 89
Help

Derma screen DButton & DCheckBox

So i want to make it so when u check a box, it will make a button visable but i have no idea how to do that (New to coding) like : when u check the checkbox, it will make the button visable and u can exit the panel please help

1 Day Ago
by Jason138 Go to last post
2 114
Lua

[TTT] Adding a karma check to VOICE.Tick

I am an inexperienced LUA coder looking for help with my modifications to get TTT's voice drain to adjust depending on player's karma. I don't believe I'm using BOOLs or hooks properly at all, but here what I have: Setting up a NWBool on players based...

1 Day Ago
by sweetfoo Go to last post
0 65
Lua

attempt to index local 'object' (a function value)

Hello, I am getting this error and don't know how to fix it. lua/includes/util.lua:181: attempt to index local 'object' (a function value) 1. IsValid - lua/includes/util.lua:181 2. WriteEntity - lua/includes/extensions/net.lua:52 3. OnRun ...

1 Day Ago
by Sweepyoface Go to last post
2 88
Help

Help!!! My Whole Server of players is invisble

idk why but all of a sudden everyone is invisible for each other on my server please help

1 Day Ago
by jacobcooper18 Go to last post
4 190
Help

solved NPC's aren't spawning on map

I'm trying to make NPC's spawn only on a certain map in my gamemode. Here's what I have: function SpawnShopsOnMap() if game.GetMap() == "mememap1" then function SpawnEntities() if SERVER then local npc =...

BoneZed 1 people are reading this thread x 1
1 Day Ago
by BoneZed Go to last post
7 84
Question

How do you create in game commands that lead to links?

Im wondering how to create in game commands such as !donate that leads to a steam overlay link Anyone know how? Ive done it before but I cant remember how

1 Day Ago
by MPan1 Go to last post
10 206
Shitpost

Fixing CW Grenades having inf ammo

Fix for infinite grenade ammo for this addon https://steamcommunity.com/sharedfiles/filedetails/?id=349050451 On line 111 of lua/weapons/cs_grenade_base/shared.lua it says self.Owner:ConCommand("lastinv") replace it with if...

1 Day Ago
by jacobcooper18 Go to last post
4 102
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...

1 Day Ago
by 8bitMafia Go to last post
186 8,992
Help

Pointshop under category ?

For a coupple of weeks i was on a Deathrun server and they had in there Pointshop under categorys like in the Playermodel category was vip, staff, and regular user and under every category there was the playermodel like only for staff and it was only for...

fleicar 1 people are reading this thread x 1
1 Day Ago
by Sys32 Go to last post
1 63
Help

My gmod server wont let more than one person at a time on it

I am having a problem with my 20 slot server. It wont let more than one person on at a time. So if im on than other people cant join and vice versa. Ive tried contacting the server provider about the issue, but they havent gotten back to me and im stumped...

1 Day Ago
by ph:lxyz Go to last post
4 145
Lua

Trouble finding right ammo capacity code.

Hello, I am trying to set a max ammo capacity for my swep, I just need to confirm if this is the right code as it does not seem to work. Example of code: function SWEP:Initialize( ) self.Owner:SetAmmo( 100, "Pistol" ) end

1 Day Ago
by Crafty_ Go to last post
2 78
Lua

Copying a Material instead of replacing it?

So I'm drawing a sprite, and everything works well, but then upon attempting to use a different one that isn't set up the same way, it doesn't draw properly. (Not translucent, can't be colored, etc) What I'm trying to do is simply copy the material...

1 Day Ago
by Ablationer Go to last post
2 119
Help

npc to drop specific weapons

im trying to make a list of weapons witch where npcs would drop from this list. if not SERVER then return end local WeaponList = { "mc_sword_iron", "mc_sword_gold", "mc_sword_diamond" }

1 Day Ago
by Invule Go to last post
1 55
Help

Custom fonts not working for players through Workshop

I'm having an issue with getting custom fonts to work for players on my server. The fonts are working for me on and look correct in the workshop file but when players join and download the workshop file it doesn't work for them. Other files such as the...

1 Day Ago
by code_gs Go to last post
1 68
Question

solved Material() Can't return a material created with CreateMaterial()?

] lua_run_cl m = CreateMaterial("testmaterial","VertexLitGeneric",{}) ] lua_run_cl print(Material("testmaterial")) ___error 0.0022191793030844 ] lua_run_cl print(m) testmaterial

1 Day Ago
by Jvs Go to last post
3 87
Request

Coding and stuff like that :P

Hi everybody my name is soarplex and I want to learn how to code. I want to learn how to code huds, F4 Menus, printers, and etc. Where should I start? 26th August 2016 I forgot to mention this stuff is for DarkRP

1 Day Ago
by lavacano Go to last post
10 440
Tutorial

3d2d tutorial

Hey facepunch! I'm here with a tutorial on 3d2d! What is 3d2d? 3D2D is drawing on a 2D plane in a 3D environment; aka skewing a plane in relation to the world What can this be used for? 3D2D can be used for drawing 3D2D HUD's, making really cool...

1 Day Ago
by Wob wob wob! Go to last post
11 1,008
Help

Forcing client reconnect

Hello, FacePunch Please help with my server Printed in console and crash players: Forcing client reconnect (2) How to fix this error?

1 Day Ago
by godred2 Go to last post
0 92
Help

lying error.

addons/interaction menu/lua/autorun/client/cl_init.lua:203: Calling net.Start with unpooled message name! http://goo.gl/qcx0y] 1. Start - :-1 2. DoClick - addons/interaction menu/lua/autorun/client/cl_init.lua:203 3. unknown -...

1 Day Ago
by NeatNit Go to last post
8 297
News

Do not join sv_cheats 1 servers! [Virus] [Exploit] [ayylmao]

There is a new spooky exploit that can happen on sv_cheats servers (or if u have cvar3 module and they are smart). (Maybe made by Hex????) (glua.team ???????) (serverwatch ????????) It happens when u join the server then it infects you (duh) NOTE: I...

2 Days Ago
by Leystryku Go to last post
10 880
Help

Error with Ammo HUD

Currently trying to make the "Clip1" part of my gamemode's HUD. Here's my code: if (ply:GetActiveWeapon():Clip1() != -1) then draw.SimpleText(LocalPlayer():GetActiveWeapon():Clip1(), "DermaLarge", 1300 + 30,ScrH() - 63, Color(255,255,255),...

2 Days Ago
by BoneZed Go to last post
5 106
Help

SteamBot - How to launch a game (Debian 7 wheezy)

Hi, i'd like to use the steambot to launch a game but idk how ? Will i have to install the game ? How can i launch this game? I use debian 7 wheezy.

2 Days Ago
by Robotboy655 Go to last post
1 142
Help

Help with Pointshop 2 reskinning

I've been looking into doing some basic reskinning work on Pointshop 2 to make it fit better with the other GUI on my server but I'm currently stuck on resizing the inventory/equipped items icons to make them larger. Maybe it's lack of sleep but I can't...

2 Days Ago
by Twicket Go to last post
2 82
Help

Circular HUD Health

Well, I have tried, Poly, and all sorts. But on: https://scriptfodder.com/scripts/view/2854/os-x-hud-paypal-is-fixed down the bottom near Demo, there is a HUD with players health around a circular player icon. How on earth, do I make a circle made of HP...

2 Days Ago
by MPan1 Go to last post
1 114
Help

sandbox server set a limit on hp

is it possible to set a max limit on hp on sandbox? i was thinking a script like this function HealthBelow1000() for k,v in pairs( player.GetAll() ) do if ply:Health() > 1000 then ply:SetHealth( 1000 ) end

2 Days Ago
by MPan1 Go to last post
1 73
Help

Getting the amount of time from one epoch to another

I currently have an epoch number stored in a database. How would I get the amount of days/hours/minutes from now until that time? I.E I have the epoch time: 1477340561 How would I get the amount of days from now until that epoch time? Thank...

2 Days Ago
by Luni Go to last post
7 215
Help

Help with Weapon Shop

I'm currently creating a boring little gamemode as a kickstarter to get my brain back into Lua (Haven't coded in a while). I'm making a Deathmatch survival type gamemode that involves many custom guns I have created. I have a money system (kills steal...

2 Days Ago
by BoneZed Go to last post
6 109
Lua

erreur jobs serveur: server error jobs gmod lua problem

FRENCH Bonjour jai un probleme avec les jobs de mon serveur gmod jai creer des jobs dans darkrpmodification-master\lua\darkrp_customthings et jobs.lua et quand je vais dans gmod sa me dit sa There is 1 Lua problem! Please check your console for...

2 Days Ago
by code_gs Go to last post
14 297
Help

Build Mode: Cant hurt other players as well?

Anyone know how to make it where someone runs a ulx command aka my buildmode and the ycant hurt other players either? I looked at the wiki but couldnt find anything.

2 Days Ago
by Diamondz Go to last post
2 98
Help
2 Days Ago
by anka067 Go to last post
2 83
Lua
2 Days Ago
by Datamats Go to last post
1 123
Shitpost

solved Memory paranoid question.

Hi. For example. I have a bunch of lua files where each file represents single inventory item, kinda like in PointShop inventory/coffee_cup.lua local tbl = { name = "Coffee cup", price = 150, onUse = func, category = "food",

2 Days Ago
by Koji6ac9H Go to last post
5 242
Help

Draw Rounded Box Problem

Hi there everybody so I am having a problem with a bit of coding. I have drawn rounded box's on my screen to make a HUD. But whenever I change my screen resolution the box does not stay where I want it. How do I fix this? And also I am on the game mode...

2 Days Ago
by darpeyface Go to last post
6 142
Help

solved Spawning Vehicles into maps

So Im a beginner at lua (well not good at it) so sorry if this seems dumb or easy I want to spawn vehicles into my map automatically (like weapons). So far I've tried a lot with ENT:SpawnFunction but with no luck Please tell me how I would do this or...

2 Days Ago
by Ciank33 Go to last post
5 201
Help

.toggleClass not working in Awesomium

Trying to run this: in JS. This is my CSS: Any idea why this would work in a normal browser and not garrysmod? Is it an issue with jQuery?

2 Days Ago
by Bo98 Go to last post
1 116
Help

Everyone can noclip [Edited server.cfg/Edited tab menu]

I've been asking for help but I haven't got anything to work. I have edited the server.cfg to make noclip as 0. I restarted the server, it didn't work. I went into the server settings in the tab menu as well and that didn't work either. I don't know any...

2 Days Ago
by Algea Go to last post
24 545
Lua

Join/Disconnect

Trying to make a join/disconnect message which displays name, and steam id. The current code I have doesn't seem to work. The file location is currently lua/autorun/server function FirstSpawn( ply ) PrintMessage( HUD_PRINTTALK, ply:Nick().. "...

2 Days Ago
by DiscoKnight Go to last post
4 284
Lua

c_arms for playermodel with 2 outfits

Hello, first, sorry for my english :). I made a playermodel with 2 Outfits (via Bodygroups) and I made 2 c_arms for each outfit. But how can I add both c_arms in lua (player_manager.AddValidHands), that gmod switch automatically to the right c_arm?...

3 Days Ago
by Gedo789 Go to last post
8 228
Help

Murder Server: Player models revert to original after a new round

I've had this problem with my server where if someone has a playermodel or hats equipped, often (but not all the time) they will revert to the standard citizen when a new round starts. Unequipping and equipping fixes the problem but it's very annoying....

3 Days Ago
by Crackium Go to last post
0 80
Help

How to make an npc spawn at a certain vector but sitting?

How to make an npc spawn at a certain vector but sitting? I used getpos to get a certain spot on a map. I sat in a chair and put it inside of the bench I want the NPC to spawn on, but it does not spawn the NPC sitting down. How do I make it sit? ...

3 Days Ago
by Gmod4phun Go to last post
1 114
Help

DarkRP Jobs aren't Showing Up... No Lua Errors or Anything.

Welp, I'm about to throw my computer out the window. I absolutely hate going on these forums to ask for help, but I'm becoming extremely desperate. It was showing some weird category errors earlier which were fixed by changing the sort order, but other...

3 Days Ago
by Blinkenn Go to last post
5 197
Shitpost

80s Telephone

Hello there! I want to start making 80s telephones, where you can just select player and call him, but because of my unexperiency i didn't know from which way i have to begin. Could somebody give a tip with this thing, please?

3 Days Ago
by JessePinkman Go to last post
0 157
Work In Progress

Issues getting sWep Icon to show

Sorry to bother you, I've been working at this swep for days and really would like to see it be completed. I also have searched high and low so this is the last place I come to ask for information Issue: Unable to get hud icon to display at all ...

3 Days Ago
by MPan1 Go to last post
9 184
Stupid

solved How to change bystander's magnum in Murder?

I don't know in which file you can change the bystander weapon. And I kind of suck at lua.

3 Days Ago
by Crackium Go to last post
0 91
Help

Strange bone merging issue (entity disconnecting from bones)

For some reason, this only happens on my client so far? But randomly bonemerged entites will float off by a great distance (i didnt manage to get a screenshot of this happening) and then snap back on. I think it might be related to how far they are from...

3 Days Ago
by Soren Go to last post
0 96
Photoshop

Garry's Mod - GUI Thread (#1) - Showcases, Questions, and Advice

Welcome to the Garry's Mod GUI Thread (#1). Everyone is welcome to ask questions, showcase GUI (in-game or mockups), or share tips. The goal of this thread is to hopefully create a better aesthetic and design sense for GUI across Garry's Mod by helping...

3 Days Ago
by dimitrik129 Go to last post
29 1,859
Help

solved Is it possible to draw 3D2D stuff with lighting enabled? using .png materials

Title pretty much explains it. I'm trying to draw a .png texture using 3D2D and it comes up as fullbright. http://i.imgur.com/QmrUznF.jpg On the left is a cube that I drew with Material("testpng.png","vertexlitgeneric") and render.DrawBox(). On the...

3 Days Ago
by Catse Go to last post
2 119
Help

net messaging logging serverside

hi, how do i log net messages from clients that gets send to the server, and also being able to see the data of the net message like : net.Start("lol") net.WriteString("lol") net.SendToServer() thanks in advance, this is extremely needed.

3 Days Ago
by gonzalolog Go to last post
5 170