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

Make HL2 vehicle turrets do damage?

I'm wanting this addon to cause damage to entities but it doesn't. I've checked the hook and it makes sense but the turrets aren't registering as a vehicle. Here's the hook for those who don't want to download/extract it. local function...

26th May 2015
by Robotboy655 Go to last post
1 111
Request

Warhammer 40k Roleplay Script, SWEPs, and Entities

Hi, I am working with my friend in creating a Warhammer 40k Roleplay server on Gmod. However we are in need of a Lua coder for gmod to create scripts, SWEPs, and Entities along with whatever else we may need. There will be payment for services based off...

26th May 2015
by Lamrett Go to last post
5 338
Help

solved Teams returning nil This thread has images

So i've been jacking around with this gamemode for quite some time (2-3 months) and I'm pretty much ready to release. However I can simply not get rid of this one error. gamemodes/ptp/gamemode/modules/base/sv_player.lua:224: attempt to index local...

26th May 2015
by Stuuuuuypid Go to last post
6 186
Help

Wait until variable is true

Hello everyone! As I am working on a class system, I made a synchronization system to network between my server side and client side objects. But the synchronization process, using the net library, can take a few instants (It's pretty quick you don't even...

26th May 2015
by Willox Go to last post
14 278
Question

solved Make entity solid color (e.g. ESP) This thread has images

How would I make an entity display as one color like in an ESP? I tried all rendermode enums. (in case you're wondering I'm using it for a hi-tech visor thing, not a hack) EDIT: also it needs to not show up behind walls

26th May 2015
by Willox Go to last post
6 262
Help

Unknown command "sv_defaultgamemode" .... This thread has images

i have looked on google to try and find out why and i cant so i am here now server.cfg sv_defaultgamemode "TEST" test is a gamemode i am making i just called it TEST for now

26th May 2015
by Jenssons Go to last post
13 255
Help

solved Act Command in TTT

I am aware that the act command has been removed from TTT in a past update, but I would like to reenable it because I want to add a SWEP that allows the players to dance. I have seen this thread http://facepunch.com/showthread.php?t=1285043 where a hook...

26th May 2015
by shockbird Go to last post
0 113
Help

[HELP] The /looc command! This thread has images

Hello everyone! First of all, sorry for the potential mistakes and sorry for posting this thread. I am a beginner at lua coding and I only know the very basics. I have decided to come here after a TON of research on the internet to find a solution to...

26th May 2015
by Melted Bu11et Go to last post
9 385
Help

How can I make commands for a class only

Example I need this to SUPERVIP(A VIP CLASS I MADE) Is just so I can learn, I don't really need this CODE local Frame = vgui.Create( "DFrame" ) Frame:SetTitle( "Test panel" ) Frame:SetSize( 300, 300 ) Frame:Center() Frame:MakePopup()...

26th May 2015
by VegetaPlay Go to last post
9 233
Help

MOTD won't work

Hello, I am having issues with any MOTD addons that I try to use. No matter if it is paid or free they will not work. No errors or anything either. Can someone help?

25th May 2015
by Acecool Go to last post
12 206
Help

Well I need help in one thing

I've seen this in the web and I wanted to know if anyone knows how to do something simillar, but this one is to complicated(I can't open ports in my house) http://facepunch.com/showthread.php?t=1451707

25th May 2015
by VegetaPlay Go to last post
0 75
Question

Differences between AccessorFunc and Entity:(Get/Set)NW*

For example (out of my head - not tested in game): local EntityMeta = FindMetaTable("Entity") if not EntityMeta then return end AccessorFunc(EntityMeta, "blah_blah", "BlahBlah", FORCE_STRING) -- ... player.GetByID(1):SetBlahBlah("hello world") --...

25th May 2015
by OmegaExtern Go to last post
2 127
Lua

Stop Cheat Engine speedhackers in 542 bytes or less This thread has images

Most speedhack detectors run server-side and, due to potential lag, must only be triggered if the speedhack is extremely obvious - several times normal speed. To get around this some players will just give themselves a smaller speedhack (<2x) but this...

