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

Prop-On-Prop Entity?

Ignore the entirely too vague title, I can't think of a way to talk about it. Basically, I was wondering how I can do what you see below, but only using 1 entity, preferably the table. What I'm talking about is having props on an entity, but...

23rd October 2016
by VeXan Go to last post
2 168
Help

Player Animations.

Just wondering if there is any way to cleanly make playermodels play NPC animations, or if I just have to hotswap NPC/playermodels on players in order to do specific animations. Thanks.

23rd October 2016
by MPan1 Go to last post
1 164
Help

Bullet Entity Ignore/Filter

Hello, I've been messing around with the bullet structure a lot recently (https://wiki.garrysmod.com/page/Structures/Bullet) I came across one issue I was having when allowing players to shoot from inside vehicles. (Through ...

23rd October 2016
by Robotboy655 Go to last post
2 168
Help

Changing players collision size

So I am making a breakfloor map and every block in it is 32x32 hammer units but the player is 33 units... How would I change the players collision size? I have already tried these things but they do not work. ply:SetHull( 32, 30 ) ply:SetHullDuck(...

22nd October 2016
by Thiefdroid Go to last post
5 182
Lua

Death Ragdoll & 'attaching' to Player

If anybody could spark some ideas / suggestions on this problem I've been having, that'd be much appreciated. My issue here is essentially that I can't seem to 'attach' the player's Ragdoll Entity (the one made with CreateRagdoll()) to the player...

22nd October 2016
by thegrb93 Go to last post
1 166
Help

Improving Lightsaber addon

Hello Facepunch, I'm running a server which uses this addon: https://steamcommunity.com/sharedfiles/filedetails/?l=german&id=111412589 The addon is doing this in a think hook: local trace = util.TraceHull( { start = startpos, endpos =...

22nd October 2016
by P4sca1 Go to last post
8 242
Help
22nd October 2016
by MoonShark Go to last post
2 170
Help

Wcdbtn2.mp3 help

ive been trying to join Defconnations MethRP and i get stuck on loading this: "downloading sound/Wcdbtn2.mp3.bz2" please help me i really need this :)) https://gyazo.com/3a90fba0301d43b1ccbc3c8992db24c8

22nd October 2016
by maverzy Go to last post
3 133
Help

How to make an npc spawn at a certain vector but sitting?

How to make an npc spawn at a certain vector but sitting? I used getpos to get a certain spot on a map. I sat in a chair and put it inside of the bench I want the NPC to spawn on, but it does not spawn the NPC sitting down. How do I make it sit? ...

22nd October 2016
by gonzalolog Go to last post
3 234
Lua

DarkRP Custom Entites Problem

I have started my gmod darkrp server and have everything set up, it is a star wars themed DarkRP it is pretty fun i love the concept. But i have a job called Tie Pilot that can spawn a Tie Fighter Entity, but when i buy it it does not show up and in the...

22nd October 2016
by Mr.Stormz Go to last post
6 186
Question

Help wanted/needed with setting up a Garry's Mod surf server.

Hello. I'm terribly sorry if I'm in the wrong section, this is my first time using the forums. I need some help with configuring my LAN GMOD surf server. So far I have done everything to the point where I have to make a .bat file and add the addons...

22nd October 2016
by Skere_ Go to last post
1 132
Help

solved Help with ENT:SetupDataTables()

So I set up my data table function ENT:SetupDataTables() self:NetworkVar("Int",120,"AmmoRemain"); end And now I am trying to draw 'AmmoRemain' using draw.SimpleText(self:GetAmmoRemain(),"Font3",-84,-27,Color(255,255,255)) in a cam.Start3D2D() and it...

22nd October 2016
by Cosmo Go to last post
2 172
Help

I need help with Player names and health showing on players in DarkRP

Hello, I am having problems removing the default playername and health bar that shows on players when you look at them. I went into DarkRP settings(darkrpmodifcation) and disabled GM.showname and GM.showhealth to false and restart server fully after...

22nd October 2016
by Skere_ Go to last post
1 152
Help

solved Repetitive code

I am creating an entity which gives the player +30 ammunition for their weapon, here is my code for the ENT:Use function: function ENT:Use(a, c) local currentWeapon = a:GetActiveWeapon():GetClass() if currentWeapon == "weapon_ar2" then...

22nd October 2016
by Cosmo Go to last post
2 150
Help

Looking For Some Feedback!

I've recently taken up gamemode creation after a long bout with a shitty community were I got removed from being the developer because the community owner didn't like me/listened to his white knights. The gamemode will only be available on the server I'm...

