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,290
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 27
27th February 2013
by garry Go to last post
0 17,712
Help

solved How to remove lag from Avatars? ( VGUI )

local Avatar = vgui.Create( "AvatarImage", Panel ) Avatar:SetSize( 100, 100 ) Avatar:SetPos( 65, 100 ) Avatar:SetPlayer( LocalPlayer(), 100 ) Ok so I have this, everything on the server works no errors. But when I change anything inside...

33 Minutes Ago
by jacobcooper18 Go to last post
9 59
Help

DrawMaterialOverlay on ttt

Hello. I used DrawMaterialOverlay( "effects/invuln_overlay_red", 0.5 ) on my local server, and it perfectly works, instead in my ttt server, I only see error. Why?

Predda 4 people are reading this thread x 4
39 Minutes Ago
by MPan1 Go to last post
1 19
Help

solved Timer with chat.addtext

timer.Create( "LvlTest", 2, 0, function() if (ply:GetNWInt( "LVLBar" ) + 1) then for k,v in pairs( player.GetAll() ) do chat.AddText( Color( 100, 100, 255 ), ply, ", Has just reached lvl ", client:GetNWInt( "LVLBar" ) ) end ...

54 Minutes Ago
by jacobcooper18 Go to last post
12 112
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/

57 Minutes Ago
by Zeh Matt Go to last post
845 60,203
Question

solved Wich are the differences between a windows server and a linux server?

Hello. Excuse me for any grammatical errors. The title doesn't perfectly explain my question, so before comment read all. I don't know why my script perfectly works on a windows server, but not on a linux server. I know that in a linux server, I...

1 Hour Ago
by Predda Go to last post
4 79
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?

2 Hours Ago
by MooreTwisted Go to last post
4 147
Help

chat tags

So here is the working code... local Tags = {} Tags = { Color( 255, 0, 119 ), "Owner", Color( 196, 29, 107 ) } Tags = { Color( 0, 136, 255 ), "Admin", Color( 6, 116, 212 ) } Tags = { Color( 227, 39, 39 ), "Global-Admin", Color( 201, 34, 34 ) } Tags...

2 Hours Ago
by meharryp Go to last post
6 112
Help

No DNA on TTT Custom Weapon

This may be a simple and easy question, but how can I disable DNA on a custom weapon I found. So DNA will not be found on people killed with it?

ncc360 3 people are reading this thread x 3
3 Hours Ago
by iJohnny Go to last post
2 94
Post Your

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

3 Hours Ago
by geferon Go to last post
2,925 74,597
Question

How to sync client side timers

I have 2 timers that are hooked to the Initialize function client side. Obviously as you would assume when 1 player connects, and then another player connects 5 or so minutes later, the timers will be out of alignment. What is the best possible way to...

3 Hours Ago
by guigui Go to last post
8 126
Help

How i can play youtube songs on sound.PlayURL ?

Hello, i tried help of this thread: https://facepunch.com/showthread.php?t=1389301 But it doesn't want to play.Maybe The link is not ending with .mp3? Please guys, i want help.I am figuring it out 2 days now.

4 Hours Ago
by MPan1 Go to last post
1 45
Help

Custom Tails view model not working correctly

I recently made first person hands for my Tails player model and for some reason it looks wired. Anyway i can fix the arms thats my main concern. Thanks for giving me your time. // Created by Crowbar 0.34.0.0 $ModelName "_TailS_...

4 Hours Ago
by Gmod4phun Go to last post
8 118
Help

Animated text getting bigger when hovered onto.

Was just wondering on how I could create animated text for a button I hover onto. The text would get slightly bigger when hovered onto and the go back to normal size. I know how to animate vgui's already but this I don't know this. Code I have so...

5 Hours Ago
by MPan1 Go to last post
10 111
Help

Lag Spike issues!!!

Ok, I'm a bit ticked off by this lag spike issue now. Hello, my name is Randy Butternubs some of you might know me as the "facepunch meme" or otherwise. And yes I'm still newbie to coding, I know how to host a server I just don't know how to...

5 Hours Ago
by jacobcooper18 Go to last post
15 225
Help

Keep Weapon on change job DarkRP 2.5+

Well like the title set, how do i make player keep weapon when they change job in DarkRP?

8 Hours Ago
by YoutoYokodera Go to last post
0 44
Love

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

Highlights from the previous thread

8 Hours Ago
by bobbleheadbob Go to last post
549 34,270
Help

phys_hinge in lua

Hello guys :) i want to make an entity in lua (a trebuchet) i need the axis there http://i.imgur.com/zJf813q.jpg i know how to make it in hammer editor but i want it in lua, also i add an hud for that entity

