Title / Thread Starter Last Post ByReverse Sort Order Replies Views
Lua

[2017] GmodStore Garry's Mod Gamemode Competition ( 2 3 4 5 .. 7 8 9 10 Last )

Welcome back to another Gamemode Competition thread! The last one went well enough that people were interested in another one. Naturally I had to choose a better time than before so now we're here! GmodStore is the main body behind this competition and is...

6 Hours Ago
by Nookyava Go to last post
370 31,976
Lua

MODDING HELP - READ ME FIRST - LAST UPDATED 9 NOV 2016

This forum is for help with modding Garry's Mod. This does NOT include Mapping or Modelling. Please use the following forums for help with those topics: Mapping: http://facepunch.com/forums/40 Modelling: http://facepunch.com/forums/38 Your...

9th November 2016
by Robotboy655 Go to last post
0 5,136
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? https://facepunch.com/showthread.php?t=1541007

garry Winner x 39
3rd September 2014
by NiandraLades Go to last post
2 24,099
Question

Half-Life Renaissance: Reconstructed don't recognising SLV Base? ( 2 Last )

FIXED BY SILVERLAN! Download now! The new version fixes all current problems: http://www.gamefront.com/files/20965...sance_v1_5_rar You need v1.5 of my SLVBase addon for it to work: http://www.gamefront.com/files/20965...VBase_v1_5_rar

Nugem Thread has images 3 people are reading this thread x 3
36 Minutes Ago
by ZackAnimation Go to last post
46 17,999
Help

Inventory system?

Im trying to make an inventory system for my Battle Royale gamemode for carrying stuff such as helmets, armors, bandages, weapons and attachments but I have no idea where to start. Any tips?

41 Minutes Ago
by Nookyava Go to last post
3 71
Lua

solved Using Net lib, error saying it got no value when sent to the server.

I have a Derma panel with a button that, when clicked, starts a net message to the server. However, when I click the button, it gives me this error: bad argument #2 to 'WriteUInt' (number expected, got no value) This is the code I'm using to...

1 Hour Ago
by LeeTheCoder Go to last post
0 23
Help

[TTT] Is it possible/how can I replace a traitor shop item if user has item equipped.

Hello, not sure how to word this correctly within the title so excuse that. I've recently found an interest within TTT, but wanted to try doing a pointshop item, which is essentially an upgrade of a T weapon. Issue I found is, having the pointshop item...

3 Hours Ago
by JasonMan34 Go to last post
9 176
Help

Change angle of bones.

Hi, i have an turret with an x axis and an z axis. I would like to change the angle of the z angle. I already tried ent:SetBonePosition() but its not being called... ragdoll:AddCallback("BuildBonePositions", function() print("called") end) ~ result...

lafrog 1 people are reading this thread x 1
3 Hours Ago
by lafrog Go to last post
0 25
Help

DarkRP Disable Prop Spawning for Jobs?

Is there any way to disable Prop Spawning for Jobs like Citizens cant spawn props anymore?? I'd like to say thanks beforehand for anyone who's willing to help me with this ;)

3 Hours Ago
by Buzzkiller447 Go to last post
4 89
Humor

[PSA] Check your servers.. again (69+ Malicious Addons) ( 2 3 4 Last )

A continuation of my previous thread Download the latest(06-27-17) workshop dump and search yourself, this list could probably be doubled if someone has the time to sort through false positives: here The following addons contain malicious code to...

4 Hours Ago
by kpjVideo Go to last post
143 7,210
Help

I want to make palyers drop money in precentages(%) and disable kill option in console

Hi, I want to make palyers drop money in precentages(%), how can I do that? can somebody send me be kind and send me a code and tell me where to place it? Also, I want to disable kill option in console, how can I make it? Thanks for help.

LekMiT 1 people are reading this thread x 1
4 Hours Ago
by LekMiT Go to last post
7 158
Post Your

Problems That Don't Need Their Own Thread v5 ( 2 3 4 5 .. 54 55 56 57 Last )

Welcome to Problems That Don't Need Their Own Thread v5! 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 Hours Ago
by xDoomx Go to last post
2,249 72,447
Help

solved too many indices for index buffer. tell a programmer (59838>32768)