25th May 2015
by Phoenixf129 Go to last post
23 1,623
Help

Removing Collision between players on a dedicated server This thread has images

No clue how to disable collision on a dedicated server I have ULX

25th May 2015
by Acecool Go to last post
4 161
Help

QC HELP FOR SWEP

I am making a model for a swep , I need a qc for that!

25th May 2015
by VegetaPlay Go to last post
2 157
Request

solved Color coding help for lua?!

Hey! I have been troubled with this thought, as I am extremely new to lua and have been editing some basic lua files and I wish to change the color on the entity.. .. So I remember reading somewhere that I could use a color wheel which would figure...

25th May 2015
by Regzo Go to last post
5 125
Lua

for table fucked up (GMStranded)

Hello, I tried making a concommand, which gives the targeted players all weapons as a test(autocomplete working fine), but when it comes to p:Give() it returns a error. Here's the function I use: concommand.Add("cstranded_givealltools",...

25th May 2015
by Invule Go to last post
14 342
Help

solved Leveling system issue - Skills do not have an effect

I am trying to make players' speed/jump height change depending on your skills. But it appears to have no effect no matter what numbers I change it to. Keep in mind I am using darkrp so that MIGHT be overriding the changing of the players' 'stats'....

25th May 2015
by pogh10 Go to last post
0 73
Help

is there a way to make some one spawn as a spectator

is there a way i can make it so when some one join the game they area spectator and are dead than spawning alive so i can make it if there are so many people the game starts and then they spawn

25th May 2015
by whitestar Go to last post
1 160
Lua

solved Script end if team =

Hi, I need to make a couple of my scripts end if team = "UNDEAD". I know I need something like this if team = "UNDEAD" then end at the top of the scripts that I don't want to be used by them. Some input would be great.

25th May 2015
by whitestar Go to last post
5 112
Question

VTFs wigging out when looking around? This thread has images

Why does these VTFs do this? I have this vtf set (HUDPaint) with: surface.SetMaterial( icon ) surface.SetDrawColor(color_white) surface.DrawTexturedRect( x + x1 + 2, y + y1 * i, w, h )

25th May 2015
by serfma Go to last post
2 145
Lua

combine_soldier_prisonguard red eyes

Hey I tried to add red eyes to the nova prospekt prison guard with the code models/player/combine_soldier_prisonguard.mdl ply:SetSkin( 1 ) And it's does not work it has yellow eyes. Maybe there is custom material for it?

25th May 2015
by Exho Go to last post
4 232
Help

why does GM:PlayerConnect not work?

so i putdown the function GM:PlayerConnect and nothing happens when i join the game function GM:PlayerConnect( name, ip ) PrintMessage( HUD_PRINTTALK, name .. " has joined the battle." ) end "ingame" Player has joined the game

25th May 2015
by AK to Spray Go to last post
2 175
Help

ply is a nil value

how do i try to fix the error attempt to index local 'ply' (a nil value) when ever i try to call my own functions local function RoundStart ( ply ) hook.Call("playerslives") ply:SetTeam( 2 ) ply:Spawn() end

25th May 2015
by raphy963 Go to last post
11 329
Help

Server Files deleting themselves?

Alright so I own a prop hunt server on nfo. I am using the prop hunt files located on the workshop, with fretta and all. My issue is this: upon map change several key files are deleted. I can't find any reason for this. My host is NFO. I can't explain a...

24th May 2015
by YourStalker Go to last post
2 197
Help

solved How to retrieve all values related to an entity

Hi, I want to retrieve all values related to an entity. For example if an entity have: entity.Owner = "Mafiatoss" entity.Light = 0 entity.Cute = 1 entity.Sexy = 1

24th May 2015
by Willox Go to last post
1 122
Question

Why does the flashlight not lag, but DynamicLight does?

Flashlight does nothing to my FPS, but DynamicLights bring it down from 120-140 to 60-70.

