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,552
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,015
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?

3 Minutes Ago
by Robotboy655 Go to last post
1 57
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...

5 Minutes Ago
by Robotboy655 Go to last post
6 120
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...

8 Minutes Ago
by Robotboy655 Go to last post
3,650 100,920
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...

24 Minutes Ago
by Robotboy655 Go to last post
3 138
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/

53 Minutes Ago
by mijyuoon Go to last post
1,091 82,962
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?

xpuska513 2 people are reading this thread x 2
1 Hour Ago
by The Commander Go to last post
7 66
Work In Progress

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

Highlights from the previous thread

1 Hour Ago
by Tenrys Go to last post
251 20,002
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...

2 Hours Ago
by whitestar Go to last post
2 83
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...

3 Hours Ago
by karl-police Go to last post
10 243
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...

5 Hours Ago
by krekeris Go to last post
3 114
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

5 Hours Ago
by jkarateking Go to last post
2 104
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...

6 Hours Ago
by PizzaDoxy Go to last post
9 343
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...

7 Hours Ago
by TpsTheHunter Go to last post
47 1,868
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...

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

17 Hours Ago
by maldark Go to last post
8 249
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?

18 Hours Ago
by whitestar Go to last post
1 66
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
19 Hours Ago
by Tupac Go to last post
2,696 124,182
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()...

19 Hours Ago
by Renzr Go to last post
0 61
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.

1 Day Ago
by Skere_ Go to last post
2 82
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 unrezt Go to last post
2 143
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...

1 Day Ago
by Pixelrain Go to last post
3 152
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...

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

1 Day Ago
by Renzr Go to last post
3 143
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 sannys Go to last post
4 182
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 = { ...

1 Day Ago
by Kilgrave Go to last post
2 138
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 =...

1 Day Ago
by Tupac Go to last post
7 325
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...

1 Day Ago
by gonzalolog Go to last post
6 113
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 :)

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

1 Day Ago
by craftxbox Go to last post
10 336
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?

1 Day Ago
by Dj6619 Go to last post
2 99
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...

1 Day Ago
by H4 Go to last post
7 419
Lua

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...

1 Day Ago
by merkur0 Go to last post
2 97
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,...

1 Day Ago
by whitestar Go to last post
15 5,481
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...

1 Day Ago
by whitestar Go to last post
6 197
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...

1 Day Ago
by Joeyl10 Go to last post
6 138
Lua

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 crazyscouter Go to last post
2 114
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...

1 Day Ago
by chikkenslayer Go to last post
4 219
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 =...

1 Day Ago
by _Messiah Go to last post
4 189
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?

1 Day Ago
by chikkenslayer Go to last post
5 188
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...

1 Day Ago
by bedsidebug Go to last post
5 203
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...

1 Day Ago
by JasonMan34 Go to last post
3 110
Help

Footsteps for certain jobs.

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

2 Days Ago
by aftokinito Go to last post
16 396
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!

2 Days Ago
by aftokinito Go to last post
13 515
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")

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

2 Days Ago
by aftokinito Go to last post
8 341
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...

2 Days Ago
by aftokinito Go to last post
22 442
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: ...

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

2 Days Ago
by aftokinito Go to last post
7 216
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

2 Days Ago
by aftokinito Go to last post
4 168
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

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

2 Days Ago
by zeaga Go to last post
15 512
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

2 Days Ago
by aftokinito Go to last post
1 145
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...

2 Days Ago
by Nak Go to last post
26 784
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...

2 Days Ago
by aftokinito Go to last post
8 177
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...

2 Days Ago
by aftokinito Go to last post
8 334
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.

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

2 Days Ago
by aftokinito Go to last post
8 300
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

2 Days Ago
by aftokinito Go to last post
4 235
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...

2 Days Ago
by aftokinito Go to last post
8 283
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...

2 Days Ago
by aftokinito Go to last post
8 305
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...

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

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

2 Days Ago
by TheMostUpset Go to last post
7 216
Lua

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

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

3 Days Ago
by //Panda Go to last post
10 809
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...

3 Days Ago
by Walrus Viking Go to last post
2 156
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

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

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

3 Days Ago
by igodsewer Go to last post
4 160
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...

3 Days Ago
by Chai_Latte Go to last post
2 198
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...

4 Days Ago
by Vissaben Go to last post
7 244
Help
4 Days Ago
by Newbrict Go to last post
0 100
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 |...

4 Days Ago
by geferon Go to last post
4 135
Help

Black Hole Type Entity

hello guys, i need some code help, this code makes a sphere and when it reaches max size it shrinks back down at a rapid rate then is supposed to delete itself, and damages any player within the sphere, and that's off too function ENT:Draw()...

4 Days Ago
by Keosan Go to last post
9 306
Help

Lua Menu won't work

I have been trying to make a SWRP buy menu but for some reason the console command isn't found and I am not getting any lua errors function BuyMenu() local ply = LocalPlayer() local BackGround = vgui.Create( "Dframe" )...

4 Days Ago
by Threebow Go to last post
7 315
Lua

solved script to send game chat to web service?

Hi, im wondering is there a way to take game chat and send it to something like a php web server to view the chat from online?

4 Days Ago
by whitestar Go to last post
2 222
Question

Question about my gamemode

Ok, so Im thinking about making a rust gamemode and I was wondering if I should have the bp system or the level system

4 Days Ago
by whitestar Go to last post
3 180
Lua

Remove Cars if you are dead

Hello, I would like to create a la/autorun file. If you're dead your car is removed. If you don't understand say to me. I asked you for learn how make better script and use correctly the wiki and other. Thanks for this

4 Days Ago
by code_gs Go to last post
6 272
Help

Timer

Hello, I have a question, how to add a timer function, in which every second example would give HP a player, I can not figure out how to do this, please help me!

4 Days Ago
by Mello009 Go to last post
7 183
Shitpost

April Fools Lua'ing ( 2 3 Last )

The best day of the year is just around the corner, and I'm capitalizing on it to add the dumbest nonsense to my mod that I can think of. I strongly urge the rest of you to do the same. Since most of the Gmod community doesn't know that Facepunch...

5 Days Ago
by pierre0158 Go to last post
83 6,288
Help

solved GDrugs with ItemStore

Does anyone know how to add the drugs from the addon GDrugs to the addon ItemStore so I can allow players to put the drugs in their inventory and take them to the drug buyer?

5 Days Ago
by DayFutureHD Go to last post
2 121