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

A idea of mine involving ports in gmod but still wondering about a few things

so I had the idea to use 2 Internet connections on dual wan to setup a in home gmod server and increase the bandwidth. however I have not tested it, I want to avoid using dual wan in case it either gives no benefit or causes conflicts. then I thought of...

8th May 2017
by Legion of boo Go to last post
6 431
Lua

Any way to detect when a view punch has happened?

Google didn't help. And testing for the IN_ATTACK enumeration wont work in my instance. I need to be able to find out the numbers/forces applied by the view punch when it happens. I checked, and there doesn't seem to be any sort of hook or something...

7th May 2017
by code_gs Go to last post
5 232
Help

solved Lua error on ARCBank

I'm getting this error: Lua Error: addons/arcbank/lua/arcbank/server/_core.lua:45: attempt to index field 'Disk' (a nil value) 1. fn - addons/arcbank/lua/arcbank/server/_core.lua:45 Lua file: https://www.mediafire.com/?6pvm8em37x1ee4f

7th May 2017
by gabrielcruel Go to last post
5 254
Help

solved uTime showing specDM players

Ive got SpecDM installed and it works fine, but when you hover over a specdm player when you're alive, it shows the information in uTime of their name and time, this is sort of game breaking. How would i go about fixing this?

7th May 2017
by LewisUK Go to last post
2 185
Help

Is coroutine broken?

Hello guys. I'm having problems while using coroutine, is coroutine broken? Because I'm trying to execute a mysqloo query inside a coroutine without success (Seems like the coroutine stops when reach the mysqloo line). My code: function...

7th May 2017
by Nicksf13 Go to last post
7 389
Help

Players crashing when a player in there general area fires physgun

Title basically explains all of it, the regular physgun crashes when it is fired around certain people. Is this to do with the gamemode or something wrong with Gmod as a whole? I've recommended to all players to set their video settings to star and to...

7th May 2017
by SatoshiAaron Go to last post
2 251
Help

TTT bug on round win

So sometimes when a round ends I get this bug where the round isn't described as won or lost. And this is what I get in my server cnsole. gamemodes/terrortown/gamemode/player.lua:1044: attempt to call field 'Hurt' (a nil value) 1. old_func -...

7th May 2017
by code_gs Go to last post
1 126
Help

How to make SNPCs based on AI standard NPCs own sounds???