24th May 2015
by Noi Go to last post
10 443
Help

solved No physics on a spawned entity

function SWEP:Toss() local ply = self.Owner local tr = ply:GetEyeTrace() if !tr.HitWorld then return end if tr.HitPos:Distance(ply:GetPos()) > 128 then return end local Views = self.Owner:EyeAngles().y local ent =...

24th May 2015
by Jvs Go to last post
4 126
Help

solved Problem with an entity code

function ENT:Initialize() self:SetModel( self.Model ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self:SetUseType( SIMPLE_USE ) local phys = self:GetPhysicsObject()...

24th May 2015
by Robotboy655 Go to last post
1 98
Help

solved ENT:Use only prints the "else" part of what it is supposed to

function ENT:Use( activator, caller, useType ) local _ents = ents.FindInSphere( self:GetPos(), 10000 ) for k, v in pairs( _ents ) do ...

24th May 2015
by A Fghtr Pilot Go to last post
2 137
Help

Glitchy trails. This thread has images

Hey guys! I recently added trails to my pointshop on my TTT server. Im having a few issues, The first and most annoying is that when a player is spectating and has a trail equipped it still shows the trail when theyre flying around. It also attaches to...

24th May 2015
by Mooseham Go to last post
15 546
Help

can some one help me please (gamemode development)

right so am working on a game mode and i want to know is there a way to make if when a player dies it takes away 1 from a variable now what am showing you is not all of my code just parts of it ----------- shared.lua //this is the teams...

24th May 2015
by Jenssons Go to last post
4 309
Help

Salary returning nil

alright, so, this little shit wont work. TEAM_DB = {} function GM:LoadTeams(tbl) TEAM_DB = tbl print("Loaded "..tbl.Name.." team.") team.SetUp(tbl.ID, tbl.Name, tbl.Color) end function Player:Salary()

24th May 2015
by Dear_Matt Go to last post
6 247
Help

solved Server Tickrate

Looked into this, can't be done. If someone could just remove this.

24th May 2015
by RickyBGamez Go to last post
0 177
Help

solved Table that can be accessed globally.

What would be the best way to set up a table that can be read and edited by server and client scripts?

24th May 2015
by GModKitty Go to last post
10 247
Help

Derma Code Won't Work

-- Serverside code util.AddNetworkString( "OpenMenuUniqueName" ) function MakeClientOpenMenu( Pl ) net.Start( "OpenMenuUniqueName" ) net.Send( Pl ) end

24th May 2015
by thekiller123 Go to last post
1 144
Help

solved Limiting Prop Possession to Specific User Groups (TTT)

Hey guys, I had a surprisingly difficult time finding this, and I'm still not able to get it quite right. Basically, I want only specific ranks to be able to possess props. When a non-donator rank tries to possess a prop, I want nothing to happen. ...

24th May 2015
by ryan722 Go to last post
3 179
Question

solved How to check if a player has run a certain console command with a certain string?

Okay, so basically to prevent some net messages I made from being abused via lua_run_cl, how would I check if a player has run a certain console command with a certain string? Basically I want to do something like this(if a function...

24th May 2015
by !cake Go to last post
20 350
Help

solved Net Menu Help

Hello. I'm very inexperienced with the net menu and my current methods(console commands and NWBools) to communicate with the client from the server take up a lot of data, so I've heard. Can someone explain to me/teach me how I'd use the net menu to do the...

23rd May 2015
by James xX Go to last post
9 142
Question

Weapon World Model Position

I'm working on a easy weapon creation system for my gamemode and I am trying to add props of various scales to the weapon that a player is holding. The weapon:GetPos() returns the pos of the player. If there is a way I can do this I would love to know....

23rd May 2015
by Stargazer808 Go to last post
2 102
Help

solved Allowing DNumSlider change value to sv_allowcslua?

Hey! How can i make DNumSlider change sv_allowcslua value 0-1 with derma? I have setted up DNumSlider but it is not allowed cl side. Maybe somehow detect if the number changed from 0 to 1 or 1 to 0? Then i can itself use net to change it. So...

23rd May 2015
by AK to Spray Go to last post
2 196
Question

Idea for a simple glow?

I've tried using halos which kill FPS due the blurring done, so now I'm in need of finding another way to make weapons simply glow a color whether they're on the ground, or in a player's hands. Does anyone have any ideas? Stencils seem to be incredibly...

23rd May 2015
by serfma Go to last post
4 230
Help

solved Code Isn't Working the Way It's Supposed to( NEED HELP )

-snip problem was solved but I still have another- Okay, so how would I make function GM:PlayerSpawn(ply) if HasCalledFunc == true then ply:KillSilent() else ply:SetTeam(TEAM_HUMAN) ply:SetModel( table.Random( humanpms ) )

23rd May 2015
by Phoenixf129 Go to last post
4 176
Help

solved Help finding a specific entity within range of player

I am coding an entity that finds players within a spherical radius of it. It works great but I need to figure out if the players leave the radius or find every player that is NOT in its radius. I am having some complications figuring the logic on this...

23rd May 2015
by MGCLegend Go to last post
0 125
Help

Detect if position/entity is behind player

Hello, I need to know if a position/entity is behind a player but I can't figure out how to do that, i need some help. Thx

23rd May 2015
by Mafiatoss Go to last post
5 235
Lua

How to check if player is sitting

Hey, there is thing to check if player is sitting like if(ply:isstting) then end or if the ply inside the entity prop_vehicle_prisoner_pod Something like that

23rd May 2015
by SteppuFIN Go to last post
3 154
Help

solved Server Crash - Too many edicts

ServerLog: FH l Hobo King (STEAM_0:0:88277861) Got killed silently Warning: Player 0 has 10185 queued usermessages! Not creating entity 'gmod_hands' - too many edicts! (8064 current, 8192 max) Warning: 10185 global queued usermessages! Not creating...

F14
23rd May 2015
by F14 Go to last post
6 282
Help

solved DButton problem (not calling OnMouseReleased when it should)

I have a DButton that uses different variables contained in itself to print certain things in the Paint function of it. concommand.Add( "annoyingpanelproblem", function() local PaintBorder = vgui.Create( "DFrame" )...

23rd May 2015
by MPan1 Go to last post
4 206
Help

solved Normal playermodels being replaced randomly with dark, featureless playermodels: This thread has images

Im really, really in need of some help here. Ive done everything, even gone as far as deleting the entire server and starting over from scratch, adding the addons one by one to test. Every time i think ive fixed it, a few rounds in the problem will...

23rd May 2015
by Greave Go to last post
8 242
Beta

Translators ( 2 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...

23rd May 2015
by ExtReMLapin Go to last post
61 2,325
Help

solved DButton.SetImage() Avatar image?

Hey! Can i somehow use DButton and use SetImage for setting it to avatar image? Or should i make own vgui element? 22nd May 2015 If you recommend vgui, can you show me example how i would create button in custom vgui?

23rd May 2015
by Atomsk. Go to last post
3 157
Help

resource add file problem? - help!

Hey guys so I recently made an hud with custom textures, but am having trouble with people downloading the materials to see it. Here is my code for resource add file: (KEEP IN MIND I TRIED RESOURCE ADD SINGLE FILE TOO) resource.AddFile(...

23rd May 2015
by code_gs Go to last post
3 116
Help

Disabling Collision between players again This thread has images

I am still looking how to remove collision between players and i already know about this : Player:SetNoCollideWithTeammates I have no idea what to do with this or where to put it. Can i either get an example or an explanation to how to use this?

23rd May 2015
by Busan1 Go to last post
3 153
Question

PlayerSwitchWeapon does not work client-side? This thread has images

I was trying to use the PlayerSwitchWeapon hook that is apparently shared, but it only works server-side and not client-side? Anyone have any idea why? I've also found if a player presses a key that is bound to "Swap to last weapon" it will work, but...

22nd May 2015
by serfma Go to last post
4 141
Help

solved Questions about FastDL, downloads.txt and resource.AddFile:

Ive got everything working for the most part, but i feel like ive set up a few things incorrectly. (Or at least, I dont know if I've set them up efficiently). Currently I add every swep icon, model and sound i add to the server, to downloads.txt. Is...

22nd May 2015
by Greave Go to last post
3 150
Help

Arrest Batton Glitch

Every 10 mins or so when you right click on the mouse, so if your aiming a gun or freezing a prop etc. if you have the unarrest batton swep it will change your weapon to the unarrest swep and will take 30 seconds to change weapon back ? any help ?

22nd May 2015
by Bo98 Go to last post
7 256
Help

Receiving error when using T indicator

I was looking around facepunch and found a code that shows indicates deathstation for other T's so they don't accidentally use it. But it doesn't seem to work. I am not experienced at all with coding and so I have no clue what this error means. Other...

22nd May 2015
by James xX Go to last post
4 128
Help

TTT overwrite function SelectRoles() This thread has images

I have copied the init.lua from TTT and edited it to do the function SelectRoles() that I would like. How I know this is not a good choice and it instead should be an addon that makes it easier to have. I have not really done addons for gmod ever. ...

22nd May 2015
by andrewmcwatters Go to last post
13 347
Help

Press E and show up a derma menu This thread has images

I made a model. But its too big is there a way to make it smaller (ingame with commands?) And I need when the player clicks it. Willl show up the derma menu I made! If you know how to do any of this 2 things write down please!

22nd May 2015
by James xX Go to last post
12 290
Help

Save props function problem.

Hey, i'm trying to make saving the players props on a .txt file. Every 5 min, the server runs this function. In my txt file, i have "props=" function PlayerMeta:SaveCharacter() if ( !file.IsDir( "test", "DATA" ) ) then file.CreateDir( "test" ) end...

22nd May 2015
by gmonfrere Go to last post
3 142
Help

solved DPanel.Paint not working?

Hey! I have problem, when i try to color DPanel, nothing happens? ADMIN.Tab = 1 ADMIN.PlayersTab = vgui.Create( "DPanel", ADMIN.Frame ) ADMIN.PlayersTab:SetPos( 250 + 5, 10 + 5 ) ADMIN.PlayersTab:SetSize( ADMIN.Frame:GetWide() -...

22nd May 2015
by SteppuFIN Go to last post
2 70
Help

solved InventoryMatrix entities : client is back on duplicating items !!!

Hello all, So you know maybe, but I made some inventory matrix entities like you have on Minecraft. So basicaly it works fine except when you add different items to your matrix, then retrieve the first added item to matrix (without closing it). It...

22nd May 2015
by Yuri6037 Go to last post
0 109
Lua

change color on visible?

I'm trying to revive a old skeleton cheat and I tried making the skeletons colors change when the players are visible or not. local function Skeleton(e) if !e:Alive() then return end if GetConVarNumber( "Kittix_ESP_Skeleton" ) >= 1 then...

22nd May 2015
by snekABN Go to last post
1 248
Help

Where do I start with making an SWEP base?

Pretty much the title. It's been two and a half years or so since I picked up SWEP coding, so I think it's time to get started on making an actual base instead of coding all of the weapons I make on weapon_base. Not looking to make anything on the scale...

22nd May 2015
by Spastik2D Go to last post
2 116
Help

GCDW Impact Bug, or "Why does grass refuse to be shot?"

Hi, I'm writing in today to write about a problem with the GDCW base. I've been developing a weapon since December and the bullets worked just fine, worked on all surfaces. Five months and an update later, I come back to see that I can shoot every...

22nd May 2015
by TylerB Go to last post
6 469
Help

[Help] Help from spawn protection

Help. I have spawn protection and I would like to improve it. Help me improve Lua code, if player comes to spawn zone, his guns prop disappears and the area that hurts and when it is trying to push inside, removed. I have three files and I do not know...

22nd May 2015
by Subject_Alpha Go to last post
1 93
Question

attempt to index nil value = Lua Panic?

I was developing my gamemode and, without warning, while not even coding, just running around in a normal map that usually works fine... Lua Panic! Something went horribly wrong! "attempt to index a nil value" Okay so... apparently now nil values crash...

22nd May 2015
by Willox Go to last post
1 129
Question

Find SoundDuration of sound with a different pitch

How do I find the SoundDuration of a sound, but with a different pitch? All I would have to do is find the algorithm used, but I don't know how to find it. All I know for sure is, 50 is DEFINITELY not half of the default speed (100).

22nd May 2015
by RonanZer0 Go to last post
10 142
Rant

Particle Tomfoolery This thread has images

Since there's a lot of weirdness surrounding particle effects, I've gotta ask for help. I want TF2 particle tracers. Tracers look like garbage if they aren't parented to the weapon. ParticleTracerEx( ) starts the attachment of an entity, but isn't...

21st May 2015
by TwoYearLurker Go to last post
3 266
Help

solved Avoid players jumping This thread has images

Hi! I need help with a part of my script. Is there a way to avoid players jumping? So they just jump when i want it? PS: This is for my custom stamina script for my server...

21st May 2015
by SmOkEwOw Go to last post
2 92
Help

solved How to make player faster

I need a way that will make playeres faster!

21st May 2015
by SmOkEwOw Go to last post
1 85
Help

ViewPunch question This thread has images

Why does ViewPunch not work clientside? (https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index1ec1.html) Is there an alternative?

21st May 2015
by Acecool Go to last post
11 486
Help

solved Money help Darkrp Derma code

I want to make a super-admin only derma menu That will ask How much money do you want #VALUE Which player do you want (show the list of online players) CONTINUE

21st May 2015
by VegetaPlay Go to last post
9 252
Help

Derma Help

If I use local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetPos( 50,50 ) DermaPanel:SetSize( 200, 250 ) DermaPanel:SetTitle( "Testing Derma Stuff" ) DermaPanel:SetVisible( true ) DermaPanel:SetDraggable( true ) DermaPanel:ShowCloseButton(...

21st May 2015
by VegetaPlay Go to last post
6 114
Help

SWEP - Changes sound

Hello, i'm trying to make a SWEP that plays a sound when you left click and changes the sound when you right click. So far i have this function SWEP:PrimaryAttack() sound = 1 if ( sound == 1 ) then...

21st May 2015
by Acecool Go to last post
4 201
Help

TTT HUD help

I've made this in like a quick 30 minutes and I'm wondering how to basically code it properly, I've seen people say to look at the cl_hud.lua file in the gamemodes folder for TTT, I get lua but basically I don't know much about garry's mod lua and I want...

21st May 2015
by mectus11 Go to last post
0 84
Help

Addon Help This thread has images

I need this addon, that every 10 minutes a gun will be striped of the player hands and will be replaced by another one,how can I DO THAT?

21st May 2015
by VegetaPlay Go to last post
2 86
Help

Scoreboard labels not showing

I am getting this problem http://i.imgur.com/toC4NDf.png I am using easy scoreboard plugin : http://facepunch.com/showthread.php?t=1356376 and man of the match : https://scriptfodder.com/scripts/view/82/comments/ They both add a new label/column to...

21st May 2015
by gonzalolog Go to last post
2 119
Question

solved Congruences in GMod possible or not ?

Hello all, I have a question for you, maybe you know you can encode strings using congruences. I myself developped algorythms using congruences in C/Java. I'd like to know if there is any way to get the modulo operator in GMod. Modulo operator is...

21st May 2015
by Yuri6037 Go to last post
3 195
Help

Of maps and weapons

Hey everyone, Just came here to ask you guys something. As the owner of a rather popular server I wanted to know little things about ... things: 1) There's a lot of maps I like and would like to add on the server I run, problem is, some of the maps...

21st May 2015
by Nihiljaya Go to last post
0 150