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

solved RE: Making SWEPS (NOT A NOOB-ISH)

BEFORE ANYONE SAYS ANYTHING ABOUT THIS TOPIC BEHIND DISCUSSED BEFORE, I HAVE CHECKED EVERYWHERE FOR A SOLUTION SO IM SORRY DONT BAN ME. Im trying to make a addon for this damn game and so far ive done what so many tutorials have told me to. So far I...

4 Weeks Ago
by II_PYRO_II Go to last post
2 170
Help

NWVars with the new update?

So, I see that the new NWVars have been implemented. Are there any major changes that I should be aware of? It seems like they aren't working like they were before. I've made a reputation system that sets a players reputation on initial spawn with...

4 Weeks Ago
by Gravious Go to last post
1 133
Lua

DarkRP F4 Menu.

Hello, I want to add vehicles to the F4 menu, I know how but here's the problem I want the server to save the data, so it rembers what vehicles people brought, so they can just spawn it in?

4 Weeks Ago
by Borris_Squad Go to last post
0 85
Lua

AddEntityRelationship crashes the server after the last update

Hey :) I have problem when I use AddEntityRelationship afer the last update it's just crashes the server when it been called. Before the update I did not get this bug. I dont get any lua error on the server console the only error I get when the server...

4 Weeks Ago
by hanm13 Go to last post
3 207
Request

Need LUA scripter for Grand Theft Auto RP Server Gamemode This thread has images

Hello Facepunch! I am currently in the development of a GTA Gmod RP server! Features will be: Cars RDM Guns Drugs

4 Weeks Ago
by Kevlon Go to last post
7 237
Help

File include issue

Filepath: garrysmod\gamemodes\name\gamemode\vgui\main_menu.lua Init.lua location: garrysmod\gamemodes\name\gamemode\init.lua Init.lua code:

4 Weeks Ago
by Robotboy655 Go to last post
3 94
Question

How do I set up PERP?

Hi Facepunch, I am wondering on how do I setup PERP for my dedicated GMOD server? I have FastDL. Thank you! ~ApertureLink

4 Weeks Ago
by Invule Go to last post
3 220
Help

High Ping On Join.

Hosting DarkRP 2.6.1, running the usual TDM, M9K, etc. When people join, it teleports them around, gives them auto-disconnect a couple times, they are on 300 ping but it dies after 1 min and they are back to 50 ping. I did some research and this is a...

F14
4 Weeks Ago
by Kevlon Go to last post
2 185
Lua

NPC Spawns and Base gamemode problems

I'm trying to make a gamemode that automatically spawns npcs in an area when the server starts. I'm using this code: local npc = ents.Create( "npc_citizen" ) npc:SetModel( "models/player/group01/female_01.mdl" ) npc:SetPos( Vector( 0, 0, 100))...

4 Weeks Ago
by zerf Go to last post
1 101
Help

solved Custom SWEP sounds keep looping/repeating? This thread has images

Hi guys, ive got a swep that ive made and for some reason, whenever i click the right mouse key which is the Secondaryfire, the sound that i have assigned to it just keeps repeating whenever i keep pressing the right click, so is there a way for the...

4 Weeks Ago
by II_PYRO_II Go to last post
5 99
Help

Weapon Models not appearing straight away

I've converted a minigun swep to use in TTT but the weapon is not drawn unless you shoot first and then it is fine. If i strip all weapons and give the minigun then i have to shoot to see the model. If i pick up a gun and then drop it then pick up the...

4 Weeks Ago
by zerf Go to last post
1 121
Help

solved View Model Props

I've been messing around with weapons and I currently am trying to use props hand in and with the default HL2 view models. The problem is that weird optical glitches that cause part of the prop viewmodel to be behind the default viewmodel and some of it...

4 Weeks Ago
by Stargazer808 Go to last post
2 125
Science

Let's do stencils again! Clipping a 3d2d operation to the inside of a bucket. This thread has images

function ENT:Draw() render.ClearStencil() render.SetStencilEnable(true) render.SetStencilWriteMask(102) render.SetStencilTestMask(102) render.SetStencilReferenceValue(10) render.SetStencilCompareFunction(STENCIL_ALWAYS)...