10 Hours Ago
by poepel Go to last post
7 187
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...

10 Hours Ago
by XxLMM13xXx Go to last post
1,930 71,978
Help

DarkRP Commands Permissions

Hello, I've setup ULX which is merged with CAMI for DarkRP Commands. I've setup a rank that is inherited to the "admin" ulx rank, but disallowed the "darkrp_admincommands" permissions. While doing so they are still able to do the slash commands to the...

11 Hours Ago
by Darkblizzard Go to last post
0 58
Help

Drugs show up under weapons tab instead of shipments tab, buyable by any job.

I'm currently testing this drug dealer job and the entities that work with it. However, drugs seem to show up, inside of my category, under the "weapons" tab rather than the shipments tab, which appears to be darkened. I can also buy drugs regardless of...

12 Hours Ago
by UnknownFusion Go to last post
1 70
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...

12 Hours Ago
by FirstOrder Go to last post
10 294
Help

solved Unknown error in GLua

I have a problem, I have this snip of code: // Now let's loop through all the lines so we can split those too for i, line in ipairs(lines) do // line is the current line, and i is the current line number data = string.Explode(" ", line)...

12 Hours Ago
by ZombieKingAAA Go to last post
27 261
Lua

How to get current ammo?

I have been making a hud recently and is there a way to make something like this :local health = LocalPlayer():Health() but getting the local players ammo?

13 Hours Ago
by code_gs Go to last post
1 44
Help

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

13 Hours Ago
by .0mega Go to last post
9 246
Help

solved Make sleep people whit a swep

Hello I want to make a swep with which you can make sleep(DarkRP) someone when you shoot on it with this swep I have le little idea of how to do that but i need some help

15 Hours Ago
by overki11 Go to last post
1 70
Help

Where is the Medkit file in DarkRPmodification?

Hi guys, I want to change how much the DarkRP medkit heals players from 1 to 10 instead. I've looked around in the darkrpmodification file and can't find any file which has the medkit so I can change how much it heals Do you guys know where it is?...

16 Hours Ago
by whitestar Go to last post
9 159
Question

solved Adding the infamous blur to vgui elements

Hey everyone. This is just a simple question. I've looked at a few addons that incorporate blur into derma/vgui elements, and I'd love to do the same. However, from these addons, all I got was confusion. Could anyone demonstrate how to add blur...

18 Hours Ago
by Fillipuster Go to last post
2 99
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 :)

19 Hours Ago
by tcmaxwell2 Go to last post
5 221
Help

How to stop "models/rendertarget" material from refreshing on specific entity

I mean I need to pause the material on an entity while not effecting others.

19 Hours Ago
by anka067 Go to last post
0 58
Lua

Sorry for the spam but I need help with animations.

