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,653
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,119
Post Your

Problems That Don't Need Their Own Thread v4 ( 2 3 4 5 .. 90 91 92 93 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...

4 Minutes Ago
by TidesVI Go to last post
3,683 102,372
Help

egh, networking questions.

first question, in the wiki (http://wiki.garrysmod.com/page/net/Receive) it says function callback is "The function to be called if the specified message was received." what does this mean, do i put in a function here or do i put in the name of a...

24 Minutes Ago
by darpeyface Go to last post
9 31
Help

Fuckin. ENT:GetPos struggles. (storing vector to a word)

I cant figure out how to store a vector to a word, as GetPos is a function value. 29th September 2016 AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel( "models/props_c17/doll01.mdl" )

1 Hour Ago
by nedredl Go to last post
6 56
Garry

Next Update v5 - April 2016 Update is out! ( 2 3 4 5 .. 26 27 28 29 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 mijyuoon Go to last post
1,147 86,679
Help

solved DarkRP error message

Warning: Unhandled usermessage '_Notify' How do you fix this? I can't seem to spawn in Vehicles and switch to some jobs.

2 Hours Ago
by Tarvik Go to last post
5 90
Help

Table.Insert help.

Hello, I'm wondering if someone could help me, I'm wanting to know how i can insert things into the table below with 'table.insert.' local ModelTbl = { {Item = "Katlan", Amt = "1"}, {Item = "Aurora", Amt = "1"}, {Item = "Slice of...

3 Hours Ago
by Chickengbs Go to last post
2 62
Lua

DarkRP Pocket problem

hi, i pickup meth in darkrp pocket. 20 lbs. I took out of his pocket meth. Please help me.

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

Custom Ammo Types Breaking the HUD

I'm running into an issue with custom ammo types. If I use a custom ammo type, the default HUD ammo counter will not display unless the game is out of focus or there's a menu open; if the menu does display in these cases, it flickers rapidly. If I...

Lucky9Two 1 people are reading this thread x 1
4 Hours Ago
by Lucky9Two Go to last post
2 62
Work In Progress

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

Highlights from the previous thread

5 Hours Ago
by dvd_video Go to last post
322 24,802
Question

Panel bounce-in and out transitions?

Hello, Has anyone worked out a way to make a bounce-in and out transitions for showing or hiding a panel yet, much like Discord's panels or animate.css's bounce-in and out transitions? If so, I'd like to hear about that. The only way I can...

5 Hours Ago
by gonzalolog Go to last post
10 159
Help

Camera fixed on Front View? | Help

local function PlayerSpawn( ply ) ply:Freeze( false ) CalculateFrontView( ply, ply:GetPos(), 90, 100 ) end hook.Add( "PlayerSpawn", "PlayerSpawn", PlayerSpawn ) function CalculateFrontView( ply, pos, angles, fov ) local view = {}

5 Hours Ago
by jacobcooper18 Go to last post
0 36
Help

Killstreak Addon | Error? or not?

sv_init.lua include( "config.lua" ) -- Don't touch anything below this! Seriously, it will break everything! -- Streaks -- function RKM_Streaks( ply, inflictor, attacker, team, msg ) local streak = {}

5 Hours Ago
by jacobcooper18 Go to last post
7 151
Help

Process for replacing a swep's model

What would be the process of replacing a swep's model?

7 Hours Ago
by SoggyWontonz Go to last post
8 138
Lua

Network variable not updating on client?

Trying to keep this short but I have a entity that has a price on it, stored with Entity:NetworkVar. When the user changes the price, it only updates on the most recently spawned entity. I'll attach a video showing exactly what I mean. Also, it...

8 Hours Ago
by LeeTheCoder Go to last post
2 84
Lua

solved Entity not solid to player

Can someone tell me, why this Entity doesnt collide with the player? AddCSLuaFile() ENT.Type = "anim" ENT.Model = Model("models/props/cs_italy/bananna.mdl") AccessorFunc( ENT, "thrower", "Thrower") local planted = false

8 Hours Ago
by Robotboy655 Go to last post
8 155
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...

8 Hours Ago
by meharryp Go to last post
2,719 197,551
Lua

ENT:StartTouch

So I am here again the "Noob". I am working on my addon and I want it so when my "cooking_pot" touches my cooker it will go onto of the cooker it will remove its self. Part from my Init.lua function ENT.StartTouch(ent) if ent:GetClass() ==...

9 Hours Ago
by mijyuoon Go to last post
12 225
Help

Entities Spawning too Close (Killing You)

Hey guys, I have an issue. The tank addon I have works via the entities menu. I am creating a MilitaryRP server, and I need to use the F4 menu, and the entities section to be able to spawn the vehicles for people playing the jobs. When the tank...

9 Hours Ago
by Strength2000 Go to last post
7 123
Lua

Best way to save scores?

I'm making a snake addon (For any mode, using GM:DrawOverlay ), and I need to save: 1) Player highest score 2) Global highest score I (obviously) need to save both of these on the server, but I'm wondering what's the best way to do that I'm...

10 Hours Ago
by markusmarkusz Go to last post
7 176
Help

Increasing the damage of NPC_grenade_frag

I need to increase the damage of a default entity (NPC_grenade_frag). How would I do that? I didn't find anything useful in ent:GetTable()

11 Hours Ago
by Gmod4phun Go to last post
1 58
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 =...

12 Hours Ago
by Owjo Go to last post
10 2,342
Question

Your Opinion: Coding systems within systems

Iím writing a crafting system as an exercise for experience and fun but it is becoming tedious to go through all the motions to get to and test what Iím coding. When you guys code how do you skip straight to the section being developed? How do you code...

14 Hours Ago
by Skere_ Go to last post
9 294
Help

Can someone help for modify Stupid TDM round system ?

Hello, I just want to modify Stupid TDM Round System. I don't know how to do that, but i want make Rounds end when one of team is alive, like CS. The last team alive win the round and have 1 point. The team who have most of points win the game. I...

15 Hours Ago
by Skere_ Go to last post
3 98
Help

Group System? Help, how to test?

Well, I am making a Group System for my server aka invulnerable to each other but its like a clan. Anyway, I was looking into "SetNWInt or String" and "GetNWInt or String" but doing this: for k,v in pairs(player.GetAll()) do -- something here ...

19 Hours Ago
by Skere_ Go to last post
26 565
Help

NPC Spawner

Okay, well I need help with this addon it's needs revaping it's simple things but here are the requests on it. 1. Allow NPC's to be spawned that are seperate addons not apart of HL2 (because when I spawned in a Clone Trooper it came up as a citizen.)...

21 Hours Ago
by Tarvik Go to last post
2 127
Lua

Creating Vehicle Addon

Recently I have been trying to create a boat vehicle with a model I found on the workshop. The model owner stated that if anyone wants to use the model to actually make a working vehicle, then they can. Their are no tutorials to try and get you started in...

23 Hours Ago
by Fresh~ Go to last post
4 135
PC Games

/buy is disabled and other help needed.

Whenever i try to buy something in the weapons tab. It says /buy is disabled. If i try to buy something in the ammo tab it says ammo is disabled.

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

1 Day Ago
by Lunaversity Go to last post
69 3,635
Question

Artificial Soundscapes

how would I go about creating a soundscape and having it play in a map that doesn't have a soundscape itself?

1 Day Ago
by Skere_ Go to last post
2 119
Lua

How to put text above a prop?

So I have been making my very first addon (I am a noob I know). But I wanted to something a but more advanced for me to finish it off something like this: Thats right I did steal this from GDrug I have no idea how to do this (Probably because I...

1 Day Ago
by Mrdbuffalo Go to last post
2 117
Lua

Need Lua Help

So I have started to enjoy Lua but I have started a project where a TEAM_COP can make a ticket for any team other than COPS I have got the Decline or Accept menu for the person receiving the ticket but I don't know how to make a variable cross server like...

1 Day Ago
by Mrdbuffalo Go to last post
2 154
Lua

solved How to center 3D drawn stuffs?

I've been learning how to draw stuff in 3D and it looks cool and all but it's not aligned in anyway. For example, I drew some text above a entity. How would I correctly go about centering it? Also, how make it rotate with the entity to stay in the same...

1 Day Ago
by LeeTheCoder Go to last post
4 195
Stupid

solved Player Off Chat

--]-- How do you get a player variable off someone typing there name/part of there name. kind of like if someone types in chat !<COMMAND> <NAME> how would i get that player variable?

1 Day Ago
by geferon Go to last post
7 209
Lua

Need help with Noclip

Hello Guys My server is resetting sbox_noclip 0 if im turn him off in my server and if im restarting it it will reset pls help me Hello guys i need help with my hp. if im joining the server i will be a cadet (bacause i wanne make a star wars...

1 Day Ago
by code_gs Go to last post
6 170
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
14 379
Help

DarkRP Help Thread V1 ( 2 3 4 5 .. 40 41 42 43 Last )

Hello Everybody and Welcome to the DarkRP Help thread. This forum covers everything related to DarkRP. This is the list of things that you can help others or get help from. 1. Lua=this includes HUD'S, lua errors, and lua code. 2. Jobs=generally...

1 Day Ago
by Velocity Go to last post
1,697 84,465
Help

solved DMenu not working properly?

So, I am not sure if I am doing it wrong, or it is broken or whatever, but I am trying to create a DMenu. I am making a simple entity, which upon pressing USE on, will open a menu with weapons, weapon models, info etc. So far everything worked as I...

1 Day Ago
by Gmod4phun Go to last post
12 181
Gross

About entities not all being initialized on the client side.

I know that not all ents are networked to the client until the player is close enough to them. But do entities ever get unloaded? Should I trust that once they initialize they'll always be valid?

2 Days Ago
by Luni Go to last post
6 199
Help

Please help Pickpocket swep Returning money on death

Ive looked everywhere for a solution and I feel like I tried everything. I need a couple things, first I need something that makes it so if you pickpocket and you die, the money gets refunded to that player, second I need it so that can only be true for,...

2 Days Ago
by Fresh~ Go to last post
6 146
Question

Are the any rock models from rust?

So Im making a rust gamemode, and I was wondering if there are any models of the rock where you can find stone, metal, sulfur, and high quality metal Thanks for any help I get!

2 Days Ago
by elixwhitetail Go to last post
2 142
Question

How to scale hitboxes?

How to scale hitboxes? I've tried to scale them using bone's VMatrixes (Set/Get BoneMatrix) and manipulation (ManipulateBoneScale), and had no luck. I'm getting bone id using LookupBone( "ValveBiped.Bip01_Head1" ) - may be this is the issue, but it scales...

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

2 Days Ago
by Sir. Pumpin' Go to last post
20 562
Help

solved 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 :

2 Days Ago
by BALIST0N Go to last post
11 344
Help

"mount" Cs:Go textures?

Hey Guys, I want to make some SWEPs with wepons from Cs:Go, but i want to make it like the Cs:S weapons so that you have Cs:Go installed and don't need extra textures, moddels and sounds. is this possible? Wookie

2 Days Ago
by [KX]Wookie953 Go to last post
0 100
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...

2 Days Ago
by SatoshiAaron Go to last post
9 288
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

2 Days Ago
by dingusnin Go to last post
6 294
Help

Looping through a button, guide.

Hello Facepunch, I'm having trouble lately trying to figure out how to do a specific method, if someone could guide me/give me an example just to raise me off my feet i'd appreciate it a lot. What I'm trying to do is an inventory, not the the whole...

3 Days Ago
by Chickengbs Go to last post
2 146
Help

solved Check Team Help!

So this is my code if table.HasValue( MayorM, team.GetName(ply:Team()) ) then end

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

3 Days Ago
by Vissaben Go to last post
7 226
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.

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

3 Days Ago
by cpone Go to last post
8 521
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...

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

3 Days Ago
by GroovyGooby Go to last post
6 205
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.

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

3 Days Ago
by NeatNit Go to last post
1 168
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...

3 Days Ago
by Benjii Go to last post
5 207
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...

3 Days Ago
by dvd_video Go to last post
0 133
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...

3 Days Ago
by Pixelrain Go to last post
10 327
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....

3 Days Ago
by JasonMan34 Go to last post
3 214
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

4 Days Ago
by beeteegee Go to last post
5 313
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:...

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

4 Days Ago
by daxble Go to last post
4 148
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...

4 Days Ago
by warblack31 Go to last post
9 362
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

4 Days Ago
by Reese Roite Go to last post
5 249
Help

Footsteps for certain jobs.

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

4 Days Ago
by Clunky Go to last post
17 478
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 : ...

4 Days Ago
by BALIST0N Go to last post
7 180
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?

4 Days Ago
by Robotboy655 Go to last post
6 190
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...

4 Days Ago
by daxble Go to last post
10 185
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...

4 Days Ago
by Robotboy655 Go to last post
3 224
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?

4 Days Ago
by The Commander Go to last post
7 166
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...

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

4 Days Ago
by karl-police Go to last post
10 327
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....

5 Days Ago
by maldark Go to last post
8 304
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?

5 Days Ago
by whitestar Go to last post
1 123
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()...

5 Days Ago
by Renzr Go to last post
0 114
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...

5 Days Ago
by Pixelrain Go to last post
3 203
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...

5 Days Ago
by Pixelrain Go to last post
0 142
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.

5 Days Ago
by Renzr Go to last post
3 186
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 = { ...

5 Days Ago
by Kilgrave Go to last post
2 196
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 =...

5 Days Ago
by Tupac Go to last post
7 372