22nd October 2016
by Deathking15 Go to last post
5 224
Help

swep icon

Hello, I do not know how to replace an icon in the display panel of choice of weapons at the numbers, or the wheel, which is on top, give an example of how to change this? sorry for my bad english.

21st October 2016
by code_gs Go to last post
1 130
Help

How to reference custom addons and how to force a download?

I'm just starting to get into hosting gmod servers, specifically DarkRP, and I have a few questions. When I want to install a custom addon to my server, I download it from the workshop on my client, then I extract the addon with GMAD, and upload the...

21st October 2016
by Jelman Go to last post
5 186
Lua

Difference between NWVar and NW2Var #2

I already asked about differenced between NWVars and NW2Vars. https://facepunch.com/showthread.php?t=1534636 But I've some questions now. What are the advantages? I saw that the NW2Strings have a higher limit than the NWStrings. (NWString: 199;...

21st October 2016
by FPtje Go to last post
18 912
Request

ULX give tools command

I was wondering if someone would be able to create a command for ULX that if you gave someone tools the would receive a toolgun and a physgun for example !givetools That'd be amazing if someone could do that.

21st October 2016
by Tarvik Go to last post
6 246
Help

Make color modification for players

Hey ! I'm a begineer at lua and I was wondering how I could make a code that'll modify players color on the server, I know that I'll probably need that : https://wiki.garrysmod.com/page/Global/DrawColorModify But I don't exactly how to use it and on...

21st October 2016
by Blinkenn Go to last post
5 280
Help
21st October 2016
by gonzalolog Go to last post
5 221
Help

How can I add an overlay to this plugin?

Hello there. I'm trying to add an overlay into a Nutscript plugin called "badair" but I can't figure out how can I do that. I already tried to copy an plugin with a working overlay but it didn't work either. I've got the original version of badair which...

21st October 2016
by chesterzinho Go to last post
0 156
Lua

NPC Inputs, KeyValues and ect.

I am trying to do something to an NPC. So first of all the npc is a scanner so like here is an example: https://developer.valvesoftware.com/wiki/Npc_cscanner So thats the scanner NPC I am using to do something but there is another one...

21st October 2016
by karl-police Go to last post
8 372
Lua

solved Need help with DFrame!

Hello! I try make DFrame inside DFrame! But 2 DFrame loses focus if i clicked on first DFrame! sample code: 2 DFrame

21st October 2016
by Hanter Go to last post
0 146
Help

How to spawn ent only target can see?

Hey there, Im working on dark rp class in which the player is slender man. I'm trying to create a SWEP that will make slendy appear in front of a victim/target and be seen by no one else. However, I'm currently stuck due to my lack of knowledge on how...

21st October 2016
by gononono64 Go to last post
3 359
Help

solved Entity:SetPos sometimes not work for players does not affect them

I just realized that sometimes it not change the position of the player. Which is really annoying. There is no command that force to do that? Not matter if they stuck?

21st October 2016
by kem008 Go to last post
3 187
Lua

Sin animation

How to make this rotation ? Not full rotation around the axis. ...

21st October 2016
by pierre0158 Go to last post
4 276
Help

Send a string from a server file to a client file

Soo, Im getting to learn LUA and I have stumbled across something I cant seem to figure out. My question - How would you send a string from a server file to a client file, and then use that string inside the client file?...

21st October 2016
by Smugpork Go to last post
8 370
Help

solved Where do I find the weapon_physgun, weapon_physcannon and gmod_tool?

I wanted to use custom hands so I edited some files and now I see error instead of hands while holding physgun, gravgun or tool gun wist custom models. I had this issue with other weapons too, but I just edited SWEP.Usehands to false and that fixed it so...

20th October 2016
by merkur0 Go to last post
9 240
PHP

Ban List

Hello! So I created THIS forum in order to be-able to have a ban list. I finally decided to man up and learn how to do it myself. I know many many more people will also want something like this so I decided to share the code. Now, it's not the best...

20th October 2016
by Flamingsword Go to last post
20 832
Lua

Code help

this is my code im trying to make a thirdperson script for my server hook.Add( "thirdp", "kek", function() if (ply:KeyPressed( IN_ZOOM ) ) then ply:concommand("simple_thirdperson_enable_toggle") end end ) i cant find out whats wrong with it...

20th October 2016
by GbrosMC Go to last post
7 362
Help

DynamicLight Bug

I've got a problem with dlights that i just cant figure out. I have these physbullets that are fired from either an ent or a swep, if the bullet is a tracer it makes neat tracer effects and emits light through dlight, however every now and then when a...