Code: hook.Add( "PlayerSay", "PlayerEmotes", function( ply, text, public ) text = string.lower( text ) -- Make the chat message entirely lowercase local pl = self:GetOwner() if ( text == "/salute" ) then PrintMessage( HUD_PRINTTALK, ply .. "...

20 Hours Ago
by Gmod4phun Go to last post
10 148
Help

Particles???

I been looking around on facepunch at all the "All you need to know about particles" and "so you want to learn lua" but not of them truely explain on how I could attach a particle effect onto a world model of a weapon, and I was wondering if anyone can...

20 Hours Ago
by poepel Go to last post
3 228
Question

jobs.lua

my jobs . lua wont load and says Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 22. The best help I can give you is this: Right before the '}', Lua expected to read...

20 Hours Ago
by Garnet Go to last post
5 164
Lua
21 Hours Ago
by InvisbleMario Go to last post
4 114
Question

Where can i get a list of keyvalues for NPCs?

I haven't been able to find a list of keyvalues.

23 Hours Ago
by figurez Go to last post
6 140
Lua

help with code for awp in pointshop

ITEM.Name = 'Awp' ITEM.Price = 35000 ITEM.Model = 'models/weapons/csgo_world/w_snip_awp.mdl' ITEM.WeaponClass = 'awp_gentleman' ITEM.SingleUse = false ITEM.Material = 'materials/awp/awp.png' function ITEM:OnEquip(ply) ply:Give(self.WeaponClass)...

23 Hours Ago
by roastchicken Go to last post
8 119
Help

solved GarrysMod Lua | draw.Simpletext increase size?

Is there any possible way of increasing the size of a text? because oh my god, its small.. draw.SimpleText("Level: "..client:Health(), "DermaDefaultBold", 10, ScrH() - 480, Color(255, 255, 255, 255), 0, 0) how on earth, do I make the text displayed...

23 Hours Ago
by roastchicken Go to last post
5 80
Lua

Need help with some code

Hello, I'm fairly new to coding in lua and coding overall. I've decided to make a script that works sort of like ulx I suppose just on a much more dumbed down scale and will only work with console commands though the code I've slapped together isn't...

23 Hours Ago
by jacobcooper18 Go to last post
11 141
Help

solved How do I make it so a certain player gets a weapon when they spawn?

So, I have a player that wants to pay for a permanent weapon. How do I make a player spawn with this weapon: m9k_l85 I couldn't find any addons that'd do this for me, so I'm just going to post this here.

1 Day Ago
by cowslaw Go to last post
7 84
Help

solved Custom Box on screen? Help

Expierence.lua XPFUNCTION = {} if SERVER then function XPFUNCTION() local client = LocalPlayer() if !client:Alive() then return

1 Day Ago
by jacobcooper18 Go to last post
9 88
Lua

solved Override local vars?

Short question: Can I modify local vars in a function without overwriting the complete function? I don't care how complicated it can be.

1 Day Ago
by man with hat Go to last post
4 173
Lua

solved Any hook for when the server shuts down?

I have my own money system on my server. When the server loads it loads the file containing the money(s?) in this format: <steamid1> <moneyamount> <steamid2> <moneyamount> I need to make it so that when the server closes it saves all of the money...

1 Day Ago
by lvivtotoroyt Go to last post
2 98
Lua

Gamemode creation error : file not found

Hi world, I have started to create a custom garry's mod gamemode. I have create the basic stuff, and three lua files : init.lua, cl_init.lua and shared.lua. So far there is no problem but when i want to add a new file to my gamemode (i mean a lua file...

1 Day Ago
by Alpha_Dev Go to last post
3 92
Help

solved How do I make a certain ULX group spawn with a certain weapon?

How do I make a certain ULX group spawn with a certain weapon? I want my "vip" ULX group to spawn with a certain weapon, but when I use a loadout mod it just makes them spawn with what I set and none of the tools that their darkrp job should spawn with....

1 Day Ago
by cowslaw Go to last post
10 176
Help

solved GLua file contents to variable

Let's say I have a file, with "STEAM:000 csgo_some_wep", how can i read that file and turn "STEAM:000" and "csgo_some_wep" into vars? Or put them into. I assume you have to read the file in a var, explode it, with space as a delimiter? Also, I have a...

1 Day Ago
by ZombieKingAAA Go to last post
7 88
Help

DTextEntry Focus

Hello I am trying to capture the focus of the keyboard on a DTextEntry. However, I do know that you cannot focus unless you parent it to a "EditablePanel" which I have done. I will proceed with showing you my code. local PANEL = {} -- Called when...

1 Day Ago
by MPan1 Go to last post
2 81
Lua

Make a hook to open a VGUI?

I am comfused open making a hook to open this vgui this is what I have so far concommand.Add("!compliment", DermaPanel) hook.Add( "PlayerSay", "!compliment", function (ply, text, public) text = string.lower( text ) if ( text == "!compliment")...

1 Day Ago
by MPan1 Go to last post
2 99
Lua

How to make an ammo count "bar"?

So Im making a hud where I have a Red hp and blue armor bars. When you get hurt it goes down the amount you got hurt. How would I do this with ammo? I want whats in the gun and the extra bullets. Heres what I use for the armor local Armor =...

1 Day Ago
by Invule Go to last post
1 78
Lua

solved {HELP} HUD using to much memory??

So I created a HUD and it keeps using WAY to much memory and makes me exit gmod to save memory... its only 47 lines of code! Anyone have any ideas why its happening? (I can post the code if needed)

1 Day Ago
by Dark Hood Go to last post
10 127
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 -...

1 Day Ago
by Thane Go to last post
9 172
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...

1 Day Ago
by thegrb93 Go to last post
6 224
Help

Need Help with adding Sound when the players health is at 25 and below ( 2 Last )

I have started to make some HUDs and i really wanna add some custom sounds to them i have tried for about 3 hours now trying to add some type of sound but nothing is working or i just keep getting errors like this oneCSoundEmitterSystemBase::AddSound(...

1 Day Ago
by Lavacoal123 Go to last post
44 659
Question

Regular Expression (shared) binary module for GMod

Wondering if there is any open-source one? I couldn't find any, so that's why I am asking. (So, I don't "reinvent the wheelie.") I could make one in C++ (which would use Boost) and then one in C# (System.Text.RegularExpressions)..

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

1 Day Ago
by Gmod4phun Go to last post
12 167
Help

opening map barriers

On rp_paraleake_city_v3 the barriers that stop people driving into the back of the pd require a script for them to work properly. This is what i came up wit first. function policebarrier() for k, v in pairs(ents.FindInBox( Vector( -8467, 9394,...

H4
1 Day Ago
by Melted Bu11et Go to last post
1 125
Help

solved Nextbot issue.

Hey guys so I've been working on this Nextbot and I've got it to work to the point I wanted to, but when I got a friend to get on and try and he did the thing that toggles the nextbot to chase you, but they never do, they only chase me. I don't really...

1 Day Ago
by Gmod4phun Go to last post
9 134
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...

1 Day Ago
by ncc360 Go to last post
15 246
Help

solved Timer in derma?

Hello. How can you put a timer in a derma menu? They do not draw every frame, so it doesn't work by putting a dLabel inside of it.

1 Day Ago
by overki11 Go to last post
2 71
Lua

Blue's Unboxing problem

hi i have a deathrun server and i have this addon : https://facepunch.com/showthread.php?t=1481681 and i install it and all and when i do !unbox or /unbox it dosent do anything and i searched at all the lua files and i still didint find, help ?

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

1 Day Ago
by Invule Go to last post
1 93
Lua

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

1 Day Ago
by Deception_ Go to last post
10 247
Photos

solved All the silkicons of gmod.

Finally! I have figured out how to get all gmod silkicons! How Ive' done it: I have done It with a program called GCFScape. Ive looked in the gmod directory and I saw .vpk files Then I opened them up with GCFScape and I saw materials folder I...

1 Day Ago
by man with hat Go to last post
2 152
Lua

death dont get knife

hi i have a deathrun server and when someone have a knife from the pointshop so when they death it not give him the knife code of my knives : ITEM.Name = 'Bayonet' ITEM.Price = 8000 ITEM.Model = 'models/weapons/w_csgo_bayonet.mdl' ITEM.WeaponClass =...

1 Day Ago
by soosy Go to last post
0 66
School

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

2 Days Ago
by Zelpa Go to last post
44 3,391
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...

2 Days Ago
by Sir TE5T Go to last post
8 226
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)

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

2 Days Ago
by brianm109 Go to last post
89 5,044
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...

2 Days Ago
by whitestar Go to last post
1 69
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

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

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

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

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

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

2 Days Ago
by Darkouille81 Go to last post
6 305
Lua

deathrun models

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

2 Days Ago
by code_gs Go to last post
1 79
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 :...

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

2 Days Ago
by soosy Go to last post
5 99
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()...

2 Days Ago
by Matsumoto Go to last post
22 357
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?

3 Days Ago
by The Commander Go to last post
5 188
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.

3 Days Ago
by Kiro The Pro Go to last post
2 137
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

3 Days Ago
by Kiro The Pro Go to last post
4 145