Ott
4 Weeks Ago
by Ott Go to last post
8 440
Help

Effect script now working.

I can't figure out the reason, but when using the following script, the resulting beam only shows up when the shooting is in and aiming at certain spots. The entity passed by the effect is the player shooting a weapon. Also, the beam only renders for the...

4 Weeks Ago
by Exho Go to last post
12 332
Lua

Old HUD Trying to update but causes Lagg.

Hello everyone, I decided to get back into an old gamemode but I have a problem. The HUD Lags, I've been trying to search a way to fix it but unfortunate with no results. Here is the piece of the code. Its pretty big -- Draw the player's...

4 Weeks Ago
by Rowie Go to last post
12 319
Help

solved Need help creating a round system

Keep in mind that I'm not trying to get facepunch to make this for me, I just need help. Basically, what I want to do is, if there are more than 2 players on the server, select a random one to be selected as a certain team, and select all the others to be...

4 Weeks Ago
by A Fghtr Pilot Go to last post
20 363
Help

PAC Editor broken on my server even after reinstalling several times

Hey PAC works great on my darkrp server, and it always did. However, I can't set my model for shit. It worked on 2.4.3 but now that i switched to 2.5 and I can't set my model. Capsadmin is on vacation so I can't contact him. Does anyone have any...

4 Weeks Ago
by pogh10 Go to last post
0 119
Help
4 Weeks Ago
by Phoenixf129 Go to last post
1 121
Help

solved when one player opens the menu all players get a menu (help)

ok so what i want to happen is when a player on team 1 opens a menu only he gets it my error is every player gets it is there a way i can make it so only the one player gets the menu inlt.lua function GM:PlayerButtonDown( ply, key ) if...

4 Weeks Ago
by Jenssons Go to last post
6 120
Garry

Notepad++ GLua Highlighter

A new thread so the link is in the OP. Download: https://dl.dropboxusercontent.com/u/10382947/GmodLua.xml Installation: 1) Download Notepad++ 2) Go to Plugins > Plugin Manager > Show Plugin Manager 3) Scroll down and find "GMod Lua Lexer", check...

4 Weeks Ago
by thegrb93 Go to last post
15 778
Help

solved Temporary draw.RoundedBox() & How to make it "move in"?

Hello, I wanted to know how I'd temporary draw on the hud like for five seconds with a function like this: function tellhud(text, seconds) -- code here end and that function would draw the text for the given seconds on the hud? plus, I wanted...

4 Weeks Ago
by whitestar Go to last post
9 247
Lua

Searching for DEVs

Im making a gamemode for a server but i need some help as im pretty new. (if this is not allwed to be post here sorry just tell me to delete it) (User was banned for this post ("Didn't read the stickies." - OvB))

4 Weeks Ago
by Jimakis98 Go to last post
6 273
Help

adding decimal?

Hello, i have a gamemode and i want to make it so you have to get 2 kills to level up and i have changed: attacker:GetNWInt('level',0) + 1 to: attacker:GetNWInt('level',0) + 0.5 why isnt it working?

4 Weeks Ago
by mattymoo142 Go to last post
2 114
Help

table.RemoveByValue issue

Hello, I've been attempting to remove a player entity from a table I made with a loop and it doesn't seem to remove the entity. The goal is to remove a player from table when they die. This is pretty much what the code looks like: function...

4 Weeks Ago
by Holywiremod Go to last post
11 571
Help

GMPublish Can't Detect C Drive

I'm sick of using Team Viewer to help my friend update his addon so I could use some help. He has his OS on an SSD and uses his HDD for storage, obviously. Because of this gmpublish doesn't work. I don't know why it doesn't work, I'm too dense for that...

4 Weeks Ago
by Fuzzik Go to last post
9 261
Help

Using combine turret crashing the server from the last update

Linux error Segmentation fault (core dumped) When I use the combine turret and the turret fall on the ground the server just crash...

4 Weeks Ago
by hanm13 Go to last post
0 83
Help

After Update Pointshop Preview are zoomed

http://prntscr.com/7c27td Anyone have any idea on how i could fix this?

4 Weeks Ago
by Judd Go to last post
4 216
Question

solved Simple questions about new update.

