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,578
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 1 people are reading this thread x 1 Lua King x 28
27th February 2013
by garry Go to last post
0 19,037
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/

6 Minutes Ago
by Robotboy655 Go to last post
1,099 83,501
Work In Progress

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

Highlights from the previous thread

4 Hours Ago
by NeatNit Go to last post
267 21,114
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...

5 Hours Ago
by Pixelrain Go to last post
10 242
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....

Lucifer1 1 people are reading this thread x 1
8 Hours Ago
by Lucifer1 Go to last post
0 69
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....

8 Hours Ago
by JasonMan34 Go to last post
3 123
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...

9 Hours Ago
by dimitrik129 Go to last post
50 2,289
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...

10 Hours Ago
by code_gs Go to last post
1 64
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...

12 Hours Ago
by Robotboy655 Go to last post
3,661 101,278
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 :

13 Hours Ago
by code_gs Go to last post
1 86
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

13 Hours Ago
by beeteegee Go to last post
5 249
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:...

14 Hours Ago
by Blinkenn Go to last post
3 192
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...

14 Hours Ago
by dankthetank Go to last post
4 170
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...

15 Hours Ago
by daxble Go to last post
4 97
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...

18 Hours Ago
by warblack31 Go to last post
9 319
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 2 people are reading this thread x 2 Dumb x 27
19 Hours Ago
by gonzalolog Go to last post
2,697 133,093
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

20 Hours Ago
by Reese Roite Go to last post
5 207
Help

Footsteps for certain jobs.

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

20 Hours Ago
by Clunky Go to last post
17 438
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 : ...

20 Hours Ago
by BALIST0N Go to last post
7 125
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?

20 Hours Ago
by Robotboy655 Go to last post
6 151
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...

21 Hours Ago
by Blocker2 Go to last post
6 104
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...

21 Hours Ago
by daxble Go to last post
10 130
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...

23 Hours Ago
by Tangyboxhead Go to last post
10 203
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 182
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 117
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 121
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 279
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 138
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 Day Ago
by PizzaDoxy Go to last post
9 366
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....

1 Day Ago
by maldark Go to last post
8 263
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?

1 Day Ago
by whitestar Go to last post
1 91
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()...

1 Day Ago
by Renzr Go to last post
0 85
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.

2 Days Ago
by Skere_ Go to last post
2 103
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 165
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 105
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 152
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 159
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 333
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...

2 Days Ago
by gonzalolog Go to last post
6 122
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 :)

2 Days Ago
by Tratman Go to last post
0 112
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...

2 Days Ago
by craftxbox Go to last post
10 344
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?

2 Days Ago
by Dj6619 Go to last post
2 105
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...

H4 Thread has images 1 people are reading this thread x 1
2 Days Ago
by H4 Go to last post
7 432
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...

2 Days Ago
by merkur0 Go to last post
2 111
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,...

2 Days Ago
by whitestar Go to last post
15 5,494
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...

2 Days Ago
by whitestar Go to last post
6 209
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...

2 Days Ago
by Joeyl10 Go to last post
6 148
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...

2 Days Ago
by chikkenslayer Go to last post
4 227
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 =...

2 Days Ago
by _Messiah Go to last post
4 197
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?

2 Days Ago
by chikkenslayer Go to last post
5 200
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...

2 Days Ago
by bedsidebug Go to last post
5 214
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...

2 Days Ago
by JasonMan34 Go to last post
3 116
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 525
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 223
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 354
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 455
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 237
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 226
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 174
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 196
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 520
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 156
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 799
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 185
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 342
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 189
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 307
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 241
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 315
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 296
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...

3 Days Ago
by Lawlypops Go to last post
2 250
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?

3 Days Ago
by TheMostUpset Go to last post
7 225
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 819
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 167
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

4 Days Ago
by sharpDev Go to last post
4 238
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'...

4 Days Ago
by Keosan Go to last post
5 172
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

4 Days Ago
by igodsewer Go to last post
4 167
Lua

solved Custom Weapon Selection HUD

This may have been asked before but I'm making a custom weapon selection HUD, and when I disable the base HUD I can't select weapons even if I have them. This is expected and it even says so on the Wiki My question is, would I have to code a whole new...

4 Days Ago
by Chai_Latte Go to last post
2 206
Lua

Help Cooldown SWEP

I need help with this one thing i have made on my server, a stick that freezes a player and unfreezes 5 seconds later. So far its working the only problem is their is no cooldown so it can be hit like 10 times on one player and keep them frozen. I need...

5 Days Ago
by Vissaben Go to last post
7 253
Help
5 Days Ago
by Newbrict Go to last post
0 106
Help

solved srcds exec cfg not changing gamemode?

Hi I have been launching srcds like this C:\gmod_server\srcds.exe -console -tickrate 100 -game garrysmod +maxplayers 32 +map cs_office with an autoexec.cfg like this: gamemode "prop_hunt" hostname "ObjHunt |...

5 Days Ago
by geferon Go to last post
4 143