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 18,587
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 19,047
Help

Passing Variables to Functions Error

Hey guys. So I'm getting an error everytime I try to pass the 'ply' variable to the RunOutOfTime() function. Anyone know why and how I can solve it? TimeForSprint = 0; Sprinting = false; function RunOutOfTime(ply) if(Sprinting == true) then...

Blocker2 1 people are reading this thread x 1
1 Hour Ago
by Vissaben Go to last post
7 142
Help

Re enable animations on DarkRP?

Hi I know most people will say don't edit the core files if you don't know how to but is there a way to enable the animations on darkrp (animations such as "act dance" things like that ) or maybe get me on the right track on how to enable them from...

1 Hour Ago
by Blinkenn Go to last post
12 418
Garry

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

2 Hours Ago
by Ott Go to last post
1,105 83,913
Work In Progress

GMod - What are you working on? September 2016 (#61) ( 2 3 4 5 6 7 Last )

Highlights from the previous thread

2 Hours Ago
by VIoxtar Go to last post
274 21,655
Help

how to apply velocity angle to an entity

hi everybody ! i'm creating a bazooka swep but something goes wrong i don't know how to explain my problem, but i made this the red lines is the "eye angle" of the entity and the black line is this velocity this is the code :

3 Hours Ago
by bitches Go to last post
9 219
Lua

solved How to stop a entity from being moved?

I made a entity but I can move it with my Physgun, is there a way I can stop this? I want it to be completely stationary. I thought if I set the MoveType to 0 (MOVETYPE_NONE) with Entity:SetMoveType it wouldn't move, I tried it with no success.

4 Hours Ago
by LeeTheCoder Go to last post
2 91
Lua

[PSA] NeuroTec NueroBase spamming loud audio ads ( 2 Last )

I was having this issue with loud as fuck audio ads spamming while doing shit in singleplayer, so I had my friend Ultra make some tools to help trace the issue, but the ads were inconsistent at the time and we couldn't find anything. Today the ads just...

4 Hours Ago
by MadParakeet Go to last post
59 2,693
Help

ClientsideModel

So iv'e been trying to make models appear on players and iv'e managed to do it but whenever the player looks down, up, left or right the model seems to follow there eye position. Is there anyway to make it stay in on place but turn if the player turns...

4 Hours Ago
by cpone Go to last post
8 466
Lua

M9K Help

I do not believe this is the right place for this but i do not see any other suitable place for it so im placing this thread here. My question is what is the easiest way to NERF or change the damage values of M9K weapons? I have been trying to do this for...

Lucifer1 1 people are reading this thread x 1
5 Hours Ago
by code_gs Go to last post
4 113
Lua

Is there a self.Owner:Extinguish()?

I am trying to make a swep that sets you on fire when you primary attack or secondary, but wish for the fire to stop when you holster the weapon and was wondering if there is anything like self.Owner:Extinguish() to counter self.Owner:Ignite() thanks...

7 Hours Ago
by GroovyGooby Go to last post
6 128
Help

How to make an NPC/Entity make a menu when pressing the "use" key on it?

I'm trying to make an NPC or an Entity in Garry's Mod have a menu pop up when I hit "use" on them, but I can't seem to figure it out. Really really new to coding, would appreciate help. Sorry if it's already on the wiki, but I can't find it.

8 Hours Ago
by apoona Go to last post
3 137
Lua

Chat Help

I would like to know how i could go about doing this little project. EDIT: REMOVED because it involves AtlasChat from here : https://scriptfodder.com/scripts/view/231/atlas-chat EDIT: There is a part that makes <url>URL</url> a clickable link in chat....

8 Hours Ago
by NeatNit Go to last post
1 113
Help

table to DButton for a shop.

So I am trying to make a food shop and I think I am throwing myself in the deep end for myself personally as I am not the best with lua. I am unsure of how I make a DButton correspond with a table of models, descriptions/whatever else and get that onto...

10 Hours Ago
by Benjii Go to last post
5 121
Question

Why the gravity is not adjusted when SetGravity is called with a vector sever side

Hi forum, So I am calling: https://wiki.garrysmod.com/page/physenv/SetGravity and using it to adjust the gravity of the server environment ( server side ). I call it for example with "physenv.SetGravity( Vector(0,0,-120) )" but nothing happens. I...

dvd_video 2 people are reading this thread x 2
11 Hours Ago
by dvd_video Go to last post
0 77
Lua

[Fretta] Recording players usernames for use within local function.

Hi all, Basically, the Prop Hunt gamemode that I'm running on a server doesn't indicate in chat when a player switches teams. As you can imagine, that is an issue, and so I've spent the past few hours digging in all of the source code to find where the...

17 Hours Ago
by Pixelrain Go to last post
10 282
Games

Help on a stamina script

So right now i'm trying to make it so that when you click your primary attack button, your stamina number is subrtracted by 10. Then if your stamina number is set to 0, you get a notification that says you have lost all your stamina, and to try and rest....

20 Hours Ago
by JasonMan34 Go to last post
3 159
Post Your

Problems That Don't Need Their Own Thread v4 ( 2 3 4 5 .. 89 90 91 92 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 Day Ago
by Robotboy655 Go to last post
3,661 101,353
Help

how to detect if a command has been ran?

hi how would i detect if a clientside command has been run by the player like "lua_openscript_cl" , i imagine maybe like a detour or something im not sure

1 Day Ago
by beeteegee Go to last post
5 272
Help

How to combine multiple addons into one addon? (Aka create a content pack)

So I'm currently wanting to create addons that hold multiple addons all into one addon that I can use for my workshop collection. So the players don't have to download so many things at once. An example is this:...

1 Day Ago
by Blinkenn Go to last post
3 204
Help

Pickpocket swep automatic return money on death

So I am working on a pickpocket swep right now for a dark rp server, and I am having trouble figuring out how to make it so it REFUNDS the money to the players that I stole, when I die, whether that be suicide or that player killing me. Also how would I...

1 Day Ago
by dankthetank Go to last post
4 188
Help

How to add player weapons on spawn?

I'm a complete noob when it comes to LUA (or coding in general), so please excuse me when I ask this question. But I'm curious on how to have a specific player (using SteamID) they'll receive a specific weapon on spawn. I know it's something related with...

1 Day Ago
by daxble Go to last post
4 111
Help

PointShop Problem when the players removed usergroup on ULX

Hello! =D I have a problem. When a user is set to "vip", the player can buy and equip some models But when the players set "vip" to "user", he can equip the vip models, because he already bought the model. My question is it would be possible to...

1 Day Ago
by warblack31 Go to last post
9 327
Lua

ScriptFodder - The Garry's Mod Marketplace ( 2 3 4 5 .. 65 66 67 68 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 1 people are reading this thread x 1 Dumb x 27
1 Day Ago
by gonzalolog Go to last post
2,697 141,057
Lua

solved Call table Clientside

Hello, I am trying to call a table clientside on a player like : ply.myfunnycolor assigned on serverside It works on serverside but not on clientside and i would like that it worked on both sides without using networks.. If you have ideas, thanks a lot

1 Day Ago
by Reese Roite Go to last post
5 214
Help

Footsteps for certain jobs.

Is there a way to add custom footsteps for certain jobs?

Clunky Thread has images 1 people are reading this thread x 1
1 Day Ago
by Clunky Go to last post
17 448
Help

solved how works a entity "env_steam" ?

hello everyone, i'm creating a bazooka swep, everything works but now i want to add a steam effect on the rocket launched ? i've try this from the valve dev wiki ( https://developer.valvesoftware.com/wiki/Env_steam ) the rocket entity code : ...

1 Day Ago
by BALIST0N Go to last post
7 139
Lua

This line when making a DListView?

When making a DListView and putting \n in the string of a tab(?), this happens if you choose a line (Ignore the text): How can I make this not happen?

1 Day Ago
by Robotboy655 Go to last post
6 157
Help

solved Net library help

I've been trying to get the know the net library so I'm trying to make a simple script that when the play spawns it sets a convar on client's side. I know I'm doing something wrong (otherwise I wouldn't be here). I would appreciate if anyone could help...

1 Day Ago
by daxble Go to last post
10 142
Help

GetScriptedVehicle() Broken?

I have been making a bit of an edit to neurotanks mod over the past 2 weeks, then today I load up the gmod and all files are erroring. I disabled my lua's and jsut reenabled all of neurotechs mods off the workshop, and they are erroring as well. I then...

1 Day Ago
by Tangyboxhead Go to last post
10 212
Help

Use resource.AddWorkshop depending on the map.

Hello, I'm looking for a solution so all my maps will not be downloaded at the same time on my server.. For example I would like to have it so resource.AddWorkshop( "blahablah" ) only triggers if the map = "gm_flatgrass" I'd seen this...

1 Day Ago
by Robotboy655 Go to last post
3 189
Lua

Chat language problem.(Letter's invisible)

Hello everyone. I'm having one problem with chat. Russian and other cyrillic letters are not visible in a chat. What i have done wrong?

1 Day Ago
by The Commander Go to last post
7 130
Help

Pointshop2 playermodels ITEM NOT FOUND IN CACHE + glitchy points

I have PS2 running on my murder server and I love it. But, it is giving me a headache.. it was working great and perfect until (seemingly suddenly) playermodels were no longer appearing to be working and when we would try to re-equip them the message...

1 Day Ago
by whitestar Go to last post
2 127
Lua

How does Playable Piano block chat?

How does Playable Piano Addon block the chat when sitting on it and you can only leave when clicking TAB. Addon: http://steamcommunity.com/sharedfile...ails/104548572 What does this Addon do that when I click E on the Piano, I can't access to the...

1 Day Ago
by karl-police Go to last post
10 285
Help

How do you restrict PAC3 to admin only?

I have an addon called PAC3 and I need to restrict it to admin only. How would I do this? The addon is normally accessed through the context menu. Thanks, Jkarateking

1 Day Ago
by jkarateking Go to last post
2 151
Help

Lag when creating DHTML

Hi there I as well as another developer a lag spike for about 2-3 seconds every time we instantiate a DHTML panel. The code run is the following: vgui.Create("DHTML", ParentPanel) We also have a third developer who does not experience this....

2 Days Ago
by maldark Go to last post
8 269
Help

DCollapsibleCategory Size

Hello, for some reason i cant change the height of the Header, button or whatever you call it. Is there any way to change it, as i saw this already bigger in the F4 Menu of DarkRP?

2 Days Ago
by whitestar Go to last post
1 97
Help

Make job hide if unavailable and in a certain DarkRP category?

I am trying to make it hide jobs in a certain category that are unavailable to the user. My code I have been trying: local cat = DarkRP.getCategories() if jobUnavailable and cat == "Custom Jobs" then self:Hide()...

2 Days Ago
by Renzr Go to last post
0 89
Help

Displaying how many rounds are left until a map change?

Hello, I'm currently looking for any help in creating a script that will broadcast through chat how many rounds are left on a particular map until a map change. This is for a Prop Hunt server, source found here. I've got the global variable that...

2 Days Ago
by Pixelrain Go to last post
3 171
Help

How to fix "Silent" swapping in Prop Hunt?

Hello, I've scoured for about 2 hours each file in the source code for this version of Prop Hunt looking for a line anywhere that controls team changing notifications. The issue encountered is that players on the server can use F2 and F1 to change...

2 Days Ago
by Pixelrain Go to last post
0 112
Help

Run ULX command with a function??

I am wanting it so when I press ENTER in a DTextEntry it submits what is written to admins using ulx asay but how would I make it run the command. I know how to make it use what is submitted in the form.

2 Days Ago
by Renzr Go to last post
3 158
Help

Checking if sun is visible.

Not even sure where to start with this, I want to add a check to see if the player is in LOS with the sun. I did this: function SunVisible(ply) local sun = util.GetSunInfo() local sunpos = ply:EyePos() + sun.direction * 4096 local tr = { ...

2 Days Ago
by Kilgrave Go to last post
2 165
Lua

http.Fetch Loop Help

Hey guys sorry for bothering again with my stupid problems So i am trying to make for some days the YoutubeAPI to work and i am stuck on 1 part again so here is the code concommand.Add( "TestYoutubeAPI", function() FullYoutubeURL =...

2 Days Ago
by Tupac Go to last post
7 342
Help

Pointshop2 Not opening

I have installed kamshak's pointshop2 to my server but for some reason I cannot open it. I have tried the different "f#" keys and tried !shop. from what i can tell in the console there aren't any errors regarding loading the addon. What can I do from here...

3 Days Ago
by gonzalolog Go to last post
6 125
Help

[BETA] NEW Requesting Server Testing/Review Help

I am looking for a few people who would be willing to come onto my new DarkRP server, let me know what is wrong and hopefully mentor me a bit on DarkRP and how GMod servers work. Thanks in advance for your help :)

3 Days Ago
by Tratman Go to last post
0 118
Lua

"Couldn't load module library!" on "require( "mysqloo" )"

Hi, im getting this error when trying to require mysqloo: addons/chat_to_web/lua/autorun/sh_init.lua:2: Couldn't load module libra ry! 1. require - :-1 2. unknown - addons/chat_to_web/lua/autorun/sh_init.lua:2 Can someone help? Relevant...

3 Days Ago
by craftxbox Go to last post
10 348
Help

solved DPropetySheet Tab Colouring

Hi,I'm trying to customise my vgui by changing the colours around, I'm having an issue where the non-active tabs are the same colour as the active one and they also have a gap underneath them. So my question is how would I counter this?

3 Days Ago
by Dj6619 Go to last post
2 108
Lua

solved Auto respawn all props on server start

This is kinda noob question. I am using the Perma All addon and I want to respawn all the saved props automatically when server starts. I figured out the command is "permaall_respawn_all" but I donīt know where to put it or how to make it execute...

3 Days Ago
by merkur0 Go to last post
2 114
Help

Making Vehicles in gmod

Ok, so I am attempting to make a vehicle in gmod. No, not with phx props or any shit like that. I am talking about making a vehicles similar in the Gmow pack, MW Vehicles, Fueled Mod Pack, and etc.... Are there any good tutorials out there,...

3 Days Ago
by whitestar Go to last post
15 5,510
Lua

Attaching a headcrab to a NextBot

Is it possible? I'm currently trying to re-create the original half life zombies using nextbots, and for the zombie I would like a headcrab to be attached to him. I tried doing this, but the headcrab would just slide off/be attached weirdly/still be...

3 Days Ago
by whitestar Go to last post
6 214
Shitpost

solved Metatables. Add functionality into metamethod without overriding

Hello. Is there way to extend Panel's metatable methods like: PANEL:OnCursorEntered PANEL:OnCursorExited Without loosing initial functionality. (Kinda like adding event listeners in JS) For example I have a panel that highlights on...

3 Days Ago
by Joeyl10 Go to last post
6 152
Help

Loop sound with sound.PlayFile

Hi everyone, I tried to play clientside loop sound in local with the function sound.PlayFile() but my sound stop after ~1s play when I use EnableLooping(true). Is this function only working with no looping sounds ? I can't use surface.PlaySound because I...

3 Days Ago
by chikkenslayer Go to last post
4 233
Lua

solved Pointshop Preview Colour

Hello :) I'm having an issue at the moment with the player's colour not being shown on the preview panel. I've put the code below in DPointShopPreview but have not had any success. Any advice? Thanks! :D local PlayerColor =...

3 Days Ago
by _Messiah Go to last post
4 200
Lua

Fully remove scrollbar from vgui

How would you fully remove the scroll bar not just paint it invisible. I need to remove it because it moves my items around when it shows up, or how could i move it to another spot?

3 Days Ago
by chikkenslayer Go to last post
5 207
Question

solved Mapping question

I am new here, so if I posted this question in the wrong forum I apologize. My question is I am wanting to create a role playing map. When creating houses and buildings I want to if I create the homes and businesses in hammer itself or do I use another...

3 Days Ago
by bedsidebug Go to last post
5 220
Help

Playermodels in my Server revert to default after each round (Murder)

Good day! So, I have struggling to find a solution to having players keep their playermodels equipped in my Server after each round. The pointshop (by _Undefined) shows they have it equipped but they appear as the default model. I have showered every...

3 Days Ago
by JasonMan34 Go to last post
3 120
Help

Need a simple PlayerInitialSpawn hook!

Hey guys, I really need a PlayerInitialSpawn hook that sets the players health to 200, I can't pay anything but take it as a challenge, I need this really bad and as fast as possible, I'd honestly be so happy if someone could do it, thanks!

3 Days Ago
by aftokinito Go to last post
13 530
Help

vote map, blacklist

Hello. I want to make a blacklist in my votemap, I wrote this code: local goodmaps = {} local servermaps = {} servermaps = file.Find("maps/*.bsp","GAME")

3 Days Ago
by aftokinito Go to last post
3 228
Lua

Is it worth learning how to use the Lua interpreter very well?

How much do you use it personally, atleast for developing Garry's mod?

3 Days Ago
by aftokinito Go to last post
8 359
Help

Random Loading Screen

Hello! I am currently in the making of an SCP based gamemode, and was wondering. With loading screens could I have it like in the actual game? If you haven't played the game before, basically every time you load into the game there is a loading...

3 Days Ago
by aftokinito Go to last post
22 461
Help

How would I make lua set spawn location for table(or multiple vetors)?

So I am making a gamemode and I am at the last part and I can't figure out how to make it set the spawn point to the locations. I got them spawning I just need the spawn point to hit the vectors, or unless I messed up completely. So its like this: ...

3 Days Ago
by aftokinito Go to last post
2 241
Help

When i spawn in a model/ragdoll and some npcs, i only see there shadow. PLEASE HELP

So i tried spawing in a ragdoll and heres what i got from the develper console MDLCache: characters/jontron/jontron.mdl needs to be recompiled MDLCache: Failed load of .VTX data for characters/jontron/jontron.mdl Please help me.

3 Days Ago
by aftokinito Go to last post
7 232
Help

restriction group

function zonconcmd(ply, cmd) if (ply:IsSuperAdmin()) then concommand.Add("zones", zonesconcmd) end end This code does not work, that I do not so? help me plesae

3 Days Ago
by aftokinito Go to last post
4 179
Help

Question on the menu derma

Hello everyone ! I have a quick question about a menu. Would you tell me what I should use panel for the menu that is in the picture below ? Thank you in advance: D

3 Days Ago
by aftokinito Go to last post
7 201
Lua

SQL Wrapper

I'm currently working on a project that will use sql in gmod. So i made a little wrapper to help streamline it a little and keep things neat. Not sure if any one else has done it as i have not looked and mine by no means has everything. But as i work...

3 Days Ago
by zeaga Go to last post
15 525
Lua

Lerp vs math approach

What is the difference between lerp and math.Approach? What situations should you use one or the other Thanks in advacnce

3 Days Ago
by aftokinito Go to last post
1 163
Question

Gamemode Jam?

Hey guys, I was wondering if there has ever been a Garry's Mod game jam. An event where a team a developers has 24 hours to make a gamemode of a certain category and may be rewarded for winning. I didn't know whether I should make a thread for this...

3 Days Ago
by Nak Go to last post
26 809
Help

For loop help.

Hello Facepunch, I've been having a few issues, well I'm working an a inventory and I'm trying to get the content to go downwards but they aren't they're just either stacking over eachother or going to the right. If someone could help me where i can...

3 Days Ago
by aftokinito Go to last post
8 190
Lua

Command give out Numbers from Name

Hey dear Lua coders. Im new to this board and want to code something for my SWRP Server. I just can give out the Name if a user runs the console command givemyname But now i want to give out just the numbers in the name. On StarWars RP ure using...

3 Days Ago
by aftokinito Go to last post
8 346
Help

Bot join team

How to make bot join team? Because when I type "bot" now it comes as no team, just black guy without animations.

3 Days Ago
by aftokinito Go to last post
2 197
Help

Broken Server

Hi My developer has recently fucked with my Dark RP server (unintentionally), and has broken some things. I have restricted his access to the FTP, and I am going to attempt to fix it myself. 1. 'In Q - Utilities - Falco's Prop Protection - admin...

3 Days Ago
by aftokinito Go to last post
8 316
Question

How can I update existing FastDL files?

I hooked up my server with FastDL, but there's a couple files I've modified since the first time I joined the server with my client. Is there any way to force the clients to re-download certain files? Thanks

3 Days Ago
by aftokinito Go to last post
4 245
Help

Addons Problem never seen before

So hello i have a new Problem i never seen anything with that on google or something and for me its new to all my addons works but not the addons like 3d screens wire mod all that sweps stuff i think but all other addons i added work i just wanted to...

3 Days Ago
by aftokinito Go to last post
8 319
Help

changing the value of the variable of the function

net.Receive( "shakeScreenFromVodka", function( lenght ) if blurAm > 0 then timer.Destroy("vodkaBlurReset") end blurAm = 15 timer.Create( "vodkaBlurReset", 30, 0, function () blurAm = 0 end ) end ) if drunkenPlayers then if drunkenPlayers...

3 Days Ago
by Gmod4phun Go to last post
6 299
Lua

Help on Radial health bar (Hollow Circle)

I am trying to create a circular health bar in gmod for my server. I like the look of it, i just don't know how to do the math/make it draw the shapes correctly with the math. Basicaly, i want this: (I have no idea if the image worked) Obviously...

4 Days Ago
by Lawlypops Go to last post
2 255
Help

How to make bullets hit player bounding box, not model hitboxes?

Is it even possible? Or do I need to recreate bullets using traces and surface hit effects?

4 Days Ago
by TheMostUpset Go to last post
7 229
Lua

Where is the code for ttt armor, disguiser, radar etc?

I;m looking for it to see what I can reverse engineer.

4 Days Ago
by //Panda Go to last post
10 823
Lua

Manipulating Hitboxes

Is there a way to manipulate the hitboxes using Lua? I'm rewriting the Lua Animations API from scratch and right now hitboxes are my only concern. I see that http://wiki.garrysmod.com/page/Entity/ManipulateBonePosition and...

4 Days Ago
by Walrus Viking Go to last post
2 172
Help

solved Thirdperson Rotate Camera

I'm editing a thirdperson addon I found, and I was wondering how I could add the ability to rotate your camera around the player? Here's all of the thirdperson code: if ( CLIENT ) then on = false local function toggle() on = !on end

5 Days Ago
by sharpDev Go to last post
4 246
Lua

solved Lua Error Need Help ASAP

Hey, Guys, I Am Currently Experiencing Technical I Was Wonder If Any Of You Wonderful People Could Help Me A runtime error has occurred in "lua/includes/util/color.lua" on line 16. The best help I can give you is this: bad argument #1 to 'min'...

5 Days Ago
by Keosan Go to last post
5 176
Lua

solved Getting variables outside from MySQL callback anonymous function?

Well, I have very basic problem with getting variables out from callback function. local data = false print("----derived vars") MySQLite.query("some query", function (resp) if resp then print("----got resp") data = resp

5 Days Ago
by igodsewer Go to last post
4 170