Warning: In this thread there may be errors! The fact is that I do not know English well (I'm from Ukraine), and I have to use Google Translate. Sorry for the inconvenience ... I have an addon on SNPCs. These SNPCs are based on standard NPCs (those...

7th May 2017
by vladvoron Go to last post
0 96
Help

solved (NutScript) Issue with server removing entities automatically

Hello, I've been developping a server for about two monthes now with no big trouble, but now I'm facing something that I can't really figure out... :x So basically, I made some entities and used the same system to make them persistent which is used for...

7th May 2017
by MrSylar59 Go to last post
0 111
Help

Tutorial mod not appearing in game

Hi all, Im following the tutorial for the chair launching gun (https://wiki.garrysmod.com/page/Chair_Throwing_Gun) but the SWEP does not appear in game. It doesnt appear in my inventory automatically (didnt expect it too) and its not in the weapons...

7th May 2017
by Bennneh Go to last post
2 163
Help

solved Issues with MySQL.

Here's what I got: function plymeta:HasCharacter() local hasone = sql.QueryRow( "SELECT * FROM players WHERE steamid = '".. self:SteamID() .."';" ) return hasone end function plymeta:Database_AddPlayer() if !self:HasCharacter() then...

7th May 2017
by JaguarHDX Go to last post
1 100
Help

Lua question/ Need help with death effect.

I am relatively new to coding so please bear with me, I understand a bit of what im doing, but i havent learned how to *write the code* yet. I've been making a swep for around a week now, and have not gotten what i wanted so i thought i'd make a...

7th May 2017
by swiitchup Go to last post
3 239
Help

solved GMod TTT Katana

Hey everyone, atm im trying to make a Katana that replaces the Crowbar for ttt, it works fine but there is one problem, i can hit walls, players etc with animation, but when i only hit in the air, the hit sound comes, but no animation. Need help if...

7th May 2017
by Lycaner Go to last post
4 162
Help

How do you change the gamemode?

We were able to change the game title and it shows up, but how can we get it to the point where it shows on the gamemode list?

6th May 2017
by code_gs Go to last post
1 134
Lua

solved k,v pairs stuff

I understand the title is not the best but i don't know what else to say, i need to make a table holding ranks and colors assigned to them then lay them out and assign the color to a draw.DrawText() AHUD.RankColors = { = Color( 0, 255, 255, 255...

6th May 2017
by bigdogmat Go to last post
6 330
Release

GLuaJIT

Hello developers! Today I announce the open source lua library replacement I call `GLuaJIT` You can find it at this link: https://github.com/meepdarknessmeep/gluajit What is this? This is an open source library which detours and replaces all LuaJIT...

6th May 2017
by MeepDarknessM Go to last post
11 1,269
Help

solved Help with scoreboard

Hello all, I need some help with a scoreboard that I am editing. I have removed a logo on the top left and I want to put my own logo there using a png file, could you please do me a code for it to pop up on the top left? here is what the scoreboard...

6th May 2017
by ISONI Go to last post
10 280
Help

solved Jobs Error

Hello, Im having a problem with my jobs, Ive restricted bodygroups, it works but this Lua Error appears: addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:271: '}' expected (to close '{' at line 269) near '<eof>' 1. unknown -...

6th May 2017
by Arkander Go to last post
5 125
Help

HTTP ERROR 0 error for Mac users downloading FastDL stuff

Hello, One of our players is on a MAC and gets these errors in console when trying to join our servers - the files aren't fastDLing onto his machine either. Any leads onto what this could be would be appreciated. HTTP ERROR 0 downloading...

6th May 2017
by MonkeysLP Go to last post
2 165
Request

solved Is There a Better Workshop Tool Than GMPU?

GMPU is a little too cumbersome for me, particularly because it doesn't use windows' file-browser and i can't mass-select files for extraction/upload. Are there any better alternatives? Google searches just give me results for tools from the workshop.

6th May 2017
by MadParakeet Go to last post
1 159
Help

SWEP troubles

trying to figure how to have damage dropoff at range, i want it to be static damage i.e >= 1000 30 damage, >= 500 40 damage, >= 0 50 damage, i dont care about the units atm i can convert those myself essentially i want the victim to take damage based...

6th May 2017
by bloodmasked Go to last post
4 142
Question

Any way to tell if an entity (or vector) is inside the skybox?

Title is self explanatory. Need to know if there is a way to detect if something is inside the skybox.

5th May 2017
by mcd1992 Go to last post
9 286
Lua

solved Weird surface error

addons/simple/lua/darkrp_modules/aplex_hud/cl_aplex_hud.lua:83: attempt to index global 'surface' (a nil value) 1. unknown - addons/simple/lua/darkrp_modules/aplex_hud/cl_aplex_hud.lua:83 2. include - :-1 3. unknown -...

5th May 2017
by EzGunzBlazzin Go to last post
0 84
Help

DarkRP Chat Command & Increasing Chat Character Limit

G'day, wondering if I could have some assistance with a couple of things. First off, a DarkRP chat command. I need it to do a similar thing to /me but only it doesn't print the name at the beginning of the sentence. If you've ever played on an RP...

5th May 2017
by [HN] Omega Go to last post
2 174
Help

solved Help with Job Colors on Hud

I have a value using the team.GetColor() function but it won't refresh when i switch jobs, how would i get this to change colors as i change jobs , AHUD.Values.JobBarColor = team.GetColor( LocalPlayer():Team() ) draw.RoundedBox( 0, x, y, w, 30,...

5th May 2017
by EzGunzBlazzin Go to last post
2 99
Help
5th May 2017
by code_gs Go to last post
3 157
Lua

Checking if a file exists

I'm learning lua and i feel that this is basic for the common developer, but how would i check if a addon is installed like, checking if FPP (Falco's Prop Protection) is installed and if it is then run a function but otherwise run a different function.

5th May 2017
by F14 Go to last post
9 274
Help
5th May 2017
by Mikvoin Go to last post
5 188
Lua

TTT Spectator deathmatch causes errors with this weapon

I don't have a clue why spectator dm causes this error, the weapon works fine also but when dropped the pistol becomes invisible on the floor. This only happens in the server its not but not in my single player game. Lua error: ...

5th May 2017
by Stanstar22 Go to last post
12 269
Help

2nd-level (and deeper) child elements losing their functionality on vgui.Register()?

I have this code: local PANEL = {} function PANEL:Init() local ply = LocalPlayer() local strup = string.upper local teamname = ply:getDarkRPVar("job") or team.GetName(ply:Team()) surface.SetFont( "f4_PlayerJob" ) local tnw, tnh...

5th May 2017
by igodsewer Go to last post
8 299
Stupid

solved How to spawn an invisible prop

Heya, Does anyone know how I could spawn in an invisible prop without using the sandbox menu? I wanna be able to spawn them in on prop hunt to block off banned spots on the fly I tried ulx ent but everything I tried would not work Yes I am...

5th May 2017
by JesseUK Go to last post
2 116
Tutorial

[TUT] How to create a DarkRP server in 10 steps!

Hello users! I'm mcpoesen and I created a tutorial how to create a DarkRP Server! Like playing DarkRP online with your friends? Start today your own server on your Computer/VPS/Dedicated! I created a tutorial to create your own darkrp server!...

4th May 2017
by Tupac Go to last post
18 767
Help

Console or escape menu refuses to update when I use my chatbox

I made a chat box a while back and I've decided to try to use it for my little sandbox server I have but after a while of using it, console or the escape menu doesn't want to open and you have to restart Garry's mod or get kicked out of the server. Does...

4th May 2017
by LittleBigBug Go to last post
3 197
Help

Unable to send a normal number to the server

I'm making a couple very simple commands to practice networking. Right now I'm trying to just simply send over the argument of set_health to the server, so that the server sets the health of the player(which ran the command) to said argument. The...

4th May 2017
by tgandrew2468 Go to last post
3 182
News

http.Fetch can leak your street address (No, Not through your public ip)

Title got FUCKED, meant to say "public IP" Magically unfucked now Currently, if your router control panel shows your MAC Address without having to login or be an admin, anyone can possibly get your street address. So you should probably check it...

4th May 2017
by cudex Go to last post
20 1,958
Help

Pause an animation state midway through

Is there any way to pause an animation state midway through? Im trying to make a higher crouch but I need the animation to stop halfway from standing to crouching so it looks like only half a crouch.

4th May 2017
by solid_jake Go to last post
5 282
Shitpost

solved DListLayout:Add(DButton) or parenting smth to DListLayout breaks functionality of DoClick?

Hey, I'm coding some kind of F4 Menu for my DarkRP server and I'm stuck with freaking annoying issue: When I'm using local tab = vgui.Create("DButton") tab:SetSize(200,50) tab:SetText("1232132") tab.Paint =...

4th May 2017
by igodsewer Go to last post
10 227
Question

Source Engine 2007's fire

Does any of you remember Source Engine 2007's fire? Yeah it wasn't that good,but I just want to ask a question. Is it like possible to revive it? I am not really sure about this,but if any of you know how to,please do tell. Here's a picture of...

4th May 2017
by YuriMalardyro Go to last post
0 241
Lua

Entity Use from Distance

I would like to make my entity be able to be used from a distance, for example, a sign that is across the map that your crosshair is on, you can click E and it will do something like type hello in chat, but if your crosshair is off the entity, it does...

4th May 2017
by NeatNit Go to last post
10 279
Help

Problem Dark RP HUD

How disable it?

4th May 2017
by Mikvoin Go to last post
2 160
Help

Silkicon Button Help

Whenever I press the icon in my Scoreboard nothing seems to happen. Can I get some help? local DImageButton = vgui.Create( "DImageButton", PlayerPanel ) DImageButton:SetImage("materials/icon16/server.png") DImageButton:SetPos( ScrW() * 0.0216666,...

4th May 2017
by F14 Go to last post
5 187
Help

DarkRP Advert Sound

Hello, I've been thinking about adding a custom sound specifically for when people advert, unfortunetly I don't know how to go about doing that. You guys don't need to spoon feed me the answers (Since I know everyone hates doing that) but a point in the...

4th May 2017
by F14 Go to last post
1 128
Rant

So what's the situation on implementing custom shaders?

Every time someone mentions shaders, everyone literally goes silent and avoids them. I understand that the shader system source uses is large and complex, but there are literally zero threads that accurately explain why GMod is a totally different...

4th May 2017
by wauterboi Go to last post
6 326
Help

solved Banning Props by Folder

I had a small script that did this a while ago but i lost it, any help making a new one?

3rd May 2017
by EzGunzBlazzin Go to last post
0 79
Help

solved CounterStrikeSource not working on DarkRP Server

Hey users! I have a problem When I join my own server I see a message in the chat: "Counter Strike Source is not mounted! Common symptoms: money and guns floating in the air You need to mount CSS DarkRP will not work without it Read these pages:

3rd May 2017
by TheVac Go to last post
1 99
Help

Sourcebans HELP

Hello, I'm getting a bit mixed up as I've tried some family sharing scripts but they're only for ULX Bans and I'm wondering if I could have help with Sourcebans ; I'm needing Source Bans Family Shared & Alt Detection script coded for me, so it would...

3rd May 2017
by F14 Go to last post
5 251
Help

I hate google. Plus A lua problem I cant google myself

Hi, well. I got a friend who has an error where on prophunt when a new round starts, it stops all sounds. This breaks a live radio meaning you have to turn it off and on again. I made a lua code to...well, turn it off and on for everyone: for k, ply...

3rd May 2017
by thegrb93 Go to last post
1 187
Lua

solved Lua error disappears if I edit the file while server is running?

Hey... I don't know if any of you can help me with this, I'm bad with lua and I have some problem with my gamemode code. For some reason it throws an error if I just try to play as normal BUT if I open the init.lua, edit nothing, save and re-upload...

3rd May 2017
by gonzalolog Go to last post
5 112
Question

Garry's Mod on Linux

I haven't tried to run Garry's Mod on Linux in a long while and was wondering whether fonts and all that jazz are working and whether there are some other snags I perhaps don't know about and perhaps some of you know some fixes (probably too optimistic...

3rd May 2017
by Vloxan Go to last post
5 298
Help

I need help desperately. GMOD server completely broken.

I have tried the steam discussion, I have even tried my server providers customer support, both are hopless. My server wont show up in the server browser. I can join it, the server is there but it just doesnt show up. In my history category my server...

3rd May 2017
by geferon Go to last post
3 288
Lua

solved Variable resets when function is ran even if it's global

I've got this cooldown snippet that checks for exactly that - cooldown. function checkDelay () delay = CurTime() if delay <= CurTime() then print("No cooldown.") delay = CurTime() + 10 else print("Cooldown in effect.") end

3rd May 2017
by LeeTheCoder Go to last post
2 127
Lua

Weapon script sound help

So im trying to make it so when a weapon is equiped it plays a sound which works, but im trying to get the sound to stop on weapon drop (such as the player dies ) or holster . This is the code i have for the sound(ps its ttt) : function SWEP:Deploy()...

3rd May 2017
by JasonMan34 Go to last post
3 128
Question

is it possible to have a password on a garry's mod SQL Database?

a little new to using SQL Databases tho I do currently have mine fully setup and working along side my server and the web page for donations. however I don't think my sql database has a password on it. I do know that it can only be messed with by the...

3rd May 2017
by Legion of boo Go to last post
2 231
Question

Adding Bots with custom names

Im looking to create a .lua file that automatically spawns 3 bots every server restart and gives a random name to them, so ingame thier name looks like a playername and in the server browser. ISSUE: https://gyazo.com/d0f990c391a87f76169cfa193a7e85b3...

3rd May 2017
by maurits150 Go to last post
2 170
Lua

TFA base issue regarding "c_smg1.mdl"

when i place "c_smg1" model in shared.lua the weapon starts to dissapear whenever i'm pressing fire, when it's out of ammo, just for a second, i compared the lua file to other sweps that use "c_pistol" or and there seems to be no big difference between...

2nd May 2017
by wrong_tactic Go to last post
2 273
Help

solved check if chat is open

Hi Guys :) is there a function or hook that can check if the chat is open? i binded KEY_M to my map and when i type in chat something with "m" the map opens, so i need a check if the chat is opened sry for bad english :D

2nd May 2017
by bigdogmat Go to last post
5 177
Help

Issue with Scoreboard column for XP Rank not appearing.

Alright so basically I've added an XP System from the DiscreteTTT Addon pack and everything seems to be in order except for the ranks not appearing on scoreboard. https://facepunch.com/showthread.php?t=1554178 So to try and make this a little easier...

2nd May 2017
by Caaiin Go to last post
0 117
Help

Make a teleporter

Hello, it's been a few days since I try to make a teleporter to go from point A to point B with a props that can also be permanent but I can not. Any code I've created does not work can you help me?

1st May 2017
by TheVac Go to last post
10 399
Help

solved DarkRP AdminTellAll

I understand that removing DarkRP Hud removes this feature but is there a way to add it to a new hud? I have tried adding this code and it doesn't seem to work. local AdminTell = function() end usermessage.Hook("AdminTell", function(msg) ...

1st May 2017
by EzGunzBlazzin Go to last post
0 140
Lua

How to I get the w_model for this gun to work?

So my weapon appears in my crotch, but I have no idea why as I have put in the welements swep to place the weapon on the bone in the models hand. This weapon is converted from M9K to TTT and everything works but the w_model. if SERVER then ...

1st May 2017
by Stanstar22 Go to last post
0 149
Lua

DListView problem

For some reason my DListView looks like this: https://gyazo.com/f86b3438927cdfe916a9bb5bfc93a111 local PlayerList = vgui.Create( "DListView") PlayerList:SetMultiSelect( false ) PlayerList:SetParent(Frame); PlayerList:SetPos( 15, 45 )...

1st May 2017
by VortexZ Go to last post
3 154
Help

solved LocalPlayer():GetModel() giving a cube

So, I am having an issue where I am trying to render onto the HUD the model of the player (in prophunt, so the player can see on the HUD their prop), but all that I am getting on the HUD is a cube in the place of the model, no matter what prop the player...

1st May 2017
by TheXnator Go to last post
8 245
Help

solved Gmod server lua error.

So I am working on a server and then this pops up in the console when I look at any gui where you can write stuff in. Or for an example change the rope length of a ballon in the Q menu. This is for everything that is using some sort of GUI. And NO I have...

1st May 2017
by androiid_ Go to last post
3 141
Help

A problem with a nil value and how to filter it

So I am currently working on polishing up a hud that I just finished. Now the only problem I can't manage to fix, is the fact that whenever a player dies, the ply:GetActiveWeapon() prints out a nil value due to the fact that the player is dead, so there...

1st May 2017
by code_gs Go to last post
3 147
Photos

solved GMod - What are you working on? April 2017 (#68) ( 2 3 4 5 6 7 Last )

Highlights from the previous thread

1st May 2017
by Mors Quaedam Go to last post
272 23,341
Help

Top down Elevation Aim

Hi I was working on a top down script, and I can get it to work alright, but the player cant aim at elevations, so a player who was higher couldnt shoot players who were lower and vice versa, I saw some other fourm posts but they didn't work, this is what...

1st May 2017
by wh1t3rabbit Go to last post
7 218
Help

ConVar Linkage Dedicated Server

So, when attempting to use my desired gamemode on my server, the following error is spit out when I try to change the gamemode: Both ConVars must be marked FCVAR_REPLICATED for linkage to work (sv_password) The error comes up when I launch the...

1st May 2017
by swinginman Go to last post
0 109
Help

Infinite Loop Crashing on Startup

Hey, so just recently, my server has been starting up and crashing seconds after loading addons from the workshop. I've tried to trace this error from what I've editied, and I've no idea what continues to cause it. I had cleaned the server completely once...

1st May 2017
by NeinCat Go to last post
2 188
Lua

[DarkRP] My Custom HUD is making game lag

So my custom HUD is making my game lag. Once I join my server, it doesn't lag at all but once I start switching jobs it starts to lag more each time I switch my job. I think it's a HUD problem because when I remove my HUD, it doesn't happen. Code: ...

1st May 2017
by VortexZ Go to last post
5 167
Help

Clientside texture change.

Yo, I was wondering if there is a way to change the color or texture of a prop clientside, so it will only appear that color/texture to one player. The only ways I found make it change color/texture for everyone.

1st May 2017
by Swordfinch Go to last post
2 134
Help

solved New Line using file.Append or file.Write

So im working on a ulx command that when used will write a line of text to a txt file in the data folder and this file will serve as the donations log for my server. This is what i have so far but obviously this will only make it go down to 2 lines, i...

30th April 2017
by Hebster Go to last post
3 193
Lua

Problems with GetPos()

Hello ! I was testing my addon when I saw a problem. When I go a ply:GetPos() on myself ( clientside ), I get correct data. But when I do this : local target = Entity(1):GetEyeTrace().Entity if IsValid(ply) and IsValid(target) and...

30th April 2017
by EpicGaby Go to last post
6 235
Question

[DARKRP] Addon for certain jobs

Hello FacePunch community ! I need do something with a certain job for my server. I know ( a bit ) coding with Lua and I need something : I just want to know how I can execute my code if the player have a certain job. Thanks a lot in advance, ...

30th April 2017
by gonzalolog Go to last post
3 167
Help

No door overlay or name overlay. HELP

Hello, i have a problem in my server, when i walk upto a door it doesn't say "f2 to buy door" and when i do buy it, it doesn't say the name of the owner??? How can i fix this, thanks a lot. Also there are no errors or anything. Matthew.

30th April 2017
by djrefor Go to last post
21 320
Help

Darkrp Ulib Access

Hey guys, how is it possible to make for a darkrp job a customcheck/spawn function. When a user have the access to the dualsaber permission he gets in darkrp as a weapon the dualsaber. something like this local CATEGORY_NAME = "uCg...

30th April 2017
by Sodak Go to last post
0 123
Lua

solved 3D2D Cams on an Entity

Hey :) I'm coding an addon for my own community and I wanted to do a 3d2d cam on a player entity when he do the SWEP:PrimaryAttack() I've searched for 3d2d cams and I found this :...

30th April 2017
by EpicGaby Go to last post
3 160
Lua

solved problems with net.send ect

hey, i want to add pointshop to my ragdoll combat server. I see where the info is to send it from client to the server but when i add it to an item it throws me errors can anyone help please pointshop item.lua ITEM.Name = 'Kleiner' ITEM.Price =...

30th April 2017
by unknown_lua Go to last post
4 140
Help

GMOD Category cloning? Help.

(if I have made like 5 posts I am sorry, idk if these went up or not) Long story short instead of my server getting put into a pre-existing category it makes its own category, here is an image of what I mean - https://puu.sh/vAwPA/6c5fad2cdb.jpg To...

30th April 2017
by RapidSteve Go to last post
4 183
Help

I need some help with Entity Spawning on a location from Derma Panel

Hello, We have been trying to make a entity (a computer) and when you press e on it, it opens a derma screen with a button. When clicking the button it should spawn a vehicle (in this case a Tie Fighter from starwars). When we put this in our server...

30th April 2017
by TheBOOMStick Go to last post
0 94
Help

solved Lua Problem in model selection

I keep getting a problem with my code, I have been trying to fix it all day without much help, here is the error: lua/entities/test/cl_init.lua:111: '(' expected near ':' 1. unknown - lua/entities/test/cl_init.lua:0 and here is the code that...

30th April 2017
by GamingMad101 Go to last post
4 196