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

solved Player_Manager not updating player runspeed and walkspeed correctly.

I set the walkspeed and runspeed of the class, but still the speed is default. If i put player_manager.OnPlayerSpawn(ply ) in a think hook it works but it keeps setting the hp to max. I cant figure out how to reference it in the fist place to fix...

31st May 2017
by txbondboy Go to last post
6 219
Lua

solved RP Gamemode

-SNIP-

30th May 2017
by iJohnny Go to last post
2 87
Question

Sound Lua Problem

Hello all, I have a problem, i'm triying to make a soundscape based on my location on the map it's works but the sound keep spamming Sound played and sound played in loop It's create many many sound It's possible to check if the sound is...

30th May 2017
by MrRalgoman Go to last post
3 176
Lua

Adding viewDelta for GMOD (CS:S Crouch)

I'm trying to add the viewDelta from CS:S for better air-crouching. I'm using all the CS:S hulls with: SetHull, SetHullDuck, SetViewOffset, SetViewOffsetDucked https://developer.valvesoftware.com/wiki/Player_Entity CS:S Crouch Code (Momentum BHOP...

30th May 2017
by code_gs Go to last post
7 345
Help

solved How do I make it so players don't stick through props?

example: https://steamuserimages-a.akamaihd.net/ugc/787414409038393912/810A72EE26016E07E72DE7B75578C43B412565DB/ How do I make it so players don't stick through props like this?

30th May 2017
by vkk Go to last post
3 162
Help

Communicate timer in Derma

Hey guys, I want to have derma have a 'timer' or a time progress bar, that the server keeps track of. As derma is clientside, I didn't want to spam the server with time requests, but I want an accurate progress bar. Could I simply update the timer every...

30th May 2017
by MPan1 Go to last post
3 180
Help

Entity Owner text

So i'm trying to show the player who spawned the entities name on the entity. I got this code but It always shows up as unknown rather than a actual ingame name cl_init.lua local owner = self:Getowning_ent() owner = (IsValid(owner) and...

29th May 2017
by Promptitude Go to last post
2 180
Help

TTT Pointshop Speed Perk not working

As far as I'm concerned theres nothing wrong with the code, but it wont work if you buy it. I've tried tons of times to fix to no avail. Please help ITEM.Name = 'Adrenaline Perk' ITEM.Price = 20000 ITEM.Material =...

29th May 2017
by unicornofdark Go to last post
9 132
Help

Question about DarkRP categories and how to detect them [MOVING THREAD]

This feels stupid, but I am wondering how to detect categories, like how you can detect player teams using ply: Team() == TEAM_NAME If anyone could also provide some sort of example, I'm really struggling to find out a way to basically make it so that...

29th May 2017
by Gordon Johnso Go to last post
0 69
Help

solved utilise animation activities

Hello there, im kinda new to models and animations, so keep that in mind. I made a swep and the most of it does work, except for these two animations: ACT_VM_PRIMARYATTACK_EMPTY ACT_VM_RELOAD

29th May 2017
by code_gs Go to last post
7 142
Lua

HUD Problems

I have a gmod DarkRP server and I added a new hud, scoreboard and f4 menu. This happend. I need help to remove the defualt hp thing and the name and hp display on the middle of the person. Screenshots Default hp thing:...

29th May 2017
by Richtofen Go to last post
5 155
Help

Help with DRM's for gmod.

Hello. I want to create my own DRM system for gmod. The 2 reasons is because I want to further learn Lua in this capacity and how to utilize websites to work with servers, and I just want to see if I can do it. I understand the concept of how it...

29th May 2017
by PerkyMcRibs Go to last post
9 680
Help

(I NEED HELP)How to create a SCP's and spawn for scp

Is don't work for me, for create a SCP's and spawn for SCP onBreach gamemode, can you help me ? :c (im french)

29th May 2017
by Robinet Go to last post
7 165
Help

A strange problem with no console error.

