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

Models being defaulted to ACT_HL2MP_SIT

No fucking clue why, but even using the correct ACT enumerations by using ply:GetSequenceActivityName(ply:LookupSequence("h2haim")) And that'll return this: ACT_DOD_PRIMARYATTACK_PRONE_GREASE (I think someone fucked up when he was porting this...

27th June 2015
by ExodusTheFirs Go to last post
0 98
Help

Help needed with my player model activities

I have made my player model with enough activities like running,shooting,holding weapons the player options screen also shows its walking activites but it showed no activities while i was testing my player model no matter it was running,shooting,walking...

27th June 2015
by xwjh123 Go to last post
0 86
Help

Need help editing the HUD.

So this HUD, which is very old now, I want it so the HUD can't be seen the player who looks up above themselfs: I think it's to do with: http://pastebin.com/Q4pVmBEe

27th June 2015
by Triage Go to last post
6 160
Help

solved Networking Help

So I've been trying to make an addon for muting an individual player in-game with a menu. But I am having trouble with networking the menu to make it so that on a command said in chat it opens a menu. cl_init net.Receive("menu", function(len)...

27th June 2015
by Velocity Go to last post
0 98
Help

solved A hook and a for loop - Debug my script?

So I have the following script: ---Weapon Loadout - Master ----------------------------------- local Coder = player.GetBySteamID( "STEAM_0:1:41036632" ) local ValidRanks = { "kittenkingdonator", "director", "donator2", "owner",

27th June 2015
by B10H4Z4RD Go to last post
0 130
Help

resource.AddFile() Issue This thread has images

So I have set up code which iterates and adds a bunch of files for the client to download and that works fine. The files are added as supposed to be in a folder whose path is garrysmod/download/materials/vgui/pt/ and the upon joining the server it says...

27th June 2015
by Holywiremod Go to last post
2 162
Request
27th June 2015
by Netheous Go to last post
1 112
Question

Help with a "shotgun-reload" script

AddCSLuaFile() --General SWEP.Base = "dm_baseweapon" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.Category = "Testing SWEPs" SWEP.PrintName = "M3 Super 90" --View Model

27th June 2015
by A Fghtr Pilot Go to last post
4 180
Question

Map Lighting Manipulation

Is there a way to manipulate the lighting within the map making it either really dark or extremely bright.

27th June 2015
by Zet0r Go to last post
3 217
Help

Server crashing frequently after update

Hey guys, I have a TTT server thats running off Nitrous networks, soon after the update there were a few issues and then it started to crash frequently but randomly (nothing seems to be causing it, no errors or anything). Ive updated steam through...

27th June 2015
by Koji6ac9H Go to last post
10 495
Help

DarkRP shipments.lua not working

Hi all! I set up my DarkRP shipments.lua from the modification addon, however none of the shipments I added are showing up for purchase in the F4 menu. Below is my code. Thanks for the help! // SHOTGUNS // AddCustomShipment("1887 Winchester",...

26th June 2015
by TheSpy7 Go to last post
0 81
Question

Lighting Problems This thread has images

I'm making a gamemode that needs to have changing days. The world lighting is fine, it's the entity lighting that has the problem. This is the lighting code : function GM:Think() if SERVER then engine.LightStyle( 0, string.char( time.light )...

26th June 2015
by 0bama Go to last post
6 246
Question

It is possible literally change source map limits

I know there been many threads about this topic. But in my opinion, don't you people think, that it would be possible for Valve developers to expand map limits drastically in their Source engine, for example, maybe unlimitless or self generating map? I...

26th June 2015
by 0bama Go to last post
2 275
Help

solved Cant Parent On Right Position This thread has images

here is my code: ]function ENT:Use( activator, caller ) if activator:IsPlayer() then self:SetParent(activator,activator:LookupBone("ValveBiped.Bip01_Spine")) self:SetPos(activator:GetBonePosition(activator:LookupBone("ValveBiped.Bip01_Spine")))...

26th June 2015
by Robotboy655 Go to last post
2 100
Help

Are these CFG settings overkill?

So I've noticed that these settings were added to all NFO gmod servers last year and was wondering if there was any problems with it. sv_maxrate 0 sv_minrate 100000 sv_maxupdaterate 99 sv_maxcmdrate 99 I've read somewhere that sv_minrate is...

26th June 2015
by Revenge282 Go to last post
4 164
Lua

Draw an entity for specific players but no for the others

Hi Everyone ! I ask if it's possible to draw an entity for specifics players, for exemple, I wan't to create Hyperspace Bridge, but To do that, I need to get All Entities/Props of Ship (Made with GetAllConstrainedEntities) and Draw the ship just for the...

26th June 2015
by matspider Go to last post
2 114
Question
26th June 2015
by Kogitsune Go to last post
3 192
Help

Need help with adding velocity

Hey, I need some help with adding velocity. My code is propObj:SetVelocity(v:GetPos()-ply:GetPos()) What it's supposted to do is make the prop go towards the player - and it's doing that.. but not at a right speed that it doesn't hit the ground...

26th June 2015
by baldursgate3 Go to last post
4 157
Help

Change SWEP world model bodygroups

Asking for what the title says. Is there any way to change world model body groups? I know how to do it for the view model (thanks to you guys.)

26th June 2015
by Shadico Go to last post
1 90
Lua

Anyone know what causes this pulling glitch? (TTT)

Players on my server are having a glitch where occasionally they will be forcefully pulled across the map. https://www.youtube.com/watch?v=E5thob3osOQ&feature=youtu.be

26th June 2015
by sirlenopow Go to last post
5 171
Help

indivisually setting a material?

Hello, I have different icons for my HUD and I was wondering whether I can individually set the material, an example is below: if (food <= 100 and food > 75) then surface.SetMaterial(hunger100) else if (food == 75 and food > 50) then...

26th June 2015
by mattymoo142 Go to last post
5 108
Help
26th June 2015
by Wbusby Go to last post
0 103
Help

Looping sound?

How can I make a sound infinatly loop until the entity is removed? Thanks

26th June 2015
by man with hat Go to last post
5 145
Help

solved image appearing as purple rectangle

My icon which is being downloaded, appears as a purple rectangle code: local hunger100 = Material('LG/content/images/food 100.png') local thirst100 = Material('LG/content/images/drink 100.png') local health100 =...

26th June 2015
by mattymoo142 Go to last post
5 91
Help

Skingroup trouble This thread has images

Hello, friends! My model have many skins, and the compile is fine. But in game many of this is bugged - textures is black, but not textures in skingroups - main textures. Screenshots: Here is QC $modelname "Deluge\yellowp\male1.mdl"

26th June 2015
by steamchild Go to last post
5 113
Help

solved Rope Constrain proplem

Hey Okay, i know how i weld one prop to another and that works perfectly, but when i just change a bit so it should weld with rope, it doenst work. local entone = ents.Create("hook") entone:SetPos(Vector(-5621.671875, -6005.043945, 209.125046))...

26th June 2015
by TheEvilDirect Go to last post
1 102
Help

[Darkrp] Cars spawn non-nocollided how do I change?

Ok just as the title says I guess.. Basically I wanna get cars to spawn nocollided, as I am well aware the potential of them used to crash my server or anyone's server. (Just driving it into a bunch of condensed welded props, perhaps..) If any of...

26th June 2015
by RealDope Go to last post
1 125
Lua

Perp Gamemode Help

PLEASE DELETE

26th June 2015
by mindfulhacker Go to last post
5 147
Help

solved Resource.AddFile not working?

Ok, So here is the code: resource.AddFile("gamemodes/LG/content/images") from my understanding, shouldnt this make the client download the files in the folder, as it is not doing that.

26th June 2015
by Robotboy655 Go to last post
1 73
Help

Ingame rules list assistance. This thread has images

Hello Facepunch. Im using a rules list (http://steamcommunity.com/sharedfiles/filedetails/?id=113715872). I need it so an admin can do rules_send <playername>. This will make the rules appear for the set time. Also, It has to be ULX groups. Im not...

26th June 2015
by Segecos Go to last post
8 160
Help

Play a sound that's only heard in first person?

I'm making a hitmarker for myself (like one that would tell me that I'm getting shot at), and I was wondering if anybody could help me figure out how I can make the game play a sound that can only be heard by the player in first person. I tried to use...

26th June 2015
by Chessnut Go to last post
3 144
HTML

solved Player:SteamID64() issue This thread has images

Description for Player:SteamID64 function isn't right. "In singleplayer or a listen server, this will return nil." ??? I think this would fit better: "In singleplayer or a listen server; Returns Steam 64/community ID on the client and no value on the...

26th June 2015
by OmegaExtern Go to last post
21 570
Help

solved Assigning a variable to a door? This thread has images

Ok, so I have the map rp_rockford. I want to assign a variable to some of the doors in the map, how can this be achieved? I understand I can get the name of the door, but from my understanding the entity name for all doors is prop_door_rotating, is...

26th June 2015
by mattymoo142 Go to last post
35 807
Help

How can I disable shell ejection in a SWEP?

Title. I'm making a SWEP that uses AR2 ammunition, but it still ejects shells upon firing, even when specifying in the base to direct it to a model that renders as invisible. Is there a string or function or something I can add to disable shell ejection?

26th June 2015
by code_gs Go to last post
1 116
Lua
Winner x 38

Coderhire Addon Cloning Thread ( 2 3 4 5 .. 12 13 14 15 Last ) This thread has images

Edit 9/14: With the demise of Coderhire and the appearance of a couple clones, I would like this thread to still be focused on recreating paid addons not limited to Coderhire. Gracias https://openclipart.org/people/dear_theophilus/computers.svg The...

Exho 1 reading
26th June 2015
by Kamshak Go to last post
560 36,607
Help

solved So Button spam prevention

What im trying to do is stop button spam on any map so we can add a check for all the buttons on the map with a ents.FindByClass( func_button ) i think its called func_button , but yea then we could disable the output/effect of it but im tired atm......

26th June 2015
by CertifiedCode Go to last post
0 104
Question

auto lua refresh

I have scripts that every time the server restarts I need to change it, then save it to get it to load. How can I get it so I don't have to do that everytime. I just want it to be loaded when the server starts. I have it under...

26th June 2015
by code_gs Go to last post
6 158
Help

solved Problems with viewmodel bodygroups

Earlier today I asked about bodygroups in view models, and found a solution that worked pretty well - this line of code, to be exact. function SWEP:Deploy() self.Owner:GetViewModel():SetBodygroup(1, 1) return true end However, I've come...

26th June 2015
by Shadico Go to last post
8 177
Question

Why don't SWEPs work on Combine?

*With Combine >_> Hey there, I decided to start work on a SWEP, but things didn't look good after I figured out that combine have trouble using SWEPs made for NPCs. Does anyone know why? And if so, is there a way I can fix it? I've seen someone create...

26th June 2015
by Robotboy655 Go to last post
1 116
Lua

Defualt Rpname This thread has images

I Was wondaring 3 things; 1. How could i make a system were when a player joins it gets a name from a list and at random sets that as there rpname untill they change it. 2. Were would i put this file. 3. What files would i need Cl_init ect? Thanks...

25th June 2015
by ibJarrett Go to last post
38 569
Help

Entities Persistency doesn't save.

Hello all, I am having problems with making entities persistent, or at least just staying saving to a certain position to the map. Props can be saved fine, but entities cannot be made persistent effectively, they all despawn after a restart or after i...

25th June 2015
by NexusRadical Go to last post
1 85
Lua

solved Need help with god mode button This thread has images

So I'm making a button that gives you god mode whenever you click on it. Here's the code I have so far local gbutton = vgui.Create("DButton", frame) gbutton:SetSize(100, 100) gbutton:Center() gbutton:SetText("Give God") gbutton.DoClick =...

25th June 2015
by Genesis_ Go to last post
9 223
Help

Problem with and old gamemode. No include This thread has images

So I got an old gamemode from a friend and im trying to test it, but when A player enters the server he can load because of these errors: ***** gamemodes/cityrp/gamemode/cl_init.lua:246: Tried to use a NULL entity! 1. GetNetworkedEntity - :-1 ...

25th June 2015
by mattymoo142 Go to last post
3 133
Games

solved Migration - PData -> .txt

Hello guys. It's been a while since I use pointshop with pdata. But now I want to convert the pointshop pdata data to a .txt without credits/items lost. There's anyway to do that?

25th June 2015
by Nicksf13 Go to last post
4 276
Help

Server will not mount addons from WorkshopDL This thread has images

Heya, So I tried installing WorkshopDL on my TTT server so that players can download the maps required for my server from the Workshop. I've followed all the instructions from the original page on how to set up workshopDL, but I have one problem. ...

25th June 2015
by Tarado Go to last post
8 291
Help

DarkRP: Custom Jobs Cannot Have Shipments

Hi, I have created a couple of custom jobs for my DarkRP server. However, they cannot access the shipments tab on the f4 menu. I have created shipments for them but they cannot access them. Shipment Code: DarkRP.createShipment("200 Bags of Weed", {...

25th June 2015
by airbud Go to last post
2 94
Lua

Some questions about a specific SWEP

So I'm gonna try to make a swep, I know how to make a basic swep for firing bullets or whatever. But I wan't to make one that "paints" I know there is the paint tool for gmod but I want something a little different, I want to make it like splatter, best...

25th June 2015
by FyllyMan Go to last post
0 64
Help

solved Guns Purchaseable only by Gun Dealer

*First of all, if this isn't the right place please let me know and I will remove this post* Hey there! Thanks so much for checking out this post. I am having a problem with my weapons being able to be purchased by everyone in the server. I have...

25th June 2015
by Rockit14 Go to last post
3 135
Lua

Models and Sound Problem, Fix this and I will reward you $25 This thread has images

I have a server running nZombies and I wanted to replace the models for the zombies and their sounds. I am rewarding $25 for anyone who can fix this. In the gamemode folder I would go to entities/entities/ which have 3 files for 3 types of zombies in...

25th June 2015
by DrJenkins Go to last post
20 381
Lua

solved Shared.lua doesnt get sent to client This thread has images

I need some help here, I tried editing the code a bit, but it still doesnt work, lemme try to explain. when I try to include the shared.lua file clientside, it gives a error "couldnt include file, not found", but serverside it gives no error. client...

25th June 2015
by James xX Go to last post
5 130
Lua

solved Base64 bugged?

Hello, I am trying to use fragradio, but the Base64 encode function is bugged there, heres the function: function enc(data) return ((data:gsub('.', function(x) local r,b='',x:byte() for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and...

25th June 2015
by whitestar Go to last post
0 88
Science

Speed Analysis of pairs and ipairs ( 2 Last ) This thread has images

If you don't know what pairs and ipairs is, do not bother reading this. So which is actually faster? Most say ipairs is, and for the real world part they are correct. But when you have tables nearing 15k keyvalues, pairs is the better option. ...

25th June 2015
by skypickle Go to last post
42 9,271
Lua

solved Math.Clamp() with DProgressBars

Hello, I wanted to know if Math.Clamp() works on DProgressBars, like as example lets take the players health, a ProgressBar can only go from 0 to 1, if I clamp the player health to these numbers, would it be like for the progressbar then like this: ...

25th June 2015
by Kamshak Go to last post
14 344
Lua

$5 Reward - How can I use tools outside of sandbox?

I have a gamemode running and I want to remove all doors on the map and spawn a entity on the map, Deriving sandbox messes up my gamemode. How can I use these tools and spawn this entity without deriving sandbox? I will reward the first to solve this with...

25th June 2015
by tzahush Go to last post
20 380
Lua

Hold type problem. This thread has images

When I created my SWep with SWep Construction Kit. Now I can't change weapon's hold type from pistol to any other. Help me!

25th June 2015
by Jeezy Go to last post
5 172
Help

solved How would I remove surface text once on screen?

I am creating a greeting message for my server, but I am wondering how I would remove the surface text that I put on the screen. I have already setup the timer.Simple function to remove it but I am just wondering how I would do so. I have setup the...

25th June 2015
by NyeBlock Go to last post
0 81
Lua

Despawn time with Bullet Shell Effects

I have a bot that Ejects shells from his gun when he fires. He uses an SMG, and is coded to fire in large bursts, with small recovery times. As you can imagine, a pool of shells can be made quite fast with such a bullet hose-type system, which can...

25th June 2015
by MysticLlama Go to last post
0 72
Question

Hook similar to "Initialize" where functions I have in my file will work

Hello. In a gamemode I'm working on, I'm trying to call a function as soon as the game starts. But the problem I'm running into is that there aren't any hooks I know of that run at the beginning of the game and allow you to call functions that you have in...

25th June 2015
by Z0mb1n3 Go to last post
4 172
Lua

solved Zoom questions

All righty, so I have this little tidbit of code: function SWEP:SecondaryAttack() //The variable "ScopeLevel" tells how far the scope has zoomed. //This SWEP has 2 zoom levels. if(ScopeLevel == 0) then if(SERVER) then

24th June 2015
by Shadico Go to last post
5 84
Help

Server chat commands not working when multiple functions in file This thread has images

I'm having a problem where whenever I join my server (ran on my PC) I enter one of the chat commands that I created and put in the server addons folder, and it works fine, but when I try another command it doesn't work. It doesn't matter which command I...

24th June 2015
by Genesis_ Go to last post
13 288
Help

solved How to create a bigger font size for text? This thread has images

Hello, I am new to lua and this is probably a "noobish" question to you guys, but please bare with me. I am creating some text using surface, how would I make the text bigger than its small default size?

24th June 2015
by NyeBlock Go to last post
4 86
Help

solved Displaying a serverside timer clientside

So, with a round system I'm making, I don't know how to display the round timer that is created serverside on the client in a HUDPaint hook. I was thinking about something like this: init.lua: util.AddNetworkString( "CreateRoundTimer" ) ...

24th June 2015
by A Fghtr Pilot Go to last post
15 213
Lua

I need help with lua.

Hello! I am MrGamer903 and i'm 13 years old :P I really like programming and computers in general. Since my 5 years i have the dream to become a professional programmer, because that's what i like to do! I am new to lua and i never worked with any...

24th June 2015
by Genesis_ Go to last post
23 494
Help

Get current enitity

Hey In cl_init you do LocalPlayer() to get the player, but how do you get the entity in its own file?

24th June 2015
by code_gs Go to last post
2 116
Lua

Job help

Evertime i switch to the job, the job from the f4 menu disappears. any way to fix this?

24th June 2015
by spongys Go to last post
2 90
Love

Deriving from SWEP base that has tables underneath the SWEP table

Take a gander at the very beginning of my script: --]-- SWEP.Anathema = true -- Tables *DO NOT TOUCH* SWEP.Mode = { } SWEP.Mode.Ducking = { }

24th June 2015
by Willox Go to last post
2 151
Lua

solved Need Help with DarkRP Jobs.lua

Hello. I hope someone can help me here. All of the jobs I have coded are working perfectly fine, besides 2 I have tried to add last night. They do not create any errors, but do not appear on the server, not even if I try and set team. Here is an...

24th June 2015
by A2G Shaun Go to last post
0 77
Question

solved Using SWEP:AdjustMouseSensitivity()

Hello. So, for a sniper rifle SWEP I'm making, I've been trying to get SWEP:AdjustMouseSensitivity() to make the sensitivity lower when a player is scoping in with their weapon(code ahead), but I've had no luck. This is my current code for the whole SWEP:...

24th June 2015
by A Fghtr Pilot Go to last post
2 100
Lua

TTT spectator

The problem is that when a player is in Spectors, then watching the other player starts to pull him aside. How to fix it? probable error: gamemodes/terrortown/gamemode/player.lua:1369: Tried to use a NULL entit y! 1. Send - :-1 2. unknown -...

24th June 2015
by YourStalker Go to last post
1 96
Lua

solved Is there any way I can change a viewmodel's body group in a SWEP?

Title. I guess it depends on the base I was using - what bases support it? If it's a default command used on the default weapons base, which command would it be?

24th June 2015
by Shadico Go to last post
6 151
Help

Need help with a possible hacking

Now, I am using the most current basic ulx with my server. All I've added is a custom unstuck module. However, lately I've had unexplained crashes on the server. This is a log taken from yesterday: 23:43:47 "Mizu_Ren<154><STEAM_0:1:73884140><>" entered...

24th June 2015
by TpsTheHunter Go to last post
11 531
Lua

Optimizing props clientside and serverside

I'm looking for a way to spawn props that would be optimized and cause the least slowdown for: players that are looking at the props; the server (during spawning and after being spawned). The properties that the props should exhibit are the...

24th June 2015
by DevKin Go to last post
6 192
Question

DarkRP 2.5 Download

Does anyone have a DarkRP 2.5 release for download I really can't stand 2.6 with the new catagories and not being able to disable them. Also some addons from CoderHire that haven't been ported to ScriptFodder or any other website only have 2.5 support....

24th June 2015
by LoveBearGRRR Go to last post
5 190
Help

solved DarkRP F4 Menu not showing Shipments, Miscellaneous and Ammo

This is a recent problem that I think may have been caused by updating to DarkRP Version 2.6 I have ran this server for almost a year and all of my F4 Tabs have ran just fine but now the Shipments, Miscellaneous and Ammo tabs are not showing their...

24th June 2015
by btc1322 Go to last post
8 282
Help

solved Writing to/reading from files.

Hello! I have two scripts and I'd like some help debugging. If you just gave me the functional code, I could probably discern what you changed, though I would prefer if you could explain what was wrong with it instead. Thanks so much for any help! This...

24th June 2015
by B10H4Z4RD Go to last post
5 159
Help

solved GetGlobalBool not working since last update?

<snip> Realized it was some (nearly) 4 year old code which finally decided to break after the latest gmod update.

24th June 2015
by Remscar Go to last post
0 91
Question

solved Does anyone have the map sw_towers?

Hello. I'm creating a remake of the old Fretta gamemode Sniper Wars. But, I want the original map that was made for it, sw_towers. Does anyone have it?

24th June 2015
by A Fghtr Pilot Go to last post
2 79
Question

nil state for PData?

I try to set PData if it doesn't exist on player spawn like this: if !ply:GetPData("BoughtModels") then but it doesn't work and it messes up everything. so what's the nil state for a player's PData? can't test it myself since my account's PData has...

23rd June 2015
by AK to Spray Go to last post
4 157
Help

Gmod 13 fonts download

Hi everyone I Reinstalled gmod and lost some fonts i had I get this error on the console: Failed to load custom font file 'd:/program files (x86)/steam/steamapps/common/garrysmod/garrysmod/resource/fonts/28 days later.ttf' Failed to load custom font...

23rd June 2015
by erdemozor Go to last post
0 113
Lua

Need someone to lead in the right direction

I have look all over the internet but there I don't know where to start. I want to create a hud for darkrp can someone lead me to a good place to help me get started and i have a couple of questions if anyone know the answer it would help a lot. 1....

23rd June 2015
by Borris_Squad Go to last post
6 268