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,680
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,151
Help

Distance and vector issue.

Hi, how would I get the distance from a player to the ground? I tried: local pos = ply:GetPos() local dist = pos:Distance( Vector( pos.x, pos.y, 0 ) ) However this is pretty much useless as each map could have/has a different location for 0, 0,...

9 Minutes Ago
by mijyuoon Go to last post
3 75
Help

Making input.IsKeyDown not spam

Alright is there anyway to add a delay to input.IsKeyDown because when i use it with a print statement it spams the console.

Fresh~ Thread has images 4 people are reading this thread x 4
52 Minutes Ago
by Fresh~ Go to last post
15 237
Help

How to test if a player is in a steam group error

Well, I want to make it so a player becomes a group if he is in the steamgroup. Is this how? http.Fetch( "https://steamcommunity.com/groups/dropdeadservers/memberslistxml/?xml=1", local meta = FindMetaTable("Player") function meta:CommunityID()...

1 Hour Ago
by Skere_ Go to last post
4 61
Lua

vON: Vercas' Object Notation [Release for developers] ( 2 3 Last )

GitHub Repository Why? Well, the current serialization method available in GMod - GLON - is slow. And some trials with (extremely) complex data structures have failed miserably. I also don't like the idea of using non-printable characters. What I...

2 Hours Ago
by vercas Go to last post
106 13,036
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...

jolke 1 people are reading this thread x 1
2 Hours Ago
by Skere_ Go to last post
12 313
Garry

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

5 Hours Ago
by hanm13 Go to last post
1,164 88,083
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...

6 Hours Ago
by whitestar Go to last post
17 378
Help

How Would I Go About Scaling an Entity?

Hey, I'm wondering if anyone is able to help me with a lua issue I'm having. I have an entity created, with physics. I want it so that when it is created, it starts at a size of 1 then scales to a size 3 times as big over the course of 3 seconds....

7 Hours Ago
by whitestar Go to last post
2 143
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 = {}

8 Hours Ago
by Mikey Howell Go to last post
6 193
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.)...

10 Hours Ago
by Keosan Go to last post
4 182
Art

Prop Hunt HUD Aesthetics

I've been playing around with creating a better end round notification for Prop Hunt on and off, nothing complicated, but I can't help but agonize over the appearance. How does this look to you guys?

10 Hours Ago
by Zigglegarf Go to last post
0 82
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

11 Hours Ago
by Minelayer Go to last post
328 25,691
Help

Help on Pricing Things

So I have this Gmod DarkRP server where everyone starts out with 25k cash and I need a way of pricing things on the server. For example: my guns. I've listed out what guns I want to be the cheapest and which ones I want to be the most expensive and for...

12 Hours Ago
by Keosan Go to last post
3 105
YouTube

Simulating the Magnus Effect in Garry's Mod

Hey, So I added the Magnus effect to the ball entity in a gamemode that I'm developing, and I figured I'd share some of what I learned. I made a short video discussing this: and here's my actual source code for the effect:

raubana 2 people are reading this thread x 2
14 Hours Ago
by raubana Go to last post
3 214
Lua

solved User Say Variable in Chat command

Alright so I'm having trouble with a command to make the user say in chat. Right now i have this. ply:ConCommand( "say Help Please." ) but I want a variable to be posted in there. The Variable is made when a button is clicked, my variable...

17 Hours Ago
by xsickxskills Go to last post
3 132
Lua

ScriptFodder - The Garry's Mod Marketplace ( 2 3 4 5 .. 66 67 68 69 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
17 Hours Ago
by Nookyava Go to last post
2,730 206,028
Request

Need Help with Prop Model for Prop Hunt Gamemode.

Hi everyone, I am here asking for help for a project that I have been working on for a while. What I currently am trying to do is to force the "prop" models to load a custom pre-defined model over the Kliener model. What I do know is that in...

17 Hours Ago
by soggy Go to last post
0 46
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...

19 Hours Ago
by solid_jake Go to last post
3,699 103,087
Help

solved 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()

23 Hours Ago
by _AMD_ Go to last post
6 142
Lua

DarkRP Pocket problem

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

23 Hours Ago
by gonzalolog Go to last post
6 204
Help

Player Traceline

I have an addon that replaces sprays with a emblem the user creates and I'm attempting to make it if they are looking directly at the emblem it prints the sprayers name in chat. But when I use eyetrace it doesn't count the sent as an ent ? When looking...

1 Day Ago
by Cheese_3 Go to last post
0 104
Help

RT Scope Issues

I've got some various issues with my RT scopes that have popped up since I transferred to my own base. I'm trying to code my own variable zoom with the FoV on the scope. The old base I was using changed it via a think hook in the autorun file. ...

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

1 Day Ago
by Tenrys Go to last post
8 284
Help

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

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

1 Day Ago
by darpeyface Go to last post
9 130
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 Day Ago
by nedredl Go to last post
6 135
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.

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

1 Day Ago
by Chickengbs Go to last post
2 123
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 = {}

1 Day Ago
by jacobcooper18 Go to last post
7 199
Help

Process for replacing a swep's model

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

1 Day Ago
by SoggyWontonz Go to last post
8 171
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

1 Day Ago
by Robotboy655 Go to last post
8 173
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() ==...

1 Day Ago
by mijyuoon Go to last post
12 252
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...

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

1 Day Ago
by markusmarkusz Go to last post
7 217
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 =...

2 Days Ago
by Owjo Go to last post
10 2,374
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...

2 Days Ago
by Skere_ Go to last post
9 338
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...

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

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

2 Days Ago
by Fresh~ Go to last post
4 153
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.

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

2 Days Ago
by Lunaversity Go to last post
69 3,724
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?

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

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

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

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

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

3 Days Ago
by dankthetank Go to last post
14 401
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...

3 Days Ago
by Velocity Go to last post
1,697 84,507
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...

3 Days Ago
by Gmod4phun Go to last post
12 201
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?

3 Days Ago
by Luni Go to last post
6 213
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,...

3 Days Ago
by Fresh~ Go to last post
6 161
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!

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

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

3 Days Ago
by Sir. Pumpin' Go to last post
20 580
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 :

3 Days Ago
by BALIST0N Go to last post
11 357
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

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

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

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

4 Days Ago
by Chickengbs Go to last post
2 159
Help

solved Check Team Help!

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

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

4 Days Ago
by Vissaben Go to last post
7 239
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 Days Ago
by LeeTheCoder Go to last post
2 171
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 Days Ago
by cpone Go to last post
8 532
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...

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

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

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

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

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

5 Days Ago
by dvd_video Go to last post
0 145
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 Days Ago
by Pixelrain Go to last post
10 341
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....

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

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

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

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

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

5 Days Ago
by Reese Roite Go to last post
5 261
Help

Footsteps for certain jobs.

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

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

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

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

5 Days Ago
by daxble Go to last post
10 198