20th October 2016
by arow1234 Go to last post
2 239
Help

solved net.ReadEntity returns null

if SERVER then function GM:PlayerInitialSpawn(ply) if IsValid(ply) then net.Start("test") net.WriteEntity(ply) print(ply) -- prints Player net.Broadcast() end end else

20th October 2016
by code_gs Go to last post
1 159
Lua

solved if and then statements?

Creating text to pop up with if(s) and then(s) ( PLEASE disregard the default darkrp hud, I have no idea how to get rid of it when i'm in singleplayer, i'm so sorry:cry: ) I've created this if statement to create text. if health == 20 or health <...

20th October 2016
by bigdogmat Go to last post
20 435
Lua

I cant see the props and the addon list

Hello guys, i need help with my spawn list in my server in singel player is it still working but not in my server pls can you help me

20th October 2016
by jolke Go to last post
4 159
Question

Quality Assurance / Unit Testing

Hi there Lately my co-developers and I have been experiencing a lot of small changes that somehow break some core systems. While manually testing stuff extensively can indeed help, the best course of action would (in my eyes) be to get some automated...

20th October 2016
by maldark Go to last post
21 864
Question

solved Placement of Resources

Hey lovely people. I was wondering if I can place my resources for addons and/or gamemodes in the addon/gamemode file-system istead of folders in the "garrysmod" directory? I'd rather have my resources (a sound file in this case) in the addon's...

20th October 2016
by Fillipuster Go to last post
2 120
Help

Do i have to pay so i can host my own dedicated server?

Everywhere i ask, they say that i canīt have a dedicated server for free since i would have to pay for Anti-DDos and Addons and iīm not sure about it. Can someone help me? If anyone bans me, be sure to pray at night cuz i know some stuff about satanism.

20th October 2016
by whitestar Go to last post
21 532
Help

Any extra security?

Hello, I have CAC on my server but some people are still slipping in with Hacks. Is there anything else I can add to the server besides CAC to stop hackers? Please help me.

20th October 2016
by whitestar Go to last post
23 1,025
Lua

brush trigger can't detect objects in walls

I'm trying to recreate func_noportal_volume and func_portal_detector in gmod, using this workshop addon for the portals (because I like it's quirky glitches, it has functional fizzlers, and it's one of the most stable portal gun addons I've used). I set...

20th October 2016
by Zeh Matt Go to last post
1 191
Question

Instancing in Garry's Mod and how to load other instances

So I've been thinking for awhile now and haven't actually though of a bullet proof way of how to do this. What I plan on doing is instancing however I always run into the problem illustrated below. Say we have two players, player A and player B. Now...

19th October 2016
by TheVac Go to last post
0 172
Help

Retreive each item in a table

Hi it's me again :/ I search a way to know if the ent ID who touch my baker is in a specific table, but no way it's not working. Concerned part are in init.lua : function ENT:Initialize() for k, v in pairs(CookerAddon.recipes) do local name...

19th October 2016
by whitestar Go to last post
3 264
Help

solved "Player x has joined the game"

"Player x has joined the game". This is shown when a player connects to the server. I'm looking to remove/replace this. I've attempted overriding both GM:PlayerInitialSpawn and GM:PlayerConnect with no success. I've also tried searching through the...

19th October 2016
by Remixful Go to last post
7 252
Help

solved Error on printing table in net.receive

Hi, I have an this error : Error: Trying to network unacceptable type (table) When i printing my table but however it's printing my table. Here is my code (init.lua of an ent) : function ENT:Initialize()...

19th October 2016
by Robotboy655 Go to last post
6 196
Help

Click E on prop opens derma

Is there a when clicking on a prop ( Example : models/props_lab/workspace002.mdl ) to open a derma screen?

19th October 2016
by whitestar Go to last post
10 402
Lua

solved hud healthbar and armour at 0

I'm guessing it has something to do with math.Clamp? I researched it and actually don't even know if it has anything at all to do with math.Clamp but even if it does, I've no idea how to use it in this context. Both the armour and health bar look...

19th October 2016
by lubatron Go to last post
8 250
Lua

M9K Damage Values

Can someone explain this, In the configs for each weapon is a line thats says : SWEP.Primary.Damage = 15 -- Base damage per bullet And if you change it, it changes the damage of the bullet that is shot at the person. But there is a problem. I set...

19th October 2016
by code_gs Go to last post
1 162
Help

solved DarkRP - I need help on a lua error please :3

Hello guys, I configurated some gmod servers (DARKRP) but this time, i can't firgure out one error : gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value) 1. Call -...

