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

solved Null Entity Error

I have been trying to spawn in an entity on a map (I'm realtively new to entities and how they work) but I keep getting this error: lua/autorun/server/piano.lua:3: Tried to use a NULL entity! 1. SetPos - :-1 2. pianostuff -...

26th March 2015
by Baron von Hax Go to last post
9 427
Lua

Player view scale?

I know it is possible to set a player's view offset, but it is possible to set the scale of their viewport? ( By this, I mean for example setting it so what the player sees appears to be from the perspective of n ant, versus a human, so far as the size of...

26th March 2015
by travelsonic Go to last post
5 450
Help

Spacebuild Ship Cores

There is a mod that I saw on a McBuild spacebuild server. It was a ship core thing that provided shields aswell. The shields matched the prop exactly when they were hit. It wasnt like teh shields that you cna get on garrysmod.org. I am sorry that I do not...

26th March 2015
by Exploderguy Go to last post
10 3,846
Help

Help with random script error

Hello all. My server uses the following code to send maps to clients via the steam workshop. maplist = {} maplist = "106527577" maplist = "195227686" maplist = "192491456" maplist = "186012196" maplist = "165026364" maplist = "169893964"

26th March 2015
by Combineguy5 Go to last post
3 257
Help

solved Simle lua script.Dmg reflect

Hi, everybody. Help to write a script please. It is necessary for me that 30% of a dmg were reflected Here that I wrote, but it doesn't work: local function HookEntityTakeDamage( victim, dmg ) if( IsValid( dmg:GetAttacker():IsPlayer() ) &&...

26th March 2015
by godred2 Go to last post
10 308
Help

C++ Module

I'm trying to make a C++ Module which should run a console command, but I'm kinda stuck where to start. Anybody there could help ?

26th March 2015
by ph:lxyz Go to last post
8 803
Help

Invalid Sample Rates?

Okay, I tried changing some sounds on a swep pack that I like, and it keeps telling me this: "Invalid sample rate (48000) for sound 'fc3\weapons\magnum\44m-1.wav'." So I tried lowering the sample rate, but it doesn't seem to work unless I lower it so...

26th March 2015
by caldog6 Go to last post
8 504
Question

solved Can you precache animations like you do with sounds, and how much can you transfer from C# to Glua?

Tl;dr: Title. In Depth Explanation: So I was wandering how, if at all posible, you can precache animations, like you can do with sounds? An example could be: precachedSound = Sound( sound_name.wav ) Now, if I wanted to do the same thing, say with...

26th March 2015
by TheFruitKnows Go to last post
4 233
Lua

How to script a SWEP for NPC

Tried to do it with functions SWEP:NPCPrimary_Attack() and other stuff, but I still can't figure out how to make them actually shoot, because now they just play the attack animation. Anyone knows how to do this?

26th March 2015
by Robotboy655 Go to last post
5 220
Question

Using "hint" notifications?

How can I use this in my gamemode? (to display notifications): I cannot seem to find any function used to make this hint. DarkRP uses it, but I cannot find it in the DarkRP files... Any help is appreciated :D

26th March 2015
by MPan1 Go to last post
5 437
Help

Hold-to-aim Ironsights help

Hey guys. I need help coding hold-to-aim ironsights. I've already succeeded in making toggle ironsights but personally they feel kinda clunky. I've tried looking at the M9K base for references and also researching KeyPressed, KeyReleased & KeyDown. But...

26th March 2015
by Acecool Go to last post
16 407
Question

solved Sending HTTP request with JSON in body as PUT method

Ok. The first question is how to send data as pure json in body. All requests we can make now is throw this code (which is written in /lua/includes/modules/http.lua) local request = { url = "yoururl", method = "POST", ...

26th March 2015
by AlexCoder Go to last post
3 364
Lua

solved Custom function- help with my dodgy coding

So, I have a custom function used for a DIconLayout to easily create loads of the same sort of buttons, all when pressed will need to start a net script, and most don't differ from eachother (the buttons only need labels, size, a codename for them and...

26th March 2015
by MPan1 Go to last post
10 434
Request

Skeleton gamemode

Sadly Gartysmod.org does not have a skeleton gamemode and I was wondering if any one has one or what files I need other than the obvious ones such as enitiys and stuff :/

26th March 2015
by Acecool Go to last post
3 311
Question

Menu Shop System

I'm trying to recreate an older game mode that had a custom shop system in it, the only problem is all the code is outdated because it was coded for gmod 12. How would I go about making a new one or fixing the current one I have, the design of it is great...

26th March 2015
by Ghost_Sailor Go to last post
5 374
Lua

solved Garry's Mod addon problem DarkRP

Hey, I am using a addon called "BoomBox"(https://scriptfodder.com/scripts/view/482) which I got to add to my server. Adding it in, it works great, it's just that everyone can buy it. I did as the creator said and went to...

25th March 2015
by ijdavis Go to last post
0 580
Lua

Google Code is shutting down

http://google-opensource.blogspot.com/2015/03/farewell-to-google-code.html?m=1 Its not for another year but the site is being phased out, so if you want to download old SVNs or reupload them to newer sites then it would be a good idea to do so. Heres...

25th March 2015
by Exho Go to last post
8 698
Games

solved SetNWString error?

Hello guys. I'm having a serious problem on murder, for some reason players' names are "bystander". Searching on the code I found that this happens when bystander names could not be found. So here's server side code and client side code: On server...

25th March 2015
by mooshbeef Go to last post
6 361
Help

Regular admin mod fucked up

Garry admin mod (the regular admin admin of Garrysmod) garrysmod/settings/users.txt Doesnt work today from reason my adminmod cant recognize the admins in this file I dont get any lua errors I tried to reinstall gamemode and to remove all addons, did...

25th March 2015
by hanm13 Go to last post
2 198
Help

solved Clients No Longer Recieve ConVars or NWVars

Everything seems to be working fine server-side, but with today's (March 25) update, major parts of my code involving a HUD no longer work, as well as a system for transmitting/receiving the angles of NWEntity. Unfortunately this will be next to...

25th March 2015
by therealist Go to last post
2 151
Help

Rejax's TTT Scoreboard Not Working

So I have been using Rejax's TTT scoreboard addon for the past few months with no issues. About 1-2 weeks ago the rank color stopped to work, and all the ranks are white. The name color, however, still works fine. I'll paste the code below. Thank you! ...

25th March 2015
by code_gs Go to last post
3 301
Lua

Murder no bystandername

delllllll (User was banned for this post ("crap thread" - Gurant))

25th March 2015
by giraff Go to last post
0 151
Help

Help with Muzzle Flashes

So uh, I'm working on a Silenced SMG that I made using the SWEP Construction Kit. The problem is the muzzle flash appears inside the model for the silencer. Is there a way to be able to move where the muzzle flash appears when shooting? If not, is there...

25th March 2015
by Aaronautics Go to last post
1 235
Help

Bug With FA:S Weapon.

Hi everyone, I am using the FA:S weapons for my Dark Rp server, but I have a problem, When players shoot in wooden doors breaks and I must reboot .. I have never seen her . (I use the map rockford_v1b Video :

25th March 2015
by wranders Go to last post
4 386
Question

solved Does anyone else have this?

http://prntscr.com/6l2vg5 No, not the badly crossed out item name. The low-hanging 'subscribed' (or 'subscribe') button for addons?

25th March 2015
by Robotboy655 Go to last post
3 208
Help

Need help on hosting my Gmod server.

hello. i was wondering if anyone can help me on my Gmod server like code a few things for me also so me some little basic stuff. i will pay $$ if anyone helps me. please add my skype (xxdalegxx)

25th March 2015
by SkitZz Go to last post
6 210
Help

Hide VIP Job for non VIP in F4 menu

Hi, I'm trying to make it so only the VIP people can see the VIP jobs, while the regular users can't see them in the f4 menu? How can I go about doing this? I've added GM.Config.hideTeamUnbuyable = true But that didn't work as they are still...

25th March 2015
by Subject_Alpha Go to last post
7 446
Help

DarkRP Server continuously crashing.

I know I have seen some other pages on here with this same issue, and I know other servers with it. But I haven't seen any definitive, helpful answer on exactly what to do. Our server crashes a regular twice a day, for no visible reason. The console says...

25th March 2015
by McSniper12 Go to last post
6 220
Lua

SWEP.IronSightsPos

How do i get the pos and the ang of a weapon to creat the iron sites?

25th March 2015
by Aaronautics Go to last post
3 262
Help

solved GM publish error.

Hello. I am trying to compress the add-ons for my server in to one download. I've tried away models and content that I don't want and I'm trying to upload them back to the steam workshop. I have tried using this When I do I get this error I have...

25th March 2015
by Lunar Wing Go to last post
5 344
Help

Rotom model help

Hello you wonderful, magnificent people! Some of you guys have helped me so much and I can't thank you enough for it! Anyways, I'm having an issue with a model I want to use for my server. I want the props default player model to be a floating rotom. I...

25th March 2015
by Lunar Wing Go to last post
0 124
Help

Adding new darkrp f4 tab issue

UPDATED: Ok so now I got it to the point of no errors using common sense, but now the tab just doesn't show up. Any reason why? ALL help and answers are appreciated to the max. Here is the f4 menu code: --] local function...

25th March 2015
by pogh10 Go to last post
0 203
Help

Creating a TTT XP system

Que the dumb ratings I've been putting quite a bit of work into this, but I am completely unable to get it working under any circumstances. It is showing no errors in console, its just simply not creating the exp column at all. There are no TTT exp...

24th March 2015
by Acecool Go to last post
9 420
Question

Adding Multiple Lines of Text to Derma?

I'm making a derma panel and I need to add multiple lines of text (it will be a panel that shows Statistics of certain entities). I need to know what proper function to use to do this. I know I can't use multiple DLabels and I would use the Text Box...

24th March 2015
by Noi Go to last post
6 349
Lua

Stranded Server Help!

Hello I've have recently been making a stranded server and adding more workbenches/furnaces, I'm having this problem where when you spawn the entity in you can't see the name of the item when hovering over it. If you could be of help, I would like to know...

24th March 2015
by ScottTheGreat Go to last post
0 125
Help

using callback functions

currently i am playing around with a bit of code and i would like to know how to use a callback function mainly these http://wiki.garrysmod.com/page/Structures/ServerQueryData to for example return number players but not all of the rest of it,...

24th March 2015
by Acecool Go to last post
1 141
Games

Help With The Pointshop Database

I wanted to change from PS.Config.DataProvider = 'pdata' to PS.Config.DataProvider = 'mysql' The problem is that the people's points and item are stored on a file called "sv.db" and i don't want those points and items to be lost so, what can...

24th March 2015
by jonitah112 Go to last post
4 261
Lua

NWVars vs NetworkVars vs DTVars vs NetworkedVars

Hey, after the recent gmod update and looking into these network related vars can some please explain the difference between stuff like SetNWInt, SetNetworkedInt, NetworkVar, and DTVars? I use SetNWInt and SetNetworkedInt just as an example though...

24th March 2015
by Robotboy655 Go to last post
4 325
Help

Donator Jobs dont work

This dont work for me : TEAM_JOURNALISTE = DarkRP.createJob("Journaliste", { color = Color(255, 157, 0, 255), model = "models/Humans/Group02/Male_04.mdl", description = ], weapons = {}, command = "journaliste", max = 1, salary = 125,

24th March 2015
by Acecool Go to last post
1 203
Help

Halo Styled Radar [Help]

When the year began, I started making a Halo HUD and around the same time, I got extremely bored with Gmod. Anyways, I'm deciding to finish the HUD as I'm bored again. I know that Pillar is making a HUD using the exact same image template and he's farther...

24th March 2015
by Acecool Go to last post
1 205
Lua

Group Chat

How do i make it so instead of when you type using "u" it says "group" instead it says "radio"?

24th March 2015
by Acecool Go to last post
1 227
Help

Effects don't appear on multiplayer

Title said everything. code: if !IsValid(self.flare) then return end for k, v in pairs(ents.FindInSphere(self.flare:GetPos() , (GetConVarNumber("jb_abgun_flare_radius")))) do if v:IsNPC() or v:IsPlayer() and v!= self.Owner then...

24th March 2015
by Acecool Go to last post
1 154
Lua

Lua Error

| || |_| || || || | | ___|| || _____||_ _|| _ | | |___ | || |_____ | | | | | | | ___| | | |_____ | | | | |_| | | |___ | _ | _____| | | | | | |_______||__| |__||_______| |___| |_______| Coded by Prefanatic. Designed by Revanne Version - public beta ...

24th March 2015
by BoxAbout Go to last post
1 242
Help

Constant crashing

Since the Garry's Mod update there have been constant crashes on my gmod server and I just don't know what it is. Nothing shows in console before it crashes it just restarts ( crashes ). ANy explanation or reason to this will help me a lot thanks!

24th March 2015
by Acecool Go to last post
2 230
Help

solved Wierd car teleport.. Anyone know why this is happening?

Hello there, thanks for taking the time to read this :) Im doing a game that involves vehicles being set up and moved to certain places on the map, but when I use SetPos() on my vehicles (TDMcars vehicles, basically a prop_vehicle_jeep) , then get in...

24th March 2015
by sneakyloz Go to last post
3 153
Help

SWEP problems

So I have a bhop script, that runs in shared.lua. And I was wondering if / how I could put this into a SWEP? I have got everything swep related like the models and stuff in other files, I just need to make it so this only activates when the SWEP is in...

F14
24th March 2015
by F14 Go to last post
3 197
Help

solved Why would this code crash?

local function DisableClientsideRagdoll(ply,ragdoll) if GetConVarNumber("sv_bgo_enabled") == 1 then if !IsValid(ply) then return end if ply:GetNWBool("BGORagdollCreated",false)==true then return end local tmprag = ragdoll if...

TFA
24th March 2015
by TFA Go to last post
4 286
Help

Server crashing withut errors only dump files..

IS there anyone who can read .mdmp file ? 1st one - http://www.filedropper.com/srcds1678491crash2015323t17552c0 2nd one - http://www.filedropper.com/srcds1678491crash2015323t173013c0 Server keeps crashing without errors... List with addons :

24th March 2015
by Thegrreat Go to last post
6 408
Lua

Change player footstep sound.

I want to change standart player sounds, like fall sound, hurt sound and etc for all players, without addons, what change ingame sounds. But I didn't know how to do this. (Footsteps already changed)

24th March 2015
by BiFot Go to last post
4 434
Help

solved Position DERMA Panel / Frame.

Hey guys, I'm working on a DERMA project. I wan't it to be positioned on the far left and position the height based on the users screen height. (Center it and then put it on the far left.) I've done this by using the following code: ...

24th March 2015
by MylesTM Go to last post
2 170
Lua

solved DFrame- SwitchTo?

Just wondering, is there a 'SwitchTo' (or the equivalent) command for DFrames? I have a 'Next' button on a DFrame that at the moment has to delete itself when pressed, and put a 'Back' button where it used to be. Extremely dodgy, I know. There must be a...

24th March 2015
by MPan1 Go to last post
1 207
Help

Voice chat Dead /Alive

Is there a way to setup a gmod server with a plugin or by default so the dead can hear everyone but when they talk on their mic only the dead can hear them?

23rd March 2015
by Doubleedge Go to last post
5 337
Question

solved Where can I get information on how to make a Farcry 3-ish leaning script?

Tl;dr: Title. In depth explanation: I am currently working on a gamemode, but I'm feeling kind of stuck, as I'm unsure about how to go ahead with a leaning script. I am trying to figure out how to make a script that lets you peek and shoot from...

23rd March 2015
by TheFruitKnows Go to last post
4 274
Link

CoderHire ( 2 3 4 5 .. 125 126 127 128 Last )

After some drama and downtime, CoderHire is officially back. The site now has community moderators to help it run much more smoothly. CoderHire was made to accommodate people looking for some custom work done for their Garry's Mod server, and for...

23rd March 2015
by BuilderGaming Go to last post
5,085 234,808
Help

solved Sipmle script. Rate of fire. BUG

Here a script on rate of fire. But there was a bug after get on the purpose rate of fire increases indefinitely. How to correct? Help please. local function HookEntityTakeDamage(victim, dmg) if IsValid(dmg:GetAttacker()) and...

23rd March 2015
by godred2 Go to last post
2 161
Lua

PS Replacement weapon

Need to pointshop: Replacement entities/weapons when lifting it Replacement function WeaponStrip(ply) if ply:GetActiveWeapon("weapon_mu_fists"):GetClass() then ply:StripWeapon("weapon_weapon1") ply:Give("weapon_weapon2") end end

23rd March 2015
by Yashirmare Go to last post
4 249
Help

solved Sipmle script. Rate of fire.

This script doesn't work. Plz. help me. :dance: Works - dmg ,but rate of fire doesn't work. local function HookEntityTakeDamage(victim, dmg) if IsValid(dmg:GetAttacker()) and dmg:GetAttacker():IsPlayer() then dmg:ScaleDamage(1.25) local weapon =...

23rd March 2015
by godred2 Go to last post
8 355
Help

Swep error on "sbox_weapons 0"

I have a very strange bug while the weapons are disabled. My Swep can't shoot (both secondary and primary), model doesn't appear and ammo count is 2x normal. Please help, because I must fix it and update my weapon on WorkShop!

23rd March 2015
by TylerB Go to last post
1 269
Question

Question about stripping players with StripWeapons()

I'm using it in a SWEP like this: self.Owner:StripWeapons(self.Owner:GetActiveWeapon():GetClass()) and although it's working fine (it strips the player's weapons), it still gives me a nil value. can anyone help me understand why? thanks

23rd March 2015
by Sm63 Go to last post
3 299
Help

solved Micro. chat Lua code plz

How to limit that people didn't speak at the same time in a chat?

23rd March 2015
by godred2 Go to last post
4 406
Request

solved House scanner

Im trying to make a scanner.Lets say person A has a house with printers and when i scan the house with my scanner it should wanted the player for having illegals.I dont want to be spoonfed i just want to learn the basic concept.

23rd March 2015
by shootbysteve Go to last post
7 324
PHP

Lua "Obfuscator"

<?php /* Lua Mounter made for Gmod.biz by Impulsive. Version: 1.0.1 Notes:

23rd March 2015
by Flapadar Go to last post
20 2,558
Help

solved Simple lua script

This script doesn't work function Plugin:PlayerSpawn( ply ) if ply:IsUserGroup("superadmin") then ply:GodEnable() timer.Simple(500, function() ply:GodDisable() end) end...

23rd March 2015
by godred2 Go to last post
8 364
Lua

DFrame

How can i make a DFrame open when you have joined the server and when you have died, whith the option to respawn or disconect?

23rd March 2015
by Joeyl10 Go to last post
4 362
Lua

DarkRP Chat commands

I want to learn how to make commands that goto certin jobs e.g /cab <message> That then goes to any one online which is TEAM_CAB, where should i start or what should i do?

23rd March 2015
by Invule Go to last post
14 761
Request

Meta: We need some kind of lua tutorial thread

I've seen a few threads recently about people who want to get into scripting for Garry's Mod, but have very little experience with Lua, or programming in general. Case in point: http://facepunch.com/showthread.php?t=1456003...

23rd March 2015
by zerf Go to last post
3 246
Help

solved Cut and Paste Question

Not sure if this is meant to be in the dev seciton but I have a question that I can't find an understandable answer. I was wondering if there was any way to cut and paste large sections of text regardless of there being variables involved. For example:...

23rd March 2015
by _Divine Go to last post
5 301
Help

ent:AddCallback() to detect damage

Is it possible to use an ent:AddCallback on an entity to detect if it was shot and possibly how much damage it sustained?

22nd March 2015
by Newjorciks Go to last post
9 314
Lua

Prop Hunt 'prop lock' Code

Hi guys, Been viewing Facepunch for many years but thought I should sign up! I was wondering if anybody would look at my code below and tell me if you see anything wrong with it or if you think it might cause problems. hook.Add(...

22nd March 2015
by Newjorciks Go to last post
5 4,186
Lua

I want to learn lua

So I want to learn lua for gmod, specifically for perp, custom npc's etc Point me in the right direction. Cheers

22nd March 2015
by Ott Go to last post
35 6,641
Help

solved FastDL png

Alright, so..I've been coding a little addon for my server, but for some odd reason I can't get .png images to download correctly. The .png is located at my server's garrysmod/materials/achievement/achievement.png The file is added for downloading with...

22nd March 2015
by Viltsuuu Go to last post
4 480
Help

Parakeet's Pillpack & DarkRP Jobs?

I am having trouble putting Parakeet Pillpack items into a DarkRP Job, if it is possible- how would one go about doing it? It isn't as simple as finding the pill and pasting it into weapons because that doesn't work. We are trying to setup a Black Mesa...

22nd March 2015
by GrimTheReaper Go to last post
0 218
Question

solved Looping through tables for checking?

I am trying to loop through a table of strings. For each index of the table, I want to make a check (if statement). How would I go about doing this in lua? Any help is appreciated :D

22nd March 2015
by Fillipuster Go to last post
3 216
Help

solved Problem with my server.

Don't know if this is the right place to post this, and sorry if these posts are annoying, but I haven't seen any posts addressing this specific problem yet, so here it goes. I am running a Garry's Mod server off of a VPS. The gamemode is DarkRP. ...

22nd March 2015
by AngryMuffins Go to last post
4 182
Help

solved TTT Server Playermodel Fix

So, on my TTT server, the custom playermodels that I add appear in the pointshop and on the players, but when the round starts, they reset to normal default playermodels. I have already tried commenting out line 271 but it didnt work...any other fixes...

22nd March 2015
by meowking1 Go to last post
2 172
Help

solved Help plz. rate of fire

This function it is possible to increase a dmg: local function HookEntityTakeDamage( victim, dmg ) if( IsValid( dmg:GetAttacker() ) && dmg:GetAttacker():IsPlayer() ) then dmg:ScaleDamage( 1.25 ) end end

22nd March 2015
by godred2 Go to last post
4 293
Help

render.RenderView doesn't work on cam.Start3D2D

Hello all, I hope someone will be able to answer me. So I made a cam.Start3D2D to create a screen on a security cam screen model. The cam.Start3D2D pos/angles/scale is ok. But render.RenderView won't render in this cam.Start3D2D it alway renders in...

22nd March 2015
by Yuri6037 Go to last post
10 479
Lua

Door Groups problem

Hello there! Someone has the problem with darkrp 2.4.3 not save door groups? No errors and seems everything work properly, after server restart door groups resets, any suggestion? Thank

22nd March 2015
by Robotboy655 Go to last post
1 273
Help

solved HoldType Issue

I seem to keep getting this error spamming: SWEP:SetWeaponHoldType - ActIndex isn't set! (defaulting to normal) If anyone could tell me what it is and how I could resolve it, I'd be a happy bunny indeed. Thanks for any help in advance :)

22nd March 2015
by Baron von Hax Go to last post
2 141
Help

i cant play certain dark rp servers and its killing me someone please help

lua/weapons/weapon_fists.lua:207: Tried to use a NULL entity! 1. LookupSequence - :-1 2. unknown - lua/weapons/weapon_fists.lua:207 this is the error code that it is giving me someone please help

22nd March 2015
by _Divine Go to last post
4 327