Title / Thread Starter Last Post ByReverse Sort Order Replies Views
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 268
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 213
Rant

Particle Tomfoolery

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 352
Help

solved Avoid players jumping

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 164
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 133
Help

ViewPunch question

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 678
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 351
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 204
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 302
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 169
Help

Addon Help

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 149
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 173
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 257
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 201
Stupid

solved A really stupid question

I've been doing a lot of things like local var = 1 local function varadd() var = var + 1 end print(var) varadd()

21st May 2015
by MPan1 Go to last post
4 313
Help

DListView OnClickLine Issue [Short Code]

So I am made a DListView as such: local list1 = vgui.Create("DListView", shoplist3) list1:Dock( FILL ) list1:SetMultiSelect(false) list1:AddColumn("Items") list1:AddColumn("Number") list1:AddLine( "Item1", "10" ) list1:AddLine( "Item2",...

21st May 2015
by Holywiremod Go to last post
5 224
Help

solved RP ammo help!

hey guys I have been attempting to add in mad cow ammo into my server because we use mad cow. anyways every single time I attempt to add the ammo I keep getting a large error, about DarkRP.createCategory, but the thing is I have made category's for all...

21st May 2015
by code_gs Go to last post
1 259
Help

Kill NPC

How do you kill an NPC, I tried doing NPC:Kill() but no luck and I have checked the wiki and cannot find anything on it (im a noob with npcs)

21st May 2015
by hootiegerbil Go to last post
2 177
Help

Kirito Player Model

So. On the GMod workshop there are so many crappy kiritos except for one. that has no eyes. everyone who has commented on it is saying "fix the eyes!" "why is it demented?" "best one but why no eyes?" and i was wondering if anyone could fix it. thanks in...

20th May 2015
by Exploderguy Go to last post
1 289
Help

My derma menu isn't working

So im making a report menu for my server, I have a few problems 1. Any text will open the menu 2. The derma draws over the text box so you cannot input into it 3. The button creates a lua error saying that the method i used isn't global Here is my...

20th May 2015
by rbreslow Go to last post
1 193
Question

Make Dropships Move to a location

How do I make dropships move somewhere? I tried setting their schedule, it works with npc_metropolice and NPCs like that but for flying things it half-works. They wait a second, turn around, get halfway there then give up and go wherever they want. And...

20th May 2015
by RonanZer0 Go to last post
1 190
Stupid
20th May 2015
by Chessnut Go to last post
7 257
Help

What the fuck is wrong with CreateSound()?

My code (client-side): heartBeat = CreateSound(LocalPlayer, "player/heartbeat1.wav") heartBeat:Play() heartBeat:ChangeVolume(0, 0.1) My errors client-side: gamemodes/darkrp/gamemode/modules/hud/cl_init.lua:6: Tried to use a NULL entity! 1....

20th May 2015
by Exho Go to last post
9 332
Lua

solved Lua Errors after Map change

Alright, so my server runs perfect, up until a map change. After that, I get this: ---- Host_Changelevel ---- Error loading cfg/trusted_keys_base.txt Error loading cfg/pure_server_minimal.txt L 05/19/2015 - 15:52:44: Log file closed Server logging...

20th May 2015
by HyperDrive Go to last post
10 615
Help

solved Level Bar HUD??

Hey guys so I have a level system that only has a level bar in the form of derma. I have no idea how to make it so it's on the HUD (more specifically center top of your screen). If someone could show me how to do it that would be amazing and I would...

20th May 2015
by Mrkrabz Go to last post
1 183
Lua

Camera world rendering issues

Hey guys. So I added a simple barebones hook to "CalcView" in attempt to move the player's camera temporarily on my gamemode. All it's doing is writing the cam.origin and returning that new table. Nothing fancy. However, I'm running into an issue where...

20th May 2015
by JetBoom Go to last post
3 270
Help

solved Make part of a map automatically triggered on server startup?

There's two buttons that I want to be "pressed" automatically when the server starts, the interact with the map. I'm not sure how this would be done, I was thinking maybe through a server.cfg or something?

19th May 2015
by Sheeplie Go to last post
6 256
Help

Pointshop MySQL

Pls no ban again. Anyways, I'm setting up my servers on a VDS and am having Issues with Pointshop. I continuously receive this error: addons/pointshop-master/lua/pointshop/sv_init.lua:274: attempt to index field 'DataProvider' (a nil value) 1....

19th May 2015
by Aeternal Go to last post
4 369
Help

solved How to check if a player is a certain job?

What would be the code to check a players job? Like if I want to check if they are police. What would replace GetJob? If LocalPlayer():GetJob == "TEAM_POLICE" then

F14
19th May 2015
by F14 Go to last post
3 254
Lua

Changing Picklock Speed (DarkRP)

Greetings, FacePunch. I have been trying to make the picklock sweap and make it into a new swep called fast_lockpick for a Professional Thief class. I know I have to change 3 things in the shared.lua code of the lockpick weapon. I have 2 guesses right...

19th May 2015
by smithy285 Go to last post
9 1,966
Help

solved How to define max health??

Hey guys I am back and having yet another issue with my DarkRP hud... Here MaxHealth is not defined for some reason, but it's a normal darkrp var. Can anyone help me define or or point me where I can? All help is appreciated, and thank you for reading! ...

19th May 2015
by pogh10 Go to last post
2 225
Help

solved Pointshop user groups not working

Hello! I recently added donators to my server and i wanted to have it so when they get moved to the donator group they could have access to the donator playermodels and trails. I have already made a donator group and ive used the code below for...

19th May 2015
by Mooseham Go to last post
0 200
Help

I need a round system for my gmod gamemode

I am working on free for all gamemode and im trying to make a round system but i cant seem to figure it out. I want it to broadcast when the round starts and when its over and who won. And the timer is 10 min and kill limit is 30. Also a variable so...

19th May 2015
by NiandraLades Go to last post
4 322
Stupid

solved functions - how to get all args as a table

This code: function ply_:SpeakLines(delay, args) // ply_ = metatable if !IsValid(self) or self:Team() != 1 then return end; table.insert(args, #args+1, "off"..table.Random({1,2,3})); end You're supposed to call it like this (also tried...

19th May 2015
by Willox Go to last post
1 244
Help

solved What is the best way to test an addon that you are working on?

What is the best way to test an addon that you are working on? Is singleplayer equal to a dedicated server? The server I use to test my addons is down because it didn't auto-payed this month so we are waiting the support for it but i need to continue...

19th May 2015
by SmOkEwOw Go to last post
4 187
Help

Hacked, delete files from data with specific name with lua

Hey! I got yesterday hacked and i want to make lua script to delete all the files that they spammed in data folder because from 120,000 files there are needed ones. How i would make script that would loop through directories and subdirectories and...

19th May 2015
by mcd1992 Go to last post
16 514
Lua

Quadtrees- how do I do em?

Hi FP, I've been trying to find the closest point in an array of positions to another position. Say we have the following: {(0,0,0),(1,1,1),(5,5,5),(6,6,6)} And I test (2,2,2) it should return (1,1,1) Normally this wouldn't be problematic if...

19th May 2015
by FPtje Go to last post
7 367
Help

End of Round music.

Hey guys! Ive been trying my hardest for a long time now to get end of round music to my TTT server. Ive tried numerous addons, from the workshop/other websites and the only one ive found that works is this one:...

19th May 2015
by Mooseham Go to last post
10 343
Question

solved How to detour SetTeam

Things I tried: ply_ = FindMetaTable("Player"); local SetTeamOld = self:SetTeam(); function ply_:SetTeam(args) if args == 1 then ply:SetNWInt("Class", 1); RunConsoleCommand("say", self:Nick().." has joined the Combine."); elseif args == 0...

19th May 2015
by Jvs Go to last post
4 327
Lua

solved Need immediate help with Fretta!!!!

o Kinect SDK Lua JIT is DISABLED! Unknown command "cl_thirdperson" Using joystick 'Xbox360 controller' configuration JOY_AXIS_X: mapped to Side (absolute) JOY_AXIS_Y: mapped to Forward (absolute) JOY_AXIS_Z: unmapped JOY_AXIS_R: mapped to Look...

19th May 2015
by HyperDrive Go to last post
7 438
Lua

PhysObj:AlignAngles() not working how I thought...

Hi everyone. I've been experimenting with this in the form of an STool, and I think I might be misunderstanding how this works. The goal with this experiment is to rotate the prop to the specified angles. Here's my code: function TOOL:LeftClick(tr) ...

19th May 2015
by DonnieLewis Go to last post
3 256
Lua

how to freeze all props

i want a way of freezing everyones props on the server to help stop lag.

19th May 2015
by MrAnarchy Go to last post
12 712
Lua

Custom concommand for server-side call

I am using the Pointshop addon. I've looked through Facepunch to see if anyone else has had the same issue, and I've found a few but no solution. I've attempted to compile the ideas together for a custom concommand that will allow me to type a console...

19th May 2015
by AK to Spray Go to last post
11 393
Lua

solved Toolgun trace returning null entity...

Hi everyone! I'm experimenting with making a stool, and I am having a bit of an issue. Currently, all I'd like it to do is print the angles of the prop I click into the console. Here's my code: function TOOL.LeftClick( tr ) tr = util.TraceLine(...

19th May 2015
by DonnieLewis Go to last post
16 423
Stupid

Making modifications to workshop addons?

What's the best way to go about making server-specific modifications to workshop addons? Currently I've been extracting them with the GMAD extractor, making my changes, putting the new addon folder onto the server. Obviously this isn't great because...

19th May 2015
by Phatso420 Go to last post
2 185
Question

How do Base NPCs deal melee damage?

When working with Nextbots and bullseyes, i notice that Built-in Melee NPCs, such as Zombies, and Metrocops with Stunsticks don't deal damage to my bot when they melee, even though thier animation plays. Obviously Melee isn't a "enemy:TakeDamage()"...

18th May 2015
by MysticLlama Go to last post
1 213
Help

Calling function on addition to table.

Is there a way to call a function when something new is added to a table?

18th May 2015
by wh1t3rabbit Go to last post
1 170
Question

Why aren't .TXT files on the gmad whitelist?

Unless someone cares to explain to me a reason, I see no reason for .txt files to not be allowed on the gmad whitelist. Sure, you can give the reason "it can overwrite other files". However, using that logic, .mdl files may as well be prohibited, due to...

18th May 2015
by Robotboy655 Go to last post
21 901
Help

3D2D Text Screens dont work????

So, On my garrys mod server I cant get my 3D2D Textscreen addons to work, whenever you spawn them its just a blank square that you can see through. I have uninstalled and reinstalled the mod many times aswell as formatting my entire server to see if that...

18th May 2015
by gonzalolog Go to last post
1 183
Lua

HELP! Broke My Garrys Mod Job List?

I was editing my garrys mod job list and when I was done nothing works. I cant revert my changes and I dont see anything wrong, but no classes/jobs exist on the server so when you spawn in you are just a blank model with no weapons, tools, ect. I do not...

18th May 2015
by The Commander Go to last post
8 566
Help

solved Workshop not updating

Hi! I have a workshop addon over at http://steamcommunity.com/sharedfiles/filedetails/?id=444592274 . I updated the map and followed the wiki directions to package the new .gma and publish it as an update. I first tried this about 10 minutes ago, and...

18th May 2015
by Sonador Go to last post
0 122
Question

How to recreate this 3D2D effect [video]

I'm trying to create the effect seen at 1:01 and 1:20 in this video: The area around the object is purple, it's like a purple circle. To make this in GMod I guess I would have to use 3D2D, but how do I actually make it a circle, and if possible,...

18th May 2015
by gonzalolog Go to last post
8 510
Help

F4 on join

What I need is for the f4 menu to open whenever you join the server. Would I be able to get a little help? Cheers

18th May 2015
by Kevlon Go to last post
3 279
Help

solved attempt to concatenate a nil value -- Help please D:

Hey so I am trying to make a little darkrp HUD addition up top but it returns simple values like salary false. They are defined. local function bizzahud() if !IsValid(LocalPlayer()) then return end local localplayer =...

18th May 2015
by Kogitsune Go to last post
1 247
Lua

Get The width and Height of a ship

Hello Everyone, First, Sorry for my English but it's not my natal language. So, I need your help, I wan't to create a Hyperspace teleporter for my server (With a window like in Stargate) but to make the window to the same size of the ship, I need to get...

18th May 2015
by matspider Go to last post
0 145
Lua

Is it okay to use a timer like so in GM:OnNPCKilled?

function VictoryBehavior() for k, v in pairs(player.GetAll()) do v:SetNWString("victorybehavior", "yes") end timer.Simple( 10, MapChange() ) end function GM:OnNPCKilled() VictoryBehavior() end

18th May 2015
by code_gs Go to last post
3 219
Help

solved Timer Always at 0:00 - TTT, Prophunt - Will PayPal $20 whoever can fix this!

I am at my wits end with this crap. I cannot understand what the cause of this is at all. We have tried so many different solutions to get this to work its insane. I need some suggestions on what could be the issue here. I am running about 10 or servers,...

18th May 2015
by Wyozi Go to last post
7 382
Help

Nutscript Flags?

Hey all, Leaf here. - I'm using the RP framework Nutscript to create a HaloRP. And I'd like to make the weapons as flags for easier use for staff and playerbase ease. - I was wondering if any of you could instruct me on how to do so, for I've played...

18th May 2015
by MiauMiauMiau Go to last post
1 1,081
Help

Nutscript problems

Been wanting to get using the nutscript framework for a while so I went in to experiment with things. I got some problems with items When I equip a gun, the player doesn't hold it properly. Its held in one hand facing downward. Any idea how to fix this...

18th May 2015
by MiauMiauMiau Go to last post
1 226
Help

Get nearby Entites

Hey How do you get nearby entities that is closer than 500 meters from another entity

18th May 2015
by legendofrobbo Go to last post
4 232
Help

Problem with machine numbers glitches!

I have installed few printer mods from workshop, it works perfectly fine in singleplayer but if i conf it on server I get this problem http://images.akamai.steamusercontent.com/ugc/719792474332057992/259778FE1530473D30046D66C9AC154E6EA284FD/ every mods...

18th May 2015
by Keww Go to last post
4 325
Question

How would I use GM:PlayerBindPress() the way I need to?

function GM:PlayerBindPress( ply, bind, pressed ) MsgN(bind) if LocalPlayer() then if ( string.find( bind, "menu_context" ) ) then print(pressed) if pressed then DermaPanel:Show() gui.EnableScreenClicker(true) else DermaPanel:Hide()

18th May 2015
by animepu$$y Go to last post
1 272
Help

Looking for resource on getting vehicles into gmod.

Hi everyone! I have been modelling for a good while now. I have successfully compiled many static props into gmod, and am quite familiar with setting up QC files, creating vtf and vmt textures, creating collision meshes, and all-in-all getting models into...

18th May 2015
by DonnieLewis Go to last post
0 256
Lua

Newbie Coder needs a little help

So I purchased a server and I've been working on my DarkRP jobs. It works in the server, but once i change to a job, I don't get any of the weapons, nor does it change the model. It does change the job name though. this is what I have so far. I know it is...

18th May 2015
by toodabeans Go to last post
4 312
Help
17th May 2015
by raphy963 Go to last post
16 516
Lua

Creating a melee SWEP

Can anyone give me ideas as to how I'd create a melee weapon for a SWEP? I checked weapon_fists.lua and still I was confused as to how to make one. I'm good at making SWEPs that shoot bullets and whatnot, but I need help with a melee weapon.

17th May 2015
by Holywiremod Go to last post
1 191
Lua

Having a problem with a corrupt entitiy for my server

I keep getting a error and its this ERROR] A runtime error has occurred in "addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua" on line 59. The best help I can give you is this: Corrupt entity: Armor Charger! The max must be an...