18th October 2016
by aleflaicheur Go to last post
8 207
Help

DImage help

So I have two images (both PNGS) and asoon as i put them inside my code they dont work does anyone know how to insert a image so it shows up on the DFrame?

18th October 2016
by Robotboy655 Go to last post
2 155
Help

solved Why DLabel:IsHovered() doesn't work?

Just wondering why something like this doesn't work: function DLabel:Paint(width,height) if DLabel:IsHovered() then draw.RoundedBox(2,0,0,width,height,Color(255,120,120)) else draw.RoundedBox(2,0,0,width,height,Color(120,255,120)) end end ...

18th October 2016
by Remixful Go to last post
2 182
Lua

solved Water texture on a prop?

So, this one might be silly, but I've been trying to do a water fountain that works as a well (it collects water from rain and poured from bottles), and I've used a clientside model to simulate the water level. Now what I need, is to place a water texture...

18th October 2016
by AlbertoBC Go to last post
2 168
Help

DTextEnrty paste name

Thats the code i have atm but how do I make it so it pastes the self:GetValue on concommand

18th October 2016
by Jason138 Go to last post
2 156
Help

Nutscript - Setting a player's body group with a chat command

Hello everyone! I'm developing a gamemode for Nutscript, and I'm trying to make a chat command that when entered will set a bodygroup on a player's model. Ideally, I'd like it to be toggleable, but right now I have two separate commands. Example:...

17th October 2016
by NeatNit Go to last post
10 515
Help

solved See props behind a 3D2D panel

Hello everyone please read everything before reply. I just finish my baking system but i saw this : Yes we can see props behind the panel. I've already try to use cam.IgnoreZ(true) and use surface.??? but it's still don't working properly. ...

17th October 2016
by Yazrihm Go to last post
16 366
Help

solved HUD rotate texture to get a better hp bar

function draw.GradientRectRot(x,y,w,h,color,r) surface.SetDrawColor(color) surface.SetTexture( gradient ) surface.DrawTexturedRectRotated(x-(w/2), y+(h/2), w, h, r ); --surface.DrawTexturedRect( x, y, w, h ) -- Sample...

17th October 2016
by gonzalolog Go to last post
5 296
Question
17th October 2016
by NASA712 Go to last post
0 176
Stupid

solved render.drawquad not rendering everyframe

as the toic indicates the name indicates render.DrawQuad dosen't render the material quad everyframe. ive tried different 3d functions, they gave me the same results. anyone please? <3 i feel so stupid about this post x)

17th October 2016
by grunewald Go to last post
6 169
Lua

solved How to reset view punch when switching weapons?

