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 17,250
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 27
27th February 2013
by garry Go to last post
0 17,671
Lua

Change weapon view model/world model

Hi, How do you change a weapon view model and world model (clientside) ? I tried this, but it seems to do nothing: local knife = weapons.GetStored("weapon_mu_knife") local gun = weapons.GetStored("weapon_mu_magnum") local defaultKnifeViewModel...

26 Minutes Ago
by azerty2016 Go to last post
0 7
Love

GMod - What are you working on? July 2016 (#59) ( 2 3 4 5 .. 11 12 13 14 Last )

Highlights from the previous thread

27 Minutes Ago
by a-cookie Go to last post
525 32,179
Post Your

Problems That Don't Need Their Own Thread v4 ( 2 3 4 5 .. 70 71 72 73 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...

48 Minutes Ago
by Shenesis Go to last post
2,900 73,806
Lua

add snipers to places

hi i have deathrun server with this sniper addon : http://steamcommunity.com/sharedfiles/filedetails/?id=512052415 and i want to add it in spesific places in maps how can i do that ?

soosy 1 people are reading this thread x 1
52 Minutes Ago
by soosy Go to last post
0 15
School

Does Robotboy drive a ferrari? ( 2 Last )

http://i.imgur.com/FPz6KJh.png Virtual reconstruction of Robot's ferrari http://image.prntscr.com/image/5f96106624fa42cd8ac21a32ad504a32.png Ferraris We have real pics of his ferrari here Serious discussion, how many ferraris has garry given...

1 Hour Ago
by Zelpa Go to last post
44 3,122
Help

How to enable no-clip in LUA?

I'm looking for a Lua command (or a line of code) that puts the player into no-clip. Thanks :)

1 Hour Ago
by Shenesis Go to last post
1 38
Help

Lottery using Float values help! (with math.random)

v: I have this setup, under for k, v in pairs(player.GetAll()) do but I don't know, how to mathrandom someone using this NWFloat LotteryJoin and then setting another float value to 1, so we can give him his winning points. It is a Lottery as you...

1 Hour Ago
by Sir TE5T Go to last post
8 187
Lua

Learning how to make a hud - Help?

I have spent a day or two learning lua and how to make a simple hud for gmod, I have come up with this with one little problem, The healthbar shows up behind the healthbar background. The healthbar it's self is a Draw.RoundedBox and the background is a...

2 Hours Ago
by jacobcooper18 Go to last post
8 186
Help

Help with DurgzMod

Can't find why it says this, just loaded the mod please help addons/durgzmod/lua/entities/durgz_mushroom/shared.lua:89: bad argument #2 to 'Exists' (string expected, got no value) 1. Exists - :-1 2. fn -...

5 Hours Ago
by code_gs Go to last post
3 64
Help

Making custom HUD toggleable.

Hello! I've been working on modifying an old variant of TTT, call "TTT: Hitman Modification". The varaint comes with a custom hud, however if you add it it will be the default hud and no one can switch to the one they prefer. I was wondering what would...

ncc360 1 people are reading this thread x 1
7 Hours Ago
by crazyscouter Go to last post
1 77
Help

Help with demotion on death.

Now I need a script that will demote the mayor when he dies (not just when he kills himself, when other player kill him too)

7 Hours Ago
by crazyscouter Go to last post
1 50
Beta

Translators ( 2 3 Last )

Because of the recent influx of French players, and the already existing user base of players who don't have English as a first language, it might be useful to have a list of user who speak another language, who can be contacted if need be by people...

7 Hours Ago
by brianm109 Go to last post
89 5,012
Help

Changing TOOL.AddToMenu of Default Tool

I need help trying to get the axis tool to not add to the tools menu without having to touch the sandbox game mode files. Currently I can by adding in TOOL.AddToMenu = false to the original axis.lua file in the sandbox game mode files, but how can I...

9 Hours Ago
by whitestar Go to last post
1 45
Help

Last Innocent

im trying to make a script that says is the last innocent here is my code local function LastInno() inno = 0 for k,v in pairs (player.GetAll() ) if v:GetRole() == ROLE_INNOCENT then inno = inno + 1 end

9 Hours Ago
by whitestar Go to last post
7 135
Lua

Easy Entity Help

I have a addon that i need help allowing the player who bought the entity (DarkRP) to be able to move it with a physgun, i would like this entity to be picked up only by the player who spawned it and can use the physgun on it. I have tried multiple tricks...

10 Hours Ago
by whitestar Go to last post
6 158
Help

Fly mode instead of GM:PlayerNoClip

Hello all, Had a good look round at trying to find a fly command that I can use in my gamemode. Basically, players will be allowed to fly around the set area of the map although not pass through any object/world items. I am in the process of rewriting...

10 Hours Ago
by whitestar Go to last post
1 76
Help

How to find corrupt of badly coded addons.

Can I have some ways to find badly coded or corrupt add-ons because I recently made a post on why my server is lagging and know that I know why....... (an Addon on my server is badly coded) I need to find a way to find out which one it is. Thanks to...

10 Hours Ago
by gonzalolog Go to last post
3 126
Help

Entity Collision detect

I am attempting to make an entity "A" that accepts another entity "B" as "ammo" (They collide then the script inside entity "A" deletes entity "B" and reacts by adding blah to blah) However I cannot seem to get the collision to even register for...

12 Hours Ago
by darkaaja Go to last post
2 94
Help

Lag issues

Ok, I have a server it gets around 30 players per day -max. I recently had the problem of lag. I found out that was due to the ammount of addons on the server. I fixed everything but I still don't have the ammount of FPS as most servers do. any help? ...

13 Hours Ago
by RandyButter Go to last post
5 116
Help

How theses scripts can work ?

Hello, having a PropHunt server working on : http://steamcommunity.com/sharedfiles/filedetails/?id=417565863 I wanted to improve my server but I am stuck with 2 scripts : -The first script is for giving points when people taunt and give more points...

13 Hours Ago
by Darkouille81 Go to last post
6 274
Help

Good way for "calculating" prop "modules"

Hello facepunch, I wanted to ask, if theres a good/easy way, to calculate prop "modules" as seen in some darkrp printer addons (sharprinter etc) like here: I basically want to do that too, but when I look at that code, I dont understand how they...

14 Hours Ago
by Nick78111 Go to last post
2 105
Lua

deathrun models

hi i have a deathrun server and i wanted to change the death model how can i do that ?

16 Hours Ago
by code_gs Go to last post
1 64
Lua

Help With Wings And Hats Code

hi i want to add to my pointshop these wings : http://steamcommunity.com/sharedfiles/filedetails/?id=107165776 i try somethings and i still failed and i have this addon of hats and stuff and i want to add it to to my pointshop :...

17 Hours Ago
by Invule Go to last post
10 297
Lua

cant equiq the model

hi i have a deathrun server and when im buying or someone else a model (from the shop) when we do equiq it dont do anything how can i fix that ?

19 Hours Ago
by soosy Go to last post
5 76
Help

Help with a PlayerDeath script please.

Hi, so my script won't seem to work, no errors. Is there an issue? function GM:PlayerDeath( victim, inflictor, attacker ) for f, ply in pairs(team.GetPlayers(3)) do if ply:IsCP() then ply:ChatPrint( "Unit: " .. victim:GetName()...

20 Hours Ago
by Matsumoto Go to last post
22 335
Help

How do some addons auto-DL their own content for players?

Occasionally I've seen ScriptFodder addons that simply require you to stick the folder in garrysmod/addons, and not add anything to your workshop collection, download.lua, or fastDL of any sort. How is this possible, and how is it done?

23 Hours Ago
by The Commander Go to last post
5 165
Help

How to access gamemode content folder?

Hey. Don't understand how to access gamemode content folder. I have a custom vtf in the content/materials folder of my gamemode, and when I try to reference it in derma it doesn't work, just puts a missing texture.

23 Hours Ago
by Kiro The Pro Go to last post
2 116
Help

Weapon destroy

Is there a way where I could add a Lua file to make it so people can type /destroy and their weapon disappears

23 Hours Ago
by Kiro The Pro Go to last post
4 125
Help

solved Timer and rev entity

Hello? Facepunch. How to transfer to entity for timer function? And how to fix this error? function ENT:Boom(user) timer.Simple( 5, function() self:EmitSound("weapons/slam/mine_mode.wav") end) --string 95 local ef = EffectData()...

1 Day Ago
by godred2 Go to last post
7 125
Help

Creating an NPC ( 2 Last )

Hello, I was wondering how I would create an NPC, where when you interact with it, a menu pops up with information, I have no idea how to create the actual NPC and was hoping someone could point me in the right direction. I sort-of know how to create the...

1 Day Ago
by UnknownFusion Go to last post
74 1,154
Question

Drawing halos for one team

How can I draw a halo on members of team1, that only team2 can see?

1 Day Ago
by Gedo789 Go to last post
3 114
Tutorial

How to Create a Swep Spawn Icon.

Programs Needed: VTFEdit | http://nemesis.thewavelength.net/index.php?c=178 Paint.net | http://paint.net/ paint.net's .vtf | plugin http://nemesis.thewavelength.net/index.php?c=225&o=0 1. Take a screenshot of what you want your spawn icon to be....

1 Day Ago
by overki11 Go to last post
20 9,193
Lua

solved Applying Maths to a table value.

So i have some code that creates a txt file that contains info i need to save It saves it in Json format Example {"scrapMetal":1} I have a function to load the data and convert it back to a table but i cant then apply maths to it. How would i do...

1 Day Ago
by Zeus2 Go to last post
26 250
Steam

server community group

hi i have deathrun server and i wanted to do when someone type !steam he can join our community group and it will give him items and rank him up any idies how to do this ?

1 Day Ago
by soosy Go to last post
6 128
Lua

csgo knives disappeared

hi i have deathrun server with pointshop and when someone buying an knife from the shop It disappeared after one round and cant be equiqed anymore even if im doing holster and then equiq its still dosent work this is the code im using : ITEM.Name =...

1 Day Ago
by soosy Go to last post
5 166
Help

How to allow Animations on StarwarsRP

Our Server runs ULX and we would like to know how to allow our players to use the console command, bind (key) "act salute". How do I go about doing this?

1 Day Ago
by gonzalolog Go to last post
3 111
Help

Hud doesn't work on dedicated server?

I've created my own gamemode, with its own hud. I'm running it on my dedicated server for me and my friends to enjoy. So far there are no real gameplay bugs and we've been having tonnes of fun, but there's one little problem with the gamemode's custom...

1 Day Ago
by KO #1 Go to last post
6 223
Question

solved Find point on other side of entity without tracing backward

Currently, I am doing weapon penetration by hitting an entity, advancing a set step size past it to find an empty point, then tracing backward to find the exit point of the entity. The problem is if a bunch of entities are stacked together, constantly...

1 Day Ago
by code_gs Go to last post
3 121
Garry

Next Update v5 - April 2016 Update is out! ( 2 3 4 5 .. 19 20 21 22 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/

1 Day Ago
by Robotboy655 Go to last post
840 59,772
Lua

Adding properties to custom gamemode

I'm working on a roleplay gamemode with a friend, and I was wondering how I would add properties? In other words, how would I add being able to own one (or multiple) doors?

1 Day Ago
by LUModder Go to last post
1 90
Question

Playermodel for a specific player in pointshop?

Is there a way to make a playermodel purchasable only for a specific player in pointshop? If there is, how can this be achieved?

1 Day Ago
by LUModder Go to last post
2 107
Lua

solved Help me work on one of my first weapons?

Hi all, New to Lua coding here. I'm making a SWep that increases in power as the owner loses health. I want the damage of the weapon to be equal to 100 minus the player's current health. Currently, I have this coded as 100 - Entity:Health(). When I do...

1 Day Ago
by Apickx Go to last post
4 109
Help

Loading screen music suggestions?

So recently I set up a community again and I set up the loading screen but I can't think of any songs to add to it, any suggestions? Because I want the music but I want it to be relaxing or hype with not too much talking, so any ideas?

1 Day Ago
by Haina Go to last post
5 129
Lua

How to use LERP?

So I would like to know how I would add LERP to a hud Here is the code I used for healthbar hud health etc local hudhealth = LocalPlayer():Health() / 100 local healthBar = math.Clamp((LocalPlayer():Health() / 100), 0, 1) local armorBar...

Renzr 1 people are reading this thread x 1
1 Day Ago
by Kiro The Pro Go to last post
3 164
Lua

Users can Grab Cars trying to fix

I run a darkrp server and i am trying to fiqure of on how to prevent users from grabbing any cars that are spawned using the vcmod car dealer or admin spawned in. if any player owns the cars they can grab them at will and i am trying to fix that to...

1 Day Ago
by PhantomSniz19 Go to last post
0 70
Help

Creating a multi-prop entity

How would I create a multi-prop entity? I know how to easily make an entity out of a simple prop, but I am unable to figure out how to take two props and merge them to create a single entity. For example turning a simple tv entity into a full tv with...

1 Day Ago
by darkaaja Go to last post
2 101
Lua

Save and Load data

Im making a zombierp server and i need to keep track of how much scrap metal someone has picked up. I need it to stay after the servers restarts aswell. Would it be a good idea to create a text file which keeps track of player names and amounts? If so...

1 Day Ago
by Zeus2 Go to last post
6 184
Lua

DarkRP Entity Take Damage help

Hi, I've been trying to get a GM:EntityTakeDamage function to work in darkrp but no matter what I try I can't get it to work and I keep getting lua errors. This is what I have so far. PlayerLoadout = function(ply) function GM:EntityTakeDamage(...

1 Day Ago
by shootbysteve Go to last post
2 106
Lua

solved HUD Kill Feed troubles

So I have this weird problem that I have been trying to work out for a couple of hours. I am making a kill feed. (going for something similar to this) Here is my code-- init.lua--

1 Day Ago
by bosnian_cyco Go to last post
3 162
Lua

Scaleing Help.

I need some help with HUD Scaleing. I need to keep the positions the same aswell as keeping the size and look of the hud the same on any resolution. I have no clue on how to do this and I need some help. Here is a sample of some of my code. Thank you. ...

1 Day Ago
by Syntax2056 Go to last post
15 261
Help

solved Pointshop 1 Playermodel restriction help

ITEM.Name = 'Police Chief v2' ITEM.Price = 5000 ITEM.Model = 'models/player/santosrp/male_02_santosrp.mdl' ITEM.AllowedUserGroups = {"superadmin"} ITEM.SubCategory = "Owner" function ITEM:OnEquip(ply, modifications) if not ply._OldModel then...

1 Day Ago
by C.Finley Go to last post
0 61
Help

Pointshop 1 - Give Entity problem

Hi, I need to give weapon attachments without the spawn of a box in which they are. Please help I have tried to do so: ITEM.Name = 'AK-74 - Barrels' ITEM.Price = 50 ITEM.Model = 'models/Items/BoxMRounds.mdl' ITEM.SingleUse = true

1 Day Ago
by maximaler Go to last post
0 60
Love

Mod Mountain - The Better Garry's Mod Marketplace ( 2 3 4 5 Last )

Mod Mountain is a brand new marketplace for Garry's Mod addons with a focus on community and transparency. Most of you already know the drill by now, so let's just go into some of MM's unique features: - Team Revenue Splitting: easily share addon...

1 Day Ago
by Phoenixf129 Go to last post
183 8,226
Help

[ERROR] lua/giverandom.lua:205: attempt to call method 'Give' (a nil value) 1. unknown - lua/giver

So basically, I am trying to make a command that gives me a random gun from a predefined list, but whenever I run it, it gives me this error: lua/giverandom.lua:205: attempt to call method 'Give' (a nil value) 1. unknown - lua/giverandom.lua:205 ...

1 Day Ago
by skullorz Go to last post
20 460
Help

UGENT! Server Problems (No inventory Pickup, Can't spawn in weapons)

Sooooo for some reason, on my server none of the superadmins can spawn in weapons, neither can I. And My inventory system are gone. I have an active playerbase of 30 people per day and I can't loose that by having this on my tail. So please I need all the...

1 Day Ago
by Noi Go to last post
5 176
Help

Need help with swep

Now that we have that out of the way I am having trouble making my first swep and I was wondering if anyone could help me. My only real problem is the swep acts as a gun though I was trying to make it act as a melee weapon and it even is held as a pistol...

1 Day Ago
by Shenesis Go to last post
1 89
Help

Easily accessing serverside values clientside

Hi. Does anyone have some advice on how to easily access serverside values from clientside? As in, being able to view them without the ability to modify? An (obvious) example of this is Health and Max Health, you can see both with Health() and...

1 Day Ago
by bigdogmat Go to last post
6 196
Lua

Entirely horizontal bullet spray?

So recently I learned that bullet.Spread is usually a vector value. I thought that I could easily manipulate it to achieve a certain effect I've been looking for, which would nicely compliment my newest weapon base. The problem is, however, it's...

2 Days Ago
by rayrifle Go to last post
4 164
Steam

How can i upload my mods to steam

Hi! i make a gamemode for Garry's mod and i wanted to ask how can i upload it to steam workshop thanks :D

2 Days Ago
by MPan1 Go to last post
5 188
Question

How do I set spawns up to face a certain direction for each spawn?

Currently using DarkRP When I do "/setspawn (job command)" in a certain location facing a certain way, when you respawn, it just faces one direction for each spawn you set. So when I set a spawn, each spawn you set all face one direction for each...

2 Days Ago
by StaticXNation Go to last post
0 76
Help

TTT Hooks

I was wondering if there is a website where i can find all of the ttt hooks. PS http://ttt.badking.net/ doesn't have all of them

2 Days Ago
by code_gs Go to last post
1 101
Help

you are unable to /demote

For some reason, I can't demote anyone on my server which I need to know how :( Sorry If I sound like a noob, I'm a beginner in some things, not all tho. So all I know is when I try to demote someone, it says "you are unable to /demote" Thanks to...

2 Days Ago
by RandyButter Go to last post
3 132
Shitpost

solved UnMakePopup? Is it possible?

Hi, is there way to make DFrame not MakePopup?

2 Days Ago
by Koji6ac9H Go to last post
6 213
Release

Simple Radio/Comms command for DarkRP

Hey everyone, this is my first attempt at creating a Gmod script of any kind. Basically its a re-do of the /advert command but instead of /advert its /radio, /comms, or /coms that puts out text in the format of *yourname* : *your message in bright...

2 Days Ago
by skullorz Go to last post
10 251
Lua

ScriptFodder - The Garry's Mod Marketplace ( 2 3 4 5 .. 46 47 48 49 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 21
2 Days Ago
by roastchicken Go to last post
1,920 71,250
Question

solved Find water's surface with trace

How can I find where air changes to water and vise-versa? I tried using a combination of trace masks, but I couldn't find anything that would void out empty space.

2 Days Ago
by code_gs Go to last post
4 145
Lua

Need Help With Derma Panels! And Net Libraries

Im trying to get a derma panel to open with a chat command! I cant seem to get it to work. FYI(I am running a dedicated server with the DarkRP gamemode. Also i have VERY little knowledge about lua coding itself. I am trying to learn more so please no...

2 Days Ago
by PureCTRL Go to last post
8 226
Help

Recording all the palyers in the game? video.Record

I havn't ever used video.Record before because really it ain't something people use... but I was thinking of a system were people can report a player? and when we type a command in chat it loads up the players replay? local config = { container =...

2 Days Ago
by Mitsudigi Go to last post
7 265
Help

solved HUD Help (Again)

Hello FacePunch, I need some help coding a HUD. I released some code that I later decided to scrap because it was a bulkey design. It is now one bar. I am needing to invert or reverse the animation of which the armor bar increces and decreses when the...

2 Days Ago
by Syntax2056 Go to last post
6 156
Lua

Worldmodel Bodygroups Broken.

I'm not really sure how to even explain this bug, so here's a video and my code. Code function SWEP:DrawWorldModel() if CLIENT then self:DrawModel() self:SetBodygroup(1,self.ShieldGroup)

2 Days Ago
by code_gs Go to last post
3 97
Lua

solved Protect my code?

If i've created an addon and sell it to a customer on PayPal, and if i'm scared that he is going to sell it again for more. Is there a way that i can do so he is not allowed to resell it. Please help. :)

2 Days Ago
by typedef state Go to last post
1 98
Help

solved MOTD Edit Help

I want to edit the code of the MOTD to make it open it after a set time on a loop. I've tried adding a "for do" and "simple timer" but none of these worked. Here's the unedited version of the MOTD. Thanks! ulx.motdmenu_exists = true local mode...

2 Days Ago
by Noble Atticus Go to last post
2 102
Lua

solved Need some HUD help.

I need some help with antialiasing this HUD and Scaleing it propperly insted of the way it is being scaled now. Scaleing works but doesnt at the same time. The HUD code will be below. --SNIPCODE--

2 Days Ago
by Syntax2056 Go to last post
6 130
Lua

dont see the model

hi i have deathrun server and i was trying to change the death model with this code : i removed this code from init.lua : ply:SetModel( mdl or table.Random( rModels ) ) for this code : if ply:Team() == TEAM_RUNNER then ply:SetModel( mdl or...

2 Days Ago
by soosy Go to last post
10 124
Help

solved Turbostrois for linux server

I have server what is running on linux. i want players to driver train. Metrostroi trains are so detailed that when i spawn one train with three waggons server dosen't lag. But when 2 trian is spawned server starts lagging. Turbostroi is lua file what...

2 Days Ago
by GXsakuboy99 Go to last post
4 117
Lua

solved Strange issue regarding particles

Hello, em... so I've tried to make particles for the first time, basically, and while I thought that I got it, something strange happens. I've made a rain effect which, upon start, starts to go off every 5 seconds and go on again. Here's a video: ...

2 Days Ago
by typedef state Go to last post
6 87
Help

Adding custom weapon information to corpses?

Hi! I was wondering how to add information to corpses for custom weapons in TTT. I've noticed how Radar, disguiser, and body armor would show up when you checking the body. Saying something vague like "This person had technology that would hide his...

2 Days Ago
by markusmarkusz Go to last post
1 104
Help

Custom Money Printer Help! URGENT!

So i am fairly new to lua scripting and id like to know more about it. But before that... I need some help with this error im getting. I would like a quick response please! And i dont want details on how i can learn to do it i just want to know whats...

2 Days Ago
by VoXBox Go to last post
22 294
Help

Using Next() in lua. Help with for loops and spectator function.

I've been trying to figure out how to go the the next active player in a table using various loops and functions. I have a networked spectate function made which is activated by a button press on the client in a derma menu. The client button click...

RenTec Thread has images 1 people are reading this thread x 1
3 Days Ago
by typedef state Go to last post
7 206
Help

solved Need a log error solved!

Hello! I am a developer of a CW:HL2RP Server. I have an issue where in my server logs it shows this error } Calling GetCollectionDetails Response missing: {

3 Days Ago
by typedef state Go to last post
1 103