Hello all, So there we go we have now a new GMod version. I updated my server to this new one. But I have some questions, one relative to a new feature added and others relative to development. In first I'd like to ask you, Is this new version...

4 Weeks Ago
by Yuri6037 Go to last post
2 141
Help

solved hey keep getting the 'attempt to index global 'GM (a nil value)' error...

Hey I know this is a noob question but keep getting the 'GM' a nil value error using this i basically need to change a playermodel for a specific steam id... this code is from another thread i just tried, i have made my own script for it but it gives me...

4 Weeks Ago
by CertifiedCode Go to last post
3 184
Help

solved CSGO TTT HUD lua error. Please help.

I've installed Steeze's CSGO Hud: http://facepunch.com/showthread.php?t=1423430, and he says that it suits with SpecDM, but when i join my server and go into SpecDM, it creates a lua error: How to fix this? I'm not sure how.

4 Weeks Ago
by Young. Go to last post
2 175
Lua

Murder Server crashing after update

I already have updated Gmod, and first have received this error. gmod@vultr:~# screen -x 12532 7. fn - addons/ulib/lua/ulib/cl_init.lua:48 8. unknown - addons/ulib/lua/ulib/shared/hook.lua:110 Lua Error: Unauthed player

4 Weeks Ago
by Ponsel Go to last post
2 162
Help

Updating DarkRP from 2.5 to 2.6

I own a DarkRP server that is still running on 2.5. I actually thought that was the most recent version until I recently saw otherwise. When I installed the new DarkRP gamemode it wouldnt accept my DarkRP modification addon. Why arent they compatible...

4 Weeks Ago
by Bo98 Go to last post
3 149
Lua

solved Null entity/NWInt?

I can't figure out what is wrong. LocalPlayer():SetNWInt("buildSelected", 1) is my code but is giving me a Null Entity error. The error go's away and is fixed fine if I auto-reload the file?

4 Weeks Ago
by Bo98 Go to last post
3 110
Poll
Useful x 20

Updating Lua Lexer - List of Garry's Mod 13 Functions? ( 2 Last ) This thread has images

Hi, If anybody here uses Notepad++, then you will know that it on the Garry's Mod 13 Update, the lexer became outdated. My goal is to update the plugin with all of the new Syntax, Functions, and such created in the updates. My Question is if anyone...

4 Weeks Ago
by Robotboy655 Go to last post
52 7,161
Help