So, one of the users on my server is having a rather strange problem, the user was roleplaying fine. And was using money printers etc. Until randomly their use key stopped working on DarkRP entities, they can't open doors but can enter cars, they can't...

29th May 2017
by Borris_Squad Go to last post
3 120
Help

Text and FindInSphere help

Hey I need help getting text to pop up for five seconds when a player walks into an area. Server side code that runs off a think hook function think() for k,v in pairs(atmospheres) do ------------------------------------ --ATMOSPHERE NAME...

29th May 2017
by MPan1 Go to last post
6 145
Help

solved How to remove physics from DriveGamemode('sandbox')

How can I remove the physics of a player from Sandbox from my gamemode? I can do this: pPlayer:SetWalkSpeed(130) pPlayer:SetRunSpeed(235) pPlayer:SetJumpPower(200) But this does not work to the end.

29th May 2017
by Packages Go to last post
4 143
Help

solved render.Capture HTML Panel

So, essentially in this code I get the origin and angles of my npc, then I capture a render view and overlay that with an HTML panel. I'm pretty sure that this is really unoptimized because it makes the game freeze for a second. I want to resolve the...

29th May 2017
by 8bitMafia Go to last post
6 273
Help

How to make an animation repeat until a certain time?

Hey guys! I got an animation working on a keypress (the animation that happens when you chat), and I need to extend it out for like about another .2 seconds. Does anybody know how do to that? if input.IsKeyDown( KEY_X ) then ...

28th May 2017
by LambadaCorez Go to last post
0 97
Help

Need help on 3d text over player head

Hi so I am trying to make a floating text over a players head saying there name. I am having trouble on the adjustments. Can you help me? vec = LocalPlayer().GetAll():GetPos() ang = LocalPlayer().GetAll():GetAngles() cam.Start3D2D(vec,ang,.1)...

28th May 2017
by Coffeee Go to last post
4 172
Help

Custom models are floating

Hello, I am currently editing a gamemode and it has a system where if you have a bounty set on you, if you place a comm tower, you receive a percentage of your bounty. I have changed the model to a fridge, cause why not. Anyway, regardless of what...

28th May 2017
by Thiefdroid Go to last post
7 237
Help

How can I stop guards from equipping custom playermodels in Jailbreak 7?

Hello! I'm in the development of my Jailbreak GMod server, running the Jailbreak 7 gamemode by Excl and have a little problem... so I've added some custom playermodels to the pointshop, however when a player goes onto the guards team, they still have...

28th May 2017
by silverline Go to last post
1 144
Help

Hungermod

Hey there, I would like to make an addon that will notify you if your hunger is lower than 20. How do I do this? Thanks - Jack

28th May 2017
by AlbertoBC Go to last post
3 132
Help

Concept of server hopping based on going through a certain part of a map?

Hello, i'm asking about the concept of server hopping when going into a certain area since it's a well known and strived for concept which no one ends up following through on. I'm not going to ask someone to hold my and through it but after my exams are...

28th May 2017
by Matt09546 Go to last post
5 360
Question

solved Re-uploading workshop content

Hello, my gamemode requires me to have my content on the workshop with workshopdl. Anyway, any time I change/add models it means I have to re-upload it to the workshop and re-add it to my collection. Is there a way around this, as its taking too...

28th May 2017
by Matt09546 Go to last post
2 83
Question

solved Getting door positions in game

I am wondering if it possible to instead of getting the door x y z cords from hammer if there is a way to get them while on a map say in single player and if so would it be difficult to do so?

28th May 2017
by MPan1 Go to last post
1 91
Help

solved Thermal Detonator or grenade for starwars is shooting insted of throwing grenade

Ok so Iv recently been configuring/developing for this server and someone suggested that we have grenades. Me being the Star Wars savvy guy I knew exactly what to do. So I used a base from this guy and the model is showing in the view-model but the...

28th May 2017
by Snowa Go to last post
5 160
Help
27th May 2017
by txbondboy Go to last post
0 84
Help

solved Need help making an entity face or track a player or npc

So I'm attempting to have an entity face-track a player or npc as he/she moves . Is there a simple way of doing this, I have done some experimenting and got it to only point once towards an entity spawned using ent.Create, but it doesn't update its angles...

27th May 2017
by AzureMarine Go to last post
9 223
Help

DarkRP NeedToChangeFrom problems :\

So i've started my DarkRP and I've made some custom jobs but I always have hard times with The NeedToChangeFrom function, I've tried everything from redoing the code 5 times or double checking and this is my last resort. So i'm trying to make two jobs...

27th May 2017
by PotatoJunior Go to last post
16 224
Help

Prop Hunt Q menu

Hi, How do I enable the spawn menu in my prop hunt server? please answer asap Thanks, D4NNY (User was banned for this post ("Wrong Section" - Kiwi))

27th May 2017
by AO | D4NNY Go to last post
0 131
Help

solved Error which makes core game functions not work

I modified the Flood gamemode a bit to make it into Purge Roundbased but when I try to make my server appear under "The Purge" rather than "Flood" I get this error which renders core mechanics like buying props and weapons non functional. ...

Cub
27th May 2017
by Cub Go to last post
7 124
Help

SpawnIcon/DAdjModelPanel

I'm attempting to create an Arma 3 inventory-style system that uses an image of the weapon/item to show what it is. I ran into an issue, and I was wondering if anyone knows a solution I've made a simple window to get the angles so I can insert them...

26th May 2017
by Geoffry Skio Go to last post
2 101
Help

solved Lua entity particle orientation help

So I have currently made a working entity missile that launches when you press E on it, the problem i have is that the particles come out of the side of the missile instead of where it should. I'm using...

26th May 2017
by AzureMarine Go to last post
1 137
Help

DarkRP Bodygroup

Hello. I am trying to setup jobs on DarkRP, and when they spawn they have a specific bodygroup set. I am using this code and I've tried various other codes and it doesn't seem to work. PlayerSpawn = function(ply) ply:SetBodygroup(1,...

26th May 2017
by DukieBoyXL Go to last post
6 142
Help

Help with shared function (Reference error)

Hello Guys. I was working on a Networked Var function that only server can change var value Server->Client function CreateNetworkVar(Object, VarName, Type, DefaultValue, NotIsHookCaller) local ReadFunction, WriteFunction, SetFunctionName,...

26th May 2017
by Nicksf13 Go to last post
4 150
Help

PLEASE READ PLEASE! How do I set the SNPC based on the AI of the standard RPCs to the path to the fo

Warning!I'm from Ukraine, and I do not know English well, so I had to use translators. I'm sorry I create an SNPC based on the standard AI NPCs from Half-Life 1/2, and I encountered such a problem: I need this NPS to use my sounds instead of standard...

26th May 2017
by vladvoron Go to last post
4 139
Question

Set hand model only

Hi, how do I set a glove model from materials/models/weapons/v_models/hands/gloves.vtf as hand model? Thanks

26th May 2017
by MPan1 Go to last post
1 115
Help

TMySQL Help!

I need TMySQL. I have looked everywhere but cant find it. Please help. I need it!!!

26th May 2017
by code_gs Go to last post
7 173
Help

solved IsHovered() Returning true and false?

So I'm trying to get a sound to play once when the mouse hovers over a button and I found something interesting. The way I was gonna do it was have a counter, and play the sound on the first initial frame. Only one problem, I can't reset the counter when...

26th May 2017
by MrRalgoman Go to last post
4 121
Help

Create a function condition that require the player to be inside a zone

Hello facepunch: I need a little help on configuring the Bio-Hazard addon from the workshop. Here' s the thing : There' s an entity that spawns a toxic sphere that is suppose to infect you once you get in. The thing is that there' s a condition...

26th May 2017
by code_gs Go to last post
8 224
Help

DTextEntry:SetText not working? Possibly because of net error?

Okay, I try not to clutter the forums with dumb questions but this one truly is stumping me. So my last resort is to outsource and ask the community. Little run down... I'm making a death-menu, which essentially makes you click "Respawn" every time you...

26th May 2017
by Richtofen Go to last post
4 173
Help

Not Sure How to Create Default Value in MySQL

Hello I am trying to set up the Epidemic gamemode that was released here on Facepunch about 5 days ago. I have a MySQL connection established and everything is installed correctly. I imported the .sql file correctly too. However, it appears one thing...

25th May 2017
by eilex Go to last post
5 270
Help

Adding delay between 2 prints in chat

Hello Facepunch ! I have been messing around a lot on gmod lately so sorry if im posting a lot today :s Here' s my function : if (ent:IsPlayer()) then if (self:ShouldCollide(ent)) then if (ent.ShieldTouch) then timer.Simple( 2,...

25th May 2017
by JasonMan34 Go to last post
3 177
Help

How do I play a sound to everyone on the server?

Dont tell me there is a ulx command to do it because im looking for a way to do it in lua.

25th May 2017
by JasonMan34 Go to last post
5 171
Help

FastDL - Some players trying to download .bsp instead of .bz2 and getting missing map errors?

I have a working FastDL setup for my server, all of my maps and resources are uploaded to it in bz2 format and 99% of users can join and successfully download the files. However, every so often I see in the console someone trying to join and getting a...

25th May 2017
by Shorthouse06 Go to last post
2 163
Lua

Derma Panels on car

I want make Derma only open in vehicles whit commands. (User was banned for this post ("Wrong section again please USE DEVELOPER DISCUSSION FOR GMOD HELP" - Kiwi))

25th May 2017
by Synix28 Go to last post
1 185
Request

Half-Life 2 Weapon Iron-Sights.

I was wondering if anyone could edit the original Half-Life 2 Weapons and add Iron-Sights to them, and to go into the Iron-Sight, simple hold E. Weapons: USP-M. MP7 SPAS-12 Pulse-Rifle .357 Magnum Makeshift Crossbow

25th May 2017
by aidor Go to last post
3 2,102
Help

JavaScript on loading page not being called

Hello, sorry if this is in the wrong place, but I can't find anywhere better. I have created a loading page for a server with code akin to: <head> <style> ... </style> </head>

25th May 2017
by Briggybros Go to last post
0 108
Help

solved Camera collisions with MyCalcView?

Hey guys! I'm currently trying to make MyCalcView collide with walls, but I can't get it to work. If you guys could help me out, that would be great! Code: function MyCalcView( ply, pos, angles, fov )

25th May 2017
by LambadaCorez Go to last post
2 89
Question

solved HUD

-- Add 16 to the width and set the height of the box. width = width + 16; height = (20 * #information) + 14 - cutheight; -- The position of the information box. local x = 4; local y = ScrH() - height - 4; -- Increase the x and y position...

25th May 2017
by DukieBoyXL Go to last post
3 107
Help

solved How to use ents.FindInSphere?

I have a basic script to attempt it but it doesnt seem to be working. nullwavify = ents.FindInSphere( self:GetPos(), 500 ) for key, value in ipairs(nullwavify) do if v and v:IsValid() then v:Ignite() end end

25th May 2017
by ricesoda Go to last post
2 96
Help

solved TTT Equipment Menu Specified Order

I dislike the fact that the equipment menu items are not in any order and can change on server restart. I'd like to keep it organized and would like to implement a method of doing so. I'm thinking I can add a numerical value to each item and maybe...

24th May 2017
by agvick07 Go to last post
2 230
Help

Stop viewmodel from flipping when decreasing FOV?

I'm trying to fix a custom SWEP in a gamemode that has a scope that works by adjusting the FOV. However, when zooming to around 0.3x of the default FOV the viewmodel flips upside down for some reason and appears at the top of the screen. This isn't...

24th May 2017
by Shorthouse06 Go to last post
2 126
Question

game.GetWorld() not shared ?

Hello, Why this ? How is possible and how to fix it ? Shared.lua : game.GetWorld().Status = 1

24th May 2017
by NeatNit Go to last post
7 246
Help

solved I need help spawining a custom npc in my gamemode.

I am making a single player gamemode, and i downloaded a custom npc. I cant seem to get it to spawn with ents.Create.... local temp = ents.Create("npc_hillary_ally") temp:SetPos(SpawnPos) temp:Spawn() My console keeps...

24th May 2017
by Maglite Go to last post
8 171
Help

solved attempt to index global 'surface' (a nil value)

So I am getting a pesky error on the server about the surface library. I understand that the surface library doesn't exist on the server but I don't understand why it's being loaded on the server, I have an init file autorun/snpc_main.lua with this code...

24th May 2017
by MrRalgoman Go to last post
3 107
Help

Error when starting my Gmod server

Alright, I've created a server and when I start it up I have a lot of "errors" : http://prntscr.com/fbbh7k I don't know if I should ignore this or trying to solve the problems. Also it takes A LOT of time to start it up like 5 minutes (I have about...

24th May 2017
by DukieBoyXL Go to last post
2 139
Help

How to check if the text includes a word from a table?

Im trying to make it detect if the message includes anything from a table when the player types something. I know that I should use PlayerSay hook but the problem is that I dont know how to make it check if the message includes the text.

24th May 2017
by bilbasio Go to last post
4 127
Question

Lua error when the server changelevel or lua refresh

Hello, Can you help me ? When i changelevel all the gamemode reload with lua error Thanks you.

24th May 2017
by JasonMan34 Go to last post
5 161
Lua

Need Some Advice/Help with Timers

As I mentionned in the Title I want your advice on what timer to use. Reaching out from CurTime() and Timer.simple to timers with ids created with timer.Create. Here is the thing my goal is Having a Timer called A for example which will trigger another...

24th May 2017
by ZarusNat Go to last post
8 193
Help

Some people crash upon selecting a character on my server

Hey everyone, I've coded a NS schema for my roleplay community, and some people can join in and play just fine - though some people crash to desktop instantly whenever they select their characters. Any ideas on why this is happening? EDIT: Here are...

24th May 2017
by DahDestroyer Go to last post
4 133
Question

From Blender to Gmod

So I've created a model of a sword that I'd like to bring into gmod. I've looked online and all I can find are super outdated and confusing tutorials. I've created the model in blender and I'm completely lost on what to do next to bring it into gmod....

24th May 2017
by Robotboy655 Go to last post
2 151
Help

Tool gun constraining props to admin

Hey guys I'm setting up a server for the first time in several years and I'm running into an issue I'm not sure how to solve, I've checked google and I cant find any solutions. Im assuming this is a setting in FPP but not 100% sure. Whenever an admin uses...

24th May 2017
by RileyGuy1000 Go to last post
1 107
Help

solved How would I run a command as soon as the client loads into the server? (gamemode)

Quick question, how would one run a command as soon as the client loads into the server?

24th May 2017
by MrRalgoman Go to last post
1 80
Help

solved How to pack an addon into a gamemode?

Hey guys, I need some help. I need to pack an addon into a game mode. I have tried this before, but for me, it's extremely confusing. I guarantee this is super simple and my dummy head can't figure it out, but I've been searching the internet,...

24th May 2017
by code_gs Go to last post
5 147
Help

solved Trying to make a toggleable button that executes a ConCommand, help!

Trying to use the "IsKeyDown" input command, but every time I press my N key, it floods the command a ton of times until I stop pressing N. What I need is a toggleable hook that when you press N, there's a time delay until the next time you can press N...

23rd May 2017
by Moat Go to last post
3 105
Question

solved Permission & publication question/help.

I want to make a server content or gamemode. Whatever. I also want to make it surfing, bunnyhopping and rocketjumping with a timer. I found the addons that I want to take out some lua text stripes/ lines with the functions above and put them into my...

23rd May 2017
by Sweets Go to last post
0 92
Lua

solved Increase damage of the weapon you're holding

How would I go about increasing the damage of whichever weapon the player is holding for a short duration? Here's what I have so far: In this case I'm checking if the weapon is valid, and if so, is the weapon a crowbar? Then I'm checking if the player...

23rd May 2017
by Thane Go to last post
12 190
Help

Help with surface.SetDrawColor

Hello, I have a little problem.. Can you help me with my entity ? I build a Casino Server with tetris, slots, spinwheel. Everything work for the tetris except the color of is always grey

23rd May 2017
by killerrichard Go to last post
5 176
Lua

solved Console Variables not editable by clients on dedicated servers

Hello, I've been trying to patch a strange bug I found a while ago in one of my addons, however I simply cannot figure out what im doing wrong so here I am. The bug only occurs in dedicated servers, the bug itself is that server side convars can not be...

23rd May 2017
by Butterygames Go to last post
4 146
Help

solved Model is not displaying correctly.

Hello, so finally, I got my custom models into my steam collection and the user successfully downloads my models. My model is located at: models/items/ticketmachine.mdl So, I have set the model to my entity, as shown below: self:SetModel(...

23rd May 2017
by Matt09546 Go to last post
6 148
Help

solved any way to find a HL2 npc's lua code?

just wondering. I want to find the Fast Zombie's code and modify it to fit my addon. I believe Nightmare House 2, a half-life 2 mod, has done it.

23rd May 2017
by code_gs Go to last post
3 99
Question

Profiling server files, are the two first results bad?

As you can see below the picture, two first lines have values way higher than every other, my questions is simple how bad is the modules for server side?

23rd May 2017
by E4ewd Go to last post
5 307
Help

Find Half Life 2 contents in server files

Hey facepunch : I' ve been doing some pretty cool things on a server, and i wanted to mess with choppers, so i got myself a reskined version of the half life chopper. But for some reason this chopper can not be destroyed with roquets other than the...

23rd May 2017
by DG_Mathieu Go to last post
4 213
Help

Hit-Boxs problem.

When a player holds any weapons hit-boxes don't move after him.

23rd May 2017
by code_gs Go to last post
6 266
Help

solved Parent ENT has no Collision

I'm trying to attach a Enitityto another Enitity, but the attached Enitity has no Collision... function ENT:Touch( ent ) if ( ent:IsPlayer() ) then return end if ( ent:GetClass() == "monitor" && !self:GetConnected() ) then local...

23rd May 2017
by Synix28 Go to last post
4 163
Lua

solved Help needed with 'env_fire'

Hello there, so, I'm trying to make an entity that is a torch lit. The problem is, that I can't seem to be able to successfully create a working fire effect (the ignite function creates a fire that's too big and too laggy). After many tries combining...

23rd May 2017
by AlbertoBC Go to last post
10 618
Lua

ScrW() -> a nil value ?

Hey ! I'm coding an addon for myself but I got a problem : Here, my code : function SWEP:HUD() local width = ScrW() local height = ScrH() // Here some code for the function end

23rd May 2017
by Leyserr Go to last post
7 433
Help

Derma Bound F3

I have a question, I have created a derma menu which is bound to F3, however, when you close it the mouse remains (as that key makes the mouse appear), and thus you must reopen it and close it again. Is there a way I can override that when the menu is...

23rd May 2017
by Alydus Go to last post
2 138
Stupid

solved Should I use module and package.seeall, or just define a global table?

I'm having a little bit of trouble understanding module and package.seeall - Both what they actually do and why I'd use them, I have a 2 questions: 1) When should I use module and package.seeall? 2) How do I access a function that was defined after...

23rd May 2017
by code_gs Go to last post
5 352