I know there have been posts about this in the past, however, this was a long time ago and I just wasn't sure if anything else had been released about this. However lots of players on my server are crashing because of this issue, apparently, it's to do...

5 Hours Ago
by TFA Go to last post
3 98
Help

solved cam3D2D button

Hello, how can I create a button for cam3D2D ? I am doing an button for entity on the screen, but I need to know how to create a button on it.. Im using surfaces in the script. I dont want much share the script if needed...

7 Hours Ago
by losdavidos50 Go to last post
0 55
Help

What do need HUD HELP

Need help? :thinking: What need Animation player hud icon So Animation Player get not walk_all get "idle_all_scared"

7 Hours Ago
by Wavie Go to last post
2 68
Garry

Next Update v7 - July 2017 Update is Out ( 2 3 4 5 .. 10 11 12 13 Last )

http://cdn.akamai.steamstatic.com/steam/apps/4000/header.jpg?t=1421333577 Changelog Live Changelog Main repository Pull requests Latest update is out: https://gmod.facepunch.com/blog/july-2017-update/

Willox Thread has images 3 people are reading this thread x 3 Winner x 21
8 Hours Ago
by Handsome Matt Go to last post
507 41,949
Help

Game crashes with engine error?

Any idea why this code causes the game to crash? It worked before I added the vehicles but I dont see anything wrong with them and the error I am getting is !weapons.Register. This code is located in an autorun file. if SERVER then vehicles = {...

9 Hours Ago
by mcNuggets1 Go to last post
4 130
Help

Regeneration Command

i Search a Command adding Regeneration only for a specified Job on the darkrp gamemode , someone can help me Please ?

13 Hours Ago
by FireWolf2525 Go to last post
9 245
Help

WAC/Entity Player Owning

On the server i'm currently working on (Uses DarkRP) I have a few entities i'd like to be player owned. It may have to do with the entities not having some sort of door owning function that DarkRP uses to allow players to own vehicles. These vehicles are...

13 Hours Ago
by CASAVANT Go to last post
2 93
Help

bz2 not decompressing?

Hi, does anyone know why my bz2 files are not being decompressed after download from my fastDL server? They are put in the download folder in their original bz2 format and trying to use the downloaded materials ingame does not work, when downloading them...

14 Hours Ago
by JasonMan34 Go to last post
4 129
Help

solved Select entities by color and do something to them?

Im trying to do that if an entity is transparent (like alpha 190 or less), a halo is drawn around it. (This is being run clientside btw) and i've tried many ways to do it, by using the GetAll() and then v:GetColor() but for some reason it doesn't work. I...

14 Hours Ago
by geferon Go to last post
4 90
Help

DarkRP Job Health, Armor, Speed

I was wondering how you set a DarkRP jobs health, armor, walk speed, and run speed.

16 Hours Ago
by SleepyMode Go to last post
15 7,551
Help

solved How to call weapon in a function?

Hello I am trying to formulate a script that prints the world model of the current weapon you have out. Here's what I have but I don't think it'll work because of weapon not being defined in the function. concommand.Add( "wmprint", function( ply,...

16 Hours Ago
by pogh10 Go to last post
5 62
Work In Progress

GMod - What are you working on? July 2017 (#71) ( 2 3 4 5 6 Last )

Highlights from the previous thread Not too many highlights this month as last month's thread was quite short.

17 Hours Ago
by FPtje Go to last post
208 15,552
Help

Getting a weapons holdtype?

Im making a script that turns the weapon into safety mode if you are running (meaning you cant shoot and the holdtype gets set to passive) but there seems to be no way of getting the original holdtype? hook.Add( "PlayerSwitchWeapon", "yeet",...

17 Hours Ago
by Thiefdroid Go to last post
0 36
Lua

Disguising Player´s Names

Hi. What can I use to disguise each player´s name for the whole round? Thanks

23 Hours Ago
by Aide Go to last post
3 172
Help

Common Reasons for Crazy Physics?

I'm intrigued by this error. A friend of mine's server is having this seemingly randomly and I can't pinpoint the reason why. From what I understood this was a collision issue causing it but there's only one hook affecting should collide and it doesn't...

1 Day Ago
by solid_jake Go to last post
3 149
Question

Entity:NetworkVar something larger than an int?

I have an issue with money printers that I am looking for an easy solution that doesn't require hacky code. At the moment, I have money printers that go up to 2.1b in capacity, which as I am sure you have already guessed is the maximum I can store in an...

1 Day Ago
by TheCloak Go to last post
13 337
Help

Printer wont print in front of printer always [DarkRP]

So I have my own DarkRP server and I have a money printer I made, so it sets the pos of the money it spawns based on the pos of the printer. See the thing is it doesnt get the angle so all it does is printers 25+ the x pos of the printer. I want to get it...

1 Day Ago
by Bkamahl Go to last post
4 93
Help

solved Invisible Entity Model

Trying to spawn in props via a custom entity. Some spawn normally, while others spawn and have physics, but have no material (invisible, not pink & black). The content is in a folder in my addons for the server, as well as the client, AND the models and...

1 Day Ago
by pqbrown Go to last post
1 40
Help

render.DrawSphere outer side?

Im trying to make a safezone sphere for my Battle Royale gamemode but it looks like shit because render.DrawSphere only draws the inside of a sphere and not the outside. Is it possible to draw the outside of it in any way?

1 Day Ago
by Thiefdroid Go to last post
3 67
Question

solved FFT and Cam3D2D

so simple question because i keep stuck at this quiet some time : how did he create that in a circle?

1 Day Ago
by gonzalolog Go to last post
1 67
Help

Issues with DIconLayout and Panel:Add

Hi I was wondering how to get the position of a panel added to a DIconLayout with Panel:Add. When I get the position of it it returns 0,0. I think this is due to it being merged with the DIconLayout panel, although I was wondering if there was a way to...

1 Day Ago
by Robotboy655 Go to last post
4 87
Help

Assistance with changing a string value in a table or removing/replacing the string altogether

I am no professional coder, but have been running and developing a gmod server (Stranded gamemode) very successfully with custom stuff and some code written from scratch, and I'm having a blast learning some lua On to the help needed: Stranded is a...

1 Day Ago
by matcheezle Go to last post
9 236
Steam

Is gui.OpenURL suddenly broken for you? Try this ( 2 3 Last )

I just found out some of the buttons I use to link to my website no longer work, but that for some reason the one linking to my Steam group still worked. I'm guessing there was an update or something to the Steam overlay preventing non-Steam links from...

1 Day Ago
by Snowa Go to last post
115 10,867
Help

prop_combine_ball?

Im trying to spawn a normal combine ball with a command that stays alive forever, how can I do this? The code below spawns a very tiny combine ball that wont move until I physgun it. :/ concommand.Add( "ballz", function( ply, cmd, args ) local...

1 Day Ago
by maurits150 Go to last post
2 138
Request

The Sit anywhere script

Hello guys, I have a request for the script "the sit anywhere script", I want that if the player does not have the opportunity to sit down (there are no suitable conditions), this function was output notification.AddLegacy( "You cannot sit there!",...

1 Day Ago
by Sean Bean Go to last post
7 337
Help

How to display door text

Hi, so I'm trying to make a door GUI which when you look at a door entity on a map it will display derma and will display it until you look away from the door, kind of like the way the fallout games do it. Not sure the technique on how to start it, if...

1 Day Ago
by FireWolf2525 Go to last post
8 111
Help

Dynamic font size

So I would like to make a font that changes its size when you resize your window. Can I do it like this: check if player has another resolution than he had before and create that font again with another size? or what? help :< is there a concommand or...

1 Day Ago
by sebekpolak51 Go to last post
4 147
Help

[FONT ISSUE] attempt to index global 'surface'

Hello GMAD! This is my first post so go Easy on me! So I am trying to use a custom font on a friend's server we are working on and I have followed the advice of this thread: https://facepunch.com/showthread.php?t=1196247] & this article on the wiki...

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

solved How can i detect if player is under the sky?

What I mean is how could i check if the player is directly under the sky (like if the sunlight was directly hitting him), and also check when the player is under a ceiling (and not under the map's sky) I tried using the "IsSkyboxVisibleFromPoint" ...

1 Day Ago
by h3xu.hg Go to last post
6 145
Help

How to change how physics / gravity works in garrysmod?

Now this question might sound weird when I explain it, as I barely know how to explain it, here; I found this work from Z0mb1n3 Its just.. a very cool way of rotating, now I have almost figured out how to finish it (I have almost finished remaking...

1 Day Ago
by code_gs Go to last post
7 226
Help

solved Using net to send chat.AddText

So iv been just work so f***ing hard on doing something so simple and iv only got one thing working using net library. This is the code that im trying to put into net. concommand.Add( "1server_1", function( ply, cmd, args ) if (ply == LocalPlayer()...

2 Days Ago
by Snowa Go to last post
10 288
Help

solved Custom model is dark?

Well I made a custom model and it looks fine and its texture is fine in game but its slightly darker then any other NPC and it uses the same texture as another NPC so its not the texture? (origin is fine)

2 Days Ago
by DohnnyTheDonk Go to last post
0 49
Help

SetSequence Not Working for "animating" this model

UPDATE AS OF 7-24-17: The issue has been isolated to being a modelling issue so I've made a new thread over there. Incase someone from the future is having the same issue and needs an answer, hopefully it will be in the new thread here: ...

2 Days Ago
by ybother123 Go to last post
24 510
Help

Bodygroups don't apply correctly and skins won't apply on vehicle spawn anymore.

In this vehicle addon im working on, (which is really old btw) only 1 bodygroup for each car apply's and skins won't apply on vehicle spawn anymore. They used to though, but sometime in june or july 2016 they didnt spawn with bodygroups and skins anymore....

2 Days Ago
by Demez Go to last post
0 66
Help

PlayerFootstep and PlayerStepSoundTime

I am currently working with player scaling and it doesn't appear that the two functions GM:PlayerFootstep and GM:PlayerStepSoundTime are called when the player is at ultra slow speeds. Is there a way to override when these functions are called or how can...

2 Days Ago
by arow1234 Go to last post
2 130
Help

Need help recompiling ConVar Query for use on Linux

I've lately attempted to figure out a way to compile BlueKirby's Convar Query module so it would work on a server running linux. Though after I've tried looking through the code multiple times and attempted compiling multiple times I simply had no luck....

2 Days Ago
by Dunkstormen Go to last post
0 63
Help

solved I need some help using elseif statements...

Hey guys, so I'm a little new to the forums, as well as lua, although i've done a little bit of java and lua before. Anyway, I found a game mode base that im working on to play with friends, but I hit a little bit of a rut with the elseif statements, can...

2 Days Ago
by Evilsweetbloc Go to last post
4 104
Help

Chatbox Console Manipulation

Hi there, I am attempting to build a chatbox and I would like to modify what the server console says when a chat goes through (for administration), however I'm not sure which function to use. Right now, I am overriding GM:PlayerSay, but the message I...

2 Days Ago
by James xX Go to last post
9 244
Help

I need help with a death sound addon I made, hope this is right thread, I don't understand lua

So recently I thought it would be funny if I replaced the death sound with the death sound of the original Crash Bandicoot, https://www.youtube.com/watch?v=78KbTXlDrlg here's the clip if you wanted to hear it. So then I followed this video,...

2 Days Ago
by geferon Go to last post
15 273
Lua

How to check if player sees an entity?

Hello, Facepunch. I was wondering how to check if player sees an entity in Lua? Thanks!

3 Days Ago
by Lil_Roach Go to last post
12 391
Question

solved Question about hooks

Whats the differences between using this function GM:PlayerInitialSpawn(ply) print(ply:Name()) end and this function idonthinkthisnamematters(ply) print(ply:Name())

3 Days Ago
by anewbot Go to last post
5 73
Post Your

Useful Code Snippets ( 2 3 4 5 6 Last )

I've got quite a few pieces of code which I've figured out and would've been very helpful to me like 2 months ago, so I made a place for people to post snippets of code for others to learn from. Whether it be like an undocumented or poorly documented wiki...

Exho Thread has images Lua Helper x 23
3 Days Ago
by MrRalgoman Go to last post
216 26,073
Help

solved Message is pooled but if i put some code it won't be pooled for some reason

So I'm new to this networking thing, (glua in general lol) and i've done a system in which when you press shift you run faster. The thing is that it works perfectly, but I want to add that when you get to a speed the player is kind of ragdolled during a...

3 Days Ago
by h3xu.hg Go to last post
8 133
Question

How to get notified when a new gmod server update has been released?

When gmod had their own wordpress site I just used their RSS to get an email every time there was an update. Now they moved the site to some weird facepunch thing without RSS, and I don't know how to get notified. How do you guys get update...

3 Days Ago
by alrynec Go to last post
3 188
Help

HELP SCOREBOARD

I need that whenever I click on the player the panel is displayed, where I can teleport to it, ban and so on, help me please, here is my code ...

3 Days Ago
by iJohnny Go to last post
1 100
Help

FastDL suddenly giving HTTP ERROR 0 for every file

I have a server with maps and content using FastDL. Everything was working perfectly fine for months until now every download returns a HTTP ERROR 0. This happens for even non bz2 files (which don't even exist on the server and should just 404), so...

3 Days Ago
by Shorthouse06 Go to last post
10 284
Help

My addon is not working but whith no lua error

The goal of my addon is to have a driving license editable by multiple instructors that are named by admins, but I havce a problem with the instructor menu which is is not refreshing the data i don't know why Serverside code :...

3 Days Ago
by code_gs Go to last post
9 254
Help

Lua Materials

Hey, I'm looking to make some materials via lua meharryp posted some code that, if I understand it correctly, takes a screenshot of a 2d cam of the original texture, draws on itl, then makes it into a new texture by saving it to the disk and reloading...

3 Days Ago
by code_gs Go to last post
3 170
Lua

Disable attacking

I have a swep that changes hold type while USE is pressed. if self.Owner:KeyDown( IN_USE ) then self:SetWeaponHoldType("normal") end But the player can still primary/secondary attack. So how can I prevent that?

3 Days Ago
by DoktorHaus Go to last post
3 127
Help

How do I stop users from spawning anything?

On my Starwarsrp server I have tried to stop users from spawning in props and ragdolls. I have used this resource https://facepunch.com/showthread.php?t=1492952 and it didn't help me. Also would I place the hook in my servers lua/autorun/server folder...

3 Days Ago
by kulcris Go to last post
8 347
Help

Get nearest entity from table

Im having issues with sorting an array of entities into order from closest to furthest. Im using this code to get all players in the server Found = ents.FindByClass("player") I need to then sort that list from closest to me to furthest from me. I can't...

3 Days Ago
by JasonMan34 Go to last post
4 121
C++

I get error,when compiling project VS! Help me with Error

Guys, when compiling dll for gmod ran into the following problem ?! 1> dMain.obj: error LNK2001: unresolved external character "" class IVModelInfoClient * modelinfo "(? Modelinfo @@ 3PAVIVModelInfoClient @@ A)" Screenshots: Code //===== Copyright ©...

3 Days Ago
by Banana Lord. Go to last post
1 137
Help

solved DRGBPicker, DLabel, and DColorCube Trouble

So when I change the color either DColorCube it changes only one DLabel. Here are the snips of the code that will be needed, but if you need more I will be sure to give it to you. Im not sure why its doing this. local SERVER_Label = vgui.Create(...

3 Days Ago
by Snowa Go to last post
5 106
Help

solved Server Skybox Issue?

I'm not sure what's going on here, but the sky is completely white and i'm not sure if this is a server issue or map issue. Any idea what I can do to figure out what's going on or how to fix it?

3 Days Ago
by CASAVANT Go to last post
0 60
Help

draw.SimpleText for Chatbox

Hi there, I’m in the process of creating a chat box, however I want to display the chat lines using draw.SimpleText so that I can make it look more professional and use outlined text in some instances. My problem is that I need to integrate the ability...

3 Days Ago
by MPan1 Go to last post
2 90
Help

Walking on walls?

I'm trying to make an addon that lets you walk on any surface by rotating you to line up with the surface below you but I have no idea how to rotate the players feet(that lets you walk on the surface below you) to allow you to walk anywhere, also is it...

4 Days Ago
by MPan1 Go to last post
14 314
Help

Creating Custom Tags (chat appearing twice)

Hey guys, so I am making a chat tags addon for my TTT server, but I'm having this error when I type in the chat. I'm assuming this has to do with the sandbox gamemode but I don't know how to override the default chat. Any help would be appreciated....

4 Days Ago
by rtm516 Go to last post
15 298
Lua

solved HUD help

So in my client side HUD file I'm trying to reference ply but when I do this I'm just getting an error saying ply is nil. Can someone please explain to me how calling ply works. function DrawPlayerInfo(ply) local pos = ply:EyePos() pos.z = pos.z...

4 Days Ago
by Velocity Go to last post
6 96
Help

solved Using net in join message

I am attempting to make a join message as i prefer to make my own little scripts rather than using somebody else's. I'm having trouble getting this text from the client to user as chat.AddText is clientside //serverside AddCSLuaFile("cl_netlib.lua")...

4 Days Ago
by MaverickMeme Go to last post
6 126
C++

How compile this? I get Error!!!

At compilation produces an error: c Dll compile for gmod!

4 Days Ago
by Kalan Yamato Go to last post
4 302
Help

Determine cause of server freezes

Hi all, I'm running TTT on a dedicated Ubuntu 14 server and it's frequently experiencing freezes. The server never crashes, but it does freeze without ever recovering and requires a restart. This started happening a lot more frequently after the July...

4 Days Ago
by ayyjacks Go to last post
0 66
Question

TTT Questions (Scoreboard and C4)

Can you edit the colors of the default hud and scoreboard for TTT? I've googled and searched but haven't really found much of anything. If so, what file would this be located in? Also, can you edit the C4 to have a higher chance of NOT being disabled? I...

4 Days Ago
by chang Go to last post
2 131
Help

Help for Vgui Progress Bar

Hello, I need some help for a Vgui progress bar. I would like to make a frame, but i'd like to add a progress bar activable with a button. I make this and this work. But the problem is that the progress bar doesn't disappear when I close the windows....

4 Days Ago
by geferon Go to last post
9 144
Help

Probleme drawHud on entities

Hello, i have a little problem with a HUD, because when i press the E key, the message text appear for all players, but i only want for the guy who push the key, could you help me? Thanks include("shared.lua") function ENT:Initialize() ...

4 Days Ago
by geferon Go to last post
2 90
C++
4 Days Ago
by gonzalolog Go to last post
3 247
Help

solved Addon issues

Hello... again. So, I made a Thread previous about this issue, I thought I had resolved the problem. But I forgot that I was making a dermapanel, so I have to run it to get any run-time errors :/ However, I know have a better idea of what the problem...

4 Days Ago
by andersseberg Go to last post
9 155
Help

solved Restrict Console Command, or restrict Dframe to ULX rank

So here is the code concommand.Add( "1server_1", function( ply, cmd, args ) local SMSG = vgui.Create( "DFrame" ) SMSG:SetTitle( "Post a server announcement!" ) SMSG:SetSize( 400, 200 ) SMSG:Center() SMSG:MakePopup() local SERVERNAME =...

4 Days Ago
by Snowa Go to last post
1 69
Help

Need an experienced coders help with two plugins for NS

https://facepunch.com/showthread.php?t=1572152&p=52491510#post52491510 is one of the problems, the other one is a quiz plugin thats supposed to kick players if they answer incorrectly, however i will wait to post it until I know someone is going to...

4 Days Ago
by Sean Bean Go to last post
1 113
Lua

My first attempt at coding in lua!

Hey guys. So I've been planning on starting to learn Lua code for a long time and today I decided to sit my self down and learn. So far, I've created 3 pieces of code that fully work and here they are. Now a heads up, these are the most simplest...

4 Days Ago
by Tupac Go to last post
10 275
Help

solved How to prevent users from changing vars

Hello, so I currently have a script to show where a player is... It draws a hud on the player's feet and can be seen through walls. Now under the right conditions, this is alright however the client can simply change the var and turn this feature on or...

4 Days Ago
by XxLMM13xXx Go to last post
2 109
News

*BEWARE* Huge Exploit, Nobody's talking about this? ( 2 Last )

I started a new server recently, and a player joined. As soon as he had loaded in, he was able to strip everyones' weapons and remove all entities on the map (printers, etc). He told me he had found an exploit. I made sure to disable clientside scripts in...

5 Days Ago
by Childlike Go to last post
43 2,741