function SWEP:Deploy() self.Weapon:SendWeaponAnim(ACT_VM_DRAW) self:SetPlaybackRate(1) self:SetNextPrimaryFire( CurTime() + 1.4 ) timer.Simple(0.4, function() if IsValid(self) and...

17th October 2016
by PhantasmGhost Go to last post
5 165
Help

PLEASE HELP MY SERVER BROKE! bad argument #1 to 'string_len' (string expected, got boolean)

Hello, I've recently run into a problem with my server and I don't know what to do. the error i get exactly is: lua/includes/extensions/string.lua:89: bad argument #1 to 'string_len' (string expected, got boolean) 1. string_len - :-1 2. Split -...

17th October 2016
by D3NNYM41C01M Go to last post
3 439
Help

Reset all DarkRP names?

How would I go about resetting all the DarkRP names on my server, like for all the inactive people that decide to rejoin do not have the same names as before?

17th October 2016
by SoggyWontonz Go to last post
11 361
Lua

spawnlist not showing any props after update

Im a pretty new lua dev so if this is something simple sorry The server i help dev for wont show any props in the spawnlist therefore i cant spawn any props, i can still spawn entities ect, just not props within the spawnlist because they dont show up.

17th October 2016
by andreblue Go to last post
4 199
Lua

DarkRP Entity Help

I have this entity that i have found on the workshop that is like a piano. The only problem i have is that the entity that spawns from the F4 menu is spawned as a "world" prop instead of a "PlayerNameHere" prop and the player cannot pick it up with their...

17th October 2016
by Lucifer1 Go to last post
3 176
Help

http.Post help with manipulating buttons

So I want to make a !group command to make the user automatically join a group, yet I have no idea how to. There is literally no examples on how to use the http library. this is all i have: http.Post("http://steamcommunity.com/groups/gmod",{ =...

17th October 2016
by beeteegee Go to last post
30 828
Help

solved Removing userdata functions

I've been posting a lot of topics recently regarding the system I have setup where a player can script clientside code that is related to the computer entity they're using, this means they can use lua to access functions such as Console:AddText("Printed...

16th October 2016
by Shoopdawhoop3 Go to last post
1 173
Help

solved Coroutine wait

So I'm back again, sorry haha: I'm using CompileString to compile a function that will be used clientside, the setup right now is; I have a string which contains all the code that needs to be turned into a function, I create a new string like this: ...

16th October 2016
by Shoopdawhoop3 Go to last post
3 216
Help

solved I need a little bit help. Rendering. 3d2d text not stay behind.

Dear Great People, I have a huge problem. As you can see my 3d2d text draw behind some stuff like that. How can I solve it? I am using hook. hook.Add("PostDrawOpaqueRenderables", "MyNewID", function()

16th October 2016
by kem008 Go to last post
2 190
Lua

Creating Dynamic Recoil

How do I create dynamic recoil, such as instead of using viewpunch, your view still bumps up but where ever your crosshair is, thats where the bullet would be

16th October 2016
by PhantasmGhost Go to last post
3 233
C++

Linux, Custom module SSDK stuff do not working

Hi, I've been trying to get CBaseServer pointer in linux module using SSDK13 headers (vtable hooks) and linking to tier and vstdlib, but obtained pointers is useless, and I can not understand why. So, some code: #include <Lua/Interface.h> #include...

16th October 2016
by Draiget Go to last post
5 303
Games

Configing ulogs

Hi, I installed ULOGS and i need to know how i can code it so all staff ranks can open and use ulogs,

16th October 2016
by whitestar Go to last post
3 203
Help

Creating a gui via server

Im trying to open a character menu when a player joins, I decided that using net messages would be the easiest and best way to perform this, but it appears that the net message isnt working, I was wondering if anyone could shed some light on this -I...

16th October 2016
by Skere_ Go to last post
6 265
Help

Need help with points on win!

So me and my friend is currently owning a deathrun server (Mr-Gash's Deathrun) and we need help. Does anyone here know how to make a script that lets you get pointshop2 points on win? Thanks for reading :)

16th October 2016
by TKronix Go to last post
11 451
Lua

Server logo on HUD

Hey, I want to create a simple addon which adds a picture layer on the HUD. How can I make it? I'm not a developer, and just started to run LUA related addons.

16th October 2016
by gonzalolog Go to last post
6 339
Lua

If string dosen't only contain letters

I wanna set a players name. But he/she is not allowed to have symbols or numbers. if string.contains symbols and numbers then return else ply:setRPName(text) end

16th October 2016
by mijyuoon Go to last post
4 212
News

[PSA] Hex' SkidCheck (global banlist) is a thing and people actually use it ( 2 3 4 5 6 7 Last )

So Hex, our favourite psychopath apparently released a public ban list addon called Skid Check a while ago (in 2012, even on Facepunch). This was mentioned in the "Shit that gets you mad in Gmod" thread. This is worth a PSA because we found out in that...

16th October 2016
by Redfiend Go to last post
270 20,547
Lua

solved DarkRP Won't let me change name!

My code: print( text .. " from " .. id) for k, v in pairs(player.GetAll()) do if v:SteamID() == id then v:SetRPName("CP " .. math.random(1000,9999) .. " " .. text, false) print(string.Explode( " ",v:Name() )) if text...

16th October 2016
by Melonos Go to last post
2 167
Lua

ULX - When a staff member joins they need a pin to get the group

The title says all but I want the min and max to be 6 NUMBERS only numbers. When they get the rank for the first time (they have to be online) they need to type in their own code. If you can a command for it to change or remove or add a pin would be...

16th October 2016
by Smuggest Go to last post
1 265
Lua

solved addoutput not working in Entity:Fire

I need an entity I'm spawning in lua to give outputs so I can get feedback from it (it isn't an SNPC or SENT, so I'm limited in what I can do). After some painfully slow google searching and an impressive amount of trial and error, I got the addoutput...

16th October 2016
by pacguy64 Go to last post
0 132
Help

solved 3D2D on SWEP

Hey there, I'm working on a "phone" SWEP and I was wondering how I could draw something onto the SWEP?

16th October 2016
by whitestar Go to last post
3 315
Help
16th October 2016
by Moat Go to last post
1 174
Help

Net Messages Problem/Indexing

Herro, looked all over google and couldn't find anything. Basically what I am trying to get my script to do is when a client calls the menu, the client will send a message to the server which will then respond with an ent object. The client script...

16th October 2016
by FlyPiggyBanks Go to last post
2 169