Didn`t get how to make the E open thing

I need a code that when the person press E in my model it will show up my derma pannel! Who can do that?

4 Weeks Ago
by AK to Spray Go to last post
5 191
Help

disable the ragdoll prop on death?

can you disable the ragdoll prop that drops when a player dies?

4 Weeks Ago
by A Fghtr Pilot Go to last post
1 116
Question

solved Is this the best way to solve the problem I'm getting?

So, I have a pistol whip for my pistol SWEP's secondary attack, and it works fine. But, in MultiPlayer, I get an error from the client saying that tr.Entity:TakeDamage() is a nil value(it can't be run clientside), because I have my weapon as a shared.lua...

4 Weeks Ago
by TheKitsune Go to last post
1 80
Help

TTT Lua Error - New Update 06-01-2015

I'm getting a new LUA error from TTT since the new update. It's not related to any addons. gamemodes/terrortown/gamemode/player.lua:685: Tried to use a NULL entity! 1. Send - :-1 2. unknown - gamemodes/terrortown/gamemode/player.lua:685 ...

stupid- 1 reading
4 Weeks Ago
by Robotboy655 Go to last post
1 173
Help

solved Making a player play an animation This thread has images

Question, what function can I use to make a player play an animation, that uses one of the ACT_ Enums? Basically I want to make players use NPC animations this way. I've been searching for functions that can do this but I haven't found any that use ACT_...

4 Weeks Ago
by A Fghtr Pilot Go to last post
5 163
Help

New update broke timer.Adjust?

Hi. There was an update just as I was gonna launch Garry's Mod (what are we on now, 2015.06.01) and all of a sudden the timer.Adjust function isn't working. I can't vouch for all the mods, but with my small experiments, a timer.Adjust inside a...

4 Weeks Ago
by TheKitsune Go to last post
6 307
Post Your

Where should I place effects in an addon?

I have the following structure in an addon file: rebelsvscombine/lua/entities/effects/, and I have a valid code for it, yet with my code it doesn't create the effect. Here's the code, in case that might be the problem: --in a metatable code(called...

4 Weeks Ago
by A Fghtr Pilot Go to last post
4 90
Help

Help! Unable to update one box of servers after patch This thread has images

Hey Guys! We have a few different boxes for our servers, and one of our biggest boxes is refusing to update any of the servers. We updated a couple weeks ago with no issues, but now we are getting this error: Also here is my code for my update...

4 Weeks Ago
by eventfulgamin Go to last post
4 171
Question

Blend Sequence Changes

if i can do it in hl model viewer how come i cant do it in gmod or am i missing something theres no excuse not to have a function for this

4 Weeks Ago
by RonanZer0 Go to last post
0 91
Help

[HELP New Update] Workshop downloads don't work for servers?

Okay so I have a file named workshopdl.lua in lua\autorun\server\workshopdl.lua and in the file I have all of the workshop code like: resource.AddWorkshop("400340450") for example in order of; ex: resource.AddWorkshop("400340450")...

4 Weeks Ago
by jtjacob8 Go to last post
0 85
Help

SetColor doesn't persist

I am using SetColor on entities when FLIR is enabled, problem is they don't stay that color once set. if not FLIR then FLIR = { enabled = false } end if CLIENT then FLIR.living = CreateMaterial("flir_living", "UnlitGeneric", { =...

4 Weeks Ago
by FLIPPY Go to last post
5 251
Help

solved NPC with Custom Sounds?

I've made a test NPC because I want to see if its possible to add custom sounds but I've been searching for hours and haven't found any code that works anymore. local NPC = { Name = "Test NPC", Class = "npc_combine_s", Model =...

4 Weeks Ago
by code_gs Go to last post
1 78
Question

[npc animations] movement animations 'snapping'

im using npc animations on players, and if you actually watch an npc move it will slowly fade between animations just like the default player animations... but currently when doing walking to running or especially walking to stopping it just slows down...

4 Weeks Ago
by RonanZer0 Go to last post
0 82
Lua

<name> or ... expected near 'for' This thread has images

This hook worked just fine before the update. hook.Add("OnPlayerChangedTeam", "rekto", function( for k,v in pairs(ents.GetAll()) do if (ev:GetOwner() == ply or v:GetNWEntity("owner") == ply) then if (v:GetClass() == "fs_apple" or v:GetClass()...

4 Weeks Ago
by xaviergmail Go to last post
7 149
Help

solved Suicide Timer

So I got this to block suicide: local function BlockSuicide(ply) return false end hook.Add( "CanPlayerSuicide", "BlockSuicide", BlockSuicide ) But I want people to suicide I just want it so after they die they have to wait 10 seconds before...

F14
4 Weeks Ago
by F14 Go to last post
2 106
Help

How to do a map clean up?

how do you do a map clean up to put the map make to how it was i have tryed calling this in a function "RunConsoleCommand("clean_up")" ------------------shared.lua--------------------- concommand.Add("clean_up", function(ply) if(not...

4 Weeks Ago
by xaviergmail Go to last post
1 90
Love

Tables in SWEP Table not carrying over?

It seems that if you define a weapon that has a table inside of the SWEP table, like so: SWEP.Primary.ExampleTable = { } And then add to the table SWEP.Primary.ExampleTable.Something = true If you base (SWEP.Base) a weapon off of that and...

4 Weeks Ago
by Willox Go to last post
3 95
Lua

MySQL function Lua

Hello fellow developers, I need a lua function that uses mysqloo to gather some information from a database, and another function to change/update a table. If any of you can help me with this function i will be happy. Kind regards, - Dunkstormen

4 Weeks Ago
by AK to Spray Go to last post
2 133
Lua

v:Disposition LUA error

Hey guys, I've been trying to fix the old deer NPC that went missing a while back. I have got it almost done, but I'm having issues with the Disposition. Obviously the deer is supposed to run away when players are nearby it, but it seems the lua must be...

4 Weeks Ago
by code_gs Go to last post
3 126
Games

Lua hates me I believe.

Well, when I spawn in a gun a bunch of props spawn inside of me. It is caused by the gta v hud. I was wondering if anybody could help me fix it. By the way it does fix once I disable the minimap but I would like to find another way. Here is an image of...

4 Weeks Ago
by mcd1992 Go to last post
7 358
Help

Force NPC to move?

Okay so I spawn an npc at x position. Upon it spawing I want it walk away from it in a random direction, So they dont all build up in one spot, Is this possible?

4 Weeks Ago
by 0V3RR1D3 Go to last post
2 139
Question

From Clockwork to Nutscript This thread has images

I have come to ask a potentially stupid question, please be gentle and explain like I'm five. I recently got a hold of a schema for Clockwork, however am currently experiencing some difficulties actually using it with Clockwork. With that being said, I...

4 Weeks Ago
by Sexy Frog Go to last post
15 702
Help

solved HUD Help

So I need some basic help with making thinner boxes out of surface.DrawOutlinedRect(). I'm translating it into 3D2D and would like it to be about as large as a player's head, and I can manage that, however, the actual box itself is just too thick. Is...

4 Weeks Ago
by Z0mb1n3 Go to last post
0 83
Lua

Giving PlayX Access to a DarkRP job

I want to know how exactly I would give access for PlayX to a DarkRP job rather than a ULX rank.

4 Weeks Ago
by Renzbo Go to last post
0 102
Lua

solved Making A DarkRP job for ULX

So I know this might be really simple, but I need to know basically how to have it so when someone selects a DarkRP job, they get set to a certain ULX rank. My plan is that when someone selects a job (Theater Owner) they will be set to a custom ULX rank...

4 Weeks Ago
by Renzbo Go to last post
7 166
Help

Dev chat to all players

I have this client side script i made and i want to be able to add it to my server, What it does is allow me to type a message in the box and send it to all players chat box in red text with a alert of a update or something else to do with the server...

4 Weeks Ago
by Lolcats Go to last post
8 263
Lua

solved Gmod TTT Woes

Alright so we've been trying to get a TTT server setup, but we have some issues. The hands won't show up in first person. even on the default guns, you can walk through certain props, and the round end report won't show up. The guns appear fine in third...

4 Weeks Ago
by code_gs Go to last post
1 122
Garry

solved GMod - What are you working on? May 2015 (#45) ( 2 3 4 5 .. 12 13 14 15 Last ) This thread has images

Highlights from the previous thread After the drama of last month's thread, I'd like to politely request that everyone keeps on topic. PS, WalkingZombie, please don't post excessive blocks of text which are "feedback". Lurk a bit more before posting...

Mors Quaedam 1 reading
4 Weeks Ago
by Mors Quaedam Go to last post
560 41,072
Stupid

M9K and Nutscript Compatability

Hello everyone, I am currently messing around with creating my own schema using nutscript (with the help of some friends) and I wanted to use the M9K/FA:S2 weapon packs, however neither seem to work. Here are the errors I am encountering- ...

4 Weeks Ago
by Demersus Go to last post
0 97
Help

DarkRp help

Hello everybody. Help please. Problem is what i kill mayor, and him must be become a citizen, but where him respawner, he is mayor but not citizen. What is problem? Where? Help please. My config.lua file

4 Weeks Ago
by Starlok Go to last post
0 127
Help

Printer Help

I am bad at Lua sorry, but this is why I post here for help. So I use this line to emit sound: self:EmitSound("ambient/levels/labs/equipment_printer_loop1.wav",100,100,1,CHAN_AUTO) But when the printer is removed you can still hear it, would this...

F14
4 Weeks Ago
by Lolcats Go to last post
7 134
Question

Sanbox Physguning.

Hello facepunch! Im having trouble with my spacebuild gamemode (Base Is Sandbox). And i cannot stop other users from physguning other peoples props/Entities. Ive tried FPP but i cannot find anything to do with physguning props. Thanks/

4 Weeks Ago
by MGCLegend Go to last post
5 145
Lua

solved Spawn Large Explosion

Hi. I'm looking to spawn a large explosion using Lua. I know there is this Create("env_explosion"), but no matter the iMagnitude, it is still the same "small" explosion effect. I'm looking to spawn something like the TF2 Cart Bomb Explosion (although...

4 Weeks Ago
by Edward256 Go to last post
4 157
Help

solved How would I change the deaths weapons?

Hello, I am wanting to change the weapons of the deaths for my deathrun server using Mr.Gash's deathrun gamemode. I have tried some fixes that I have found in other threads on facepunch but they didn't seem to work. Here is a function that I have tried:...

4 Weeks Ago
by trippymodzhq Go to last post
12 243
Help

Server crashing

EXCEPTION_ACCESS_VIOLATION_READ Is the error with my server crash dump -http://dumps.metastruct.uk.to/dumper.py?dump=NEW.mdmp Specs intel core 2 duo 6 gigs of ram Windows 7

4 Weeks Ago
by stev_ Go to last post
1 172
Help

solved SetNW bug?

Is there a current bug with all SetNW and GetNW or is mine just dont work? From the server I set a variable and when I try to access it from the client it just brings back false or 0 or whatever. //Server side code Player(2):SetNWBool("activeAdmin",...

4 Weeks Ago
by OMGOMG132 Go to last post
8 210
Help

player.GetAll() not working?

Hello im making a gmod gun game gamemode it is working, but when someone wins, example me, it respawns me and gives me the first gun again, but doesnt for my friend, but it also does it for bots as well, help please. else if (p1:GetNWInt('level') ==...

4 Weeks Ago
by Blasteh Go to last post
10 322
Help

What can I use serverside that is similar to LocalPlayer() clientside?

Uh, question, is there some sort of version of LocalPlayer() I can use serverside? This is kind of a follow-up to a question I asked on Problems That Don't Need Their Own Thread about emitting a sound every 3 seconds, but it can only be done clientside,...

4 Weeks Ago
by Exho Go to last post
9 185
Help

Missing Vgui material

I downloaded a scoreboard on garrysmod.org and im getting this spammed in console --- Missing Vgui material gui/silkicons/emoticon_smile What do i do to fix this? This is the scoreboard: https://garrysmods.org/download/15131/darkrp-scoreboardzip

4 Weeks Ago
by James xX Go to last post
1 89
Help

solved AddFrags Help

Hello! So i need a little help with the AddFrags function seen here This is the code im using: ply = LocalPlayer() kills = ply:Frags ply:AddFrags(-kills)

4 Weeks Ago
by XxLMM13xXx Go to last post
2 84
Lua

Setting players spawn positions based on team!

I've been looking at this and it looks like I might need to get hammer out. We are coding a new game mode so we can't use the DarkRP function. I have looked thru their code to see if I can see how they set the location because the only way I see it is...

4 Weeks Ago
by Strideynet Go to last post
2 166
Lua

solved Weapons Spawn Restriction in Spawn Menu

Hello guys, at first I say sorry for my bad english, I hope you can understand me. If not, just ask! I'm new to LUA but I think I'm better than other people. My Problem is that I want to restrict players from spawning weapons over the Spawn Menu...

4 Weeks Ago
by Swapy97 Go to last post
3 169
Lua

Prevent sway occurring using 3D2D in combination with panel. This thread has images

At the moment this is happening: I eventually want a sway like this, but I never told it to do this so I want to figure out whats causing it first. function PANEL:Init() self:SetPaintedManually(true); self._PaintMeManually = true;

4 Weeks Ago
by thejjokerr Go to last post
0 97
Help

solved Class speed modifier isn't working This thread has images

DEFINE_BASECLASS( "player_default" ) AddCSLuaFile() local PLAYER = {} -- -- See gamemodes/base/player_class/player_default.lua for all overridable variables -- PLAYER.WalkSpeed = 130 PLAYER.RunSpeed = 330

4 Weeks Ago
by Jvs Go to last post
4 141
Help
4 Weeks Ago
by cluelesshobo Go to last post
3 170
Help

solved Atmos Compatible Skybox

So currently i am using a map with a skybox that does not work with the atmos addon. Pretty much, when i add the addon all that happens is the map gets really dark and the lighting messes up. I know about hammer, and i have the .vmf file, but what exact...

4 Weeks Ago
by MGCLegend Go to last post
1 122