17th May 2015
by joopiejoop Go to last post
0 205
Lua

solved Is there a safe way to remove an entity's shadow?

Hi. I've been looking for a way to remove the shadow of a nextbot I'm making, considering that it's concept is to not be visible to players. I have the material that makes it invisible set, but I feel a little OCD-ish about removing it's shadow, like the...

17th May 2015
by A Fghtr Pilot Go to last post
3 270
Question

solved some confusion about the lua filestructure

Alright, so I have lua files for some SENTS in a bunch of subdirectories. How does GMOD get told to load them? When I have the files in simply /lua/entities everything works, but when I put stuff in subdirs within /lua/ents, or in an addon, it doesn't. Do...

17th May 2015
by Donkie Go to last post
2 266
Help

solved Error loading gamemode: !IsValidGamemode[thecyborg]

NOTE: I didn't put this in "Help and Support" because this is a gamemode that I made. So, whenever I select my gamemode and try to load a map, I get this popup, then the game crashes: It says "Engine Error Error loading gamemode: !IsValidGamemode"...

17th May 2015
by A Fghtr Pilot Go to last post
5 432
Lua

solved Nextbots 2.0 - Addfrags, addmoney, constantly spawn zombies !help!

I'm really frustrated with this. zombies work fine, but when it comes to them dieing; they dont add kill count to scoreboard, they dont add money to player, and they stop spawning after 15-45 seconds. This makes them spawn in the gamemode. (I'm Not...

17th May 2015
by deathterror Go to last post
1 301
Help

DarkRP Printers - Changing color.

Hello, i'm in the process of making a money printer that you can add an ink entity too. I am using NWInt Currently i'm trying to make it so if the printer runs out of ink it turns red. In function ENT:Think i have put if self:GetNWInt("ink") < 1...

17th May 2015
by vontiagaming Go to last post
2 291
Lua

Spawn At Eye Trace

Hi! im wondering how to make an entity spawn where your looking? i tried GetEyeTrace but that didnt work? i have the entity and console command sorted just the spawn pos

17th May 2015
by TroulesHere Go to last post
6 273
Lua

auto wanted when you shoot a cop

how do you make it so that if anyone shoots a cop ( not just chief and cp but all of them ) they are auto wanted

17th May 2015
by Pawsative Go to last post
7 345
Help

solved Strange

local title = vgui.Create("DLabel", dialog) title:SetFont("TitleFont") title:SetColor(Color(255, 255, 255)) title:SizeToContents() title:SetPos(8, 4) title:SetText("Welcome To Our Server") Could someone explain me why it's just showing the...

17th May 2015
by SmOkEwOw Go to last post
11 530
Lua

Max TextEntry Characters

Hello. Does anyone know how I can set the maximum character amount for a TextEntry field? I found one thread about it but none of the solutions worked for me. Thanks

17th May 2015
by IMayhem Go to last post
0 149
Help

How to set global spawn

The map i am using has a dodgy spawn point where everyone keeps spawning is there a way to set the deafult spawn point for everyone ?

17th May 2015
by [BT:RP]Benny Go to last post
0 175
Help

Hide HUD if player is cloacked

Hello; i own RocketMania HUD and he gave me a code to hide HUD if player is cloacked. I changed my HUD to TCB Premium HUD and i pasted the code where TCB told me to past, but it's not working. Here's the code if ply:GetMaterial() ==...

17th May 2015
by smithy285 Go to last post
13 506
Lua

Is it Possible to make Weapon Hold Type Work in multiplayer?

Hello, last time i did a gmod camera replacement and yes i edited lua to make hold type revolver and i used gmod 12 camphone model and it went good! http://steamcommunity.com/sharedfile.../?id=443613291 but bad thing is i cant make for multiplayer working...

17th May 2015
by GlaDOSPancake Go to last post
0 181
Lua

solved DModelPanel Model to Big!

hi! is there anyway to change the size of the icon in the DModelPanel and the frame/border seperatly? because look

17th May 2015
by TroulesHere Go to last post
2 176