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

Are NWVars unstable?

I heard that with the new GMod update NWVars became unstable. I also heard that the hotfix last Monday was supposed to fix the issues. My server was stable for 2 days after the hot fix but has now gone back to crashing a lot. I haven't added anything new...

4 Weeks Ago
by imMrAnarchy Go to last post
2 233
Help
4 Weeks Ago
by imMrAnarchy Go to last post
8 220
Lua scripting
 

Can't gravity gun entity

So I have this entity and I can't gravity gun it here's the ENT:Initialize() code for ya: function ENT:Initialize() self:SetModel("models/props_c17/furnitureStove001a.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS)...

4 Weeks Ago
by _Divine Go to last post
5 141
Help
4 Weeks Ago
by ph:lxyz Go to last post
6 212
Map
 

rp_evocity_v33x door problem.

I'm having some problems with the map rp_evocity_v33x on my server, on some doors in the map I can literally walk straight through them without opening them.

4 Weeks Ago
by Borris_Squad Go to last post
4 219
Lua scripting
 

RunString and SWEP errors

RunString:1: '=' expected near 'puush' unknown - RunString:0 SWEP:SetWeaponHoldType - ActIndex isn't set! (defaulting to normal) -- This one spamming my console

4 Weeks Ago
by _Divine Go to last post
6 490
Lua scripting
 

My Hud Is Messed up please help!

Hey I have a hud that i made but when i change my dimensions it messes up the hud heres the code function hud() local DrawHealth = LocalPlayer():Health() or 0 local DrawArmor = LocalPlayer():Armor() or 0 local ply = LocalPlayer() local x = ScrH()...

4 Weeks Ago
by XxskaterxX100 Go to last post
0 90
Help
 

Entity acting wierd?

local wep = ents.Create( "item_gun" ) wep:Setwepclass(w_class) wep:Setwepname(w_name) wep:SetOwner(ply) wep:SetModel(w_model) wep:SetPrice(price) wep:SetTitle(title) wep:SetPos(Vector(ply:GetPos().x+10,ply:GetPos().y,ply:GetPos().z))...

4 Weeks Ago
by Robotboy655 Go to last post
4 108
Lua scripting
 

Display serverside variables on clientside

I have this DLabel and I want the text to be self.propane, self.propane is a variable in the serverside file. How would I make it work?

4 Weeks Ago
by Robotboy655 Go to last post
4 168
Lua scripting
 

ULX Commands Use

Hello, I was wondering if there was a way where whenever you type a command such as "!ban lemon", it disappears and does the action? Thank you.

4 Weeks Ago
by Stickly Man! Go to last post
5 208
Help
 

solved DarkRP.createMoneyBag This thread has images

so my printer has this function DarkRP.createMoneyBag(Vector(MoneyPos.x 0, MoneyPos.y -1, MoneyPos.z -0), amount) .. i was wondering how can i make it so instead of spawning the moneybag behind printer , how can i make it so it just spawns ifront of it...

4 Weeks Ago
by frozendragon Go to last post
6 113
Lua scripting
 

resource.AddFile Help

Hey guys, Jelly Pancake here asking some help with my server. I was recently playing on my server and one of my moderators mentioned I had a gigantic ERROR on me. I told them I was using the jihad bomb swep. Then I asked some other people and they...

4 Weeks Ago
by Acecool Go to last post
5 197
Lua scripting
 

Can anyone help? I want to make bolt-shooting SWEP.

Hello, i want to make SWER that shoot crossbow bolts. Name of entity is crossbow_bolt. Can anyone give me function to the SWEP? 13th March 2015 I don't have much time. Please help.

4 Weeks Ago
by xgdg Go to last post
21 530
Lua scripting
 

Entity drawing

Excuse me, if I have an entity I am making for example a health charger, how can I add a vgui button onto it? Do I just use the DButton or do I use some other code to check if the crosshair is facing that element? If so could you please help me out?

4 Weeks Ago
by VortexZ Go to last post
6 181
Help
 

solved Entity:SetSequence not working !

Hello all, So now because I made a better base for my usable NPCs, I can no longer use the base_ai and ai types of entity. I must use the base_entity and anim type to make my NPCs. So I succeeded to render the models for these npcs. However I can't...

4 Weeks Ago
by Yuri6037 Go to last post
1 115
QUESTION
 

Gmod on Source 2? ( 2 Last )

Hey just wondering if anyone knew what would happen to Garry's Mod after source 2 is released? Will it be ported over and changed to gmod 15? Would the player slot max go up since source 2 will utilise the cores of a cpu more?

4 Weeks Ago
by vrej Go to last post
59 1,942
Help
 

solved Timer PointShop

How to make the timer for the Equip/Holster buttons? PointShop by _Undefined. http://facepunch.com/showthread.php? t=1286577

4 Weeks Ago
by godred2 Go to last post
0 108
Help
 

solved Scripted NPC issue !?

Hello all, I have a big problem with scripted NPCs. The instance of this NPC is broken client side !! On server side you can add functions to the entity class, but client side when you add functions, they are not accessible when calling them by...

4 Weeks Ago
by Yuri6037 Go to last post
2 103
Help
 

Damage

How to increase a damage of all weapon by 20% upon purchase: function ITEM:OnBuy(ply) --this script-- end

4 Weeks Ago
by godred2 Go to last post
2 126
Lua scripting
 

Infinite Ammo Script?

Hey guys! I was looking for a script for deathrun for infinite ammo, Deathrun has a default inf ammo but it dosent work for HL2 Weapons! Please help me with an infinite ammo script and where to place it! Thanks!

4 Weeks Ago
by smithy285 Go to last post
7 272
Help
 

Is it possible to only allow admins to spawn certian things instead of changing it back and forth in menu?

I want to know if it's possible for an admin to spawn a ragdoll without having to go to the menu and change it to one.

4 Weeks Ago
by Nick78111 Go to last post
3 144
Help
 

BHOP Script Error

I am trying to learn Lua by making fun scripts that are simple, but here I am stuck. I get this error: lua/autorun/bhop.lua:5: 'end' expected (to close 'function' at line 3) near 'else' 1. unknown - lua/autorun/bhop.lua:0 I know it means it...

F14
4 Weeks Ago
by zerf Go to last post
7 231
Lua scripting
 

SWep: apc_missile problem.

Hi, I scripted it: if !IsValid(self.rocket) then return end for k, v in pairs(ents.FindInSphere(self.rocket:GetPos(), 10)) do if (v:GetClass() == "npc_gunship" || "npc_strider" || "npc_helicopter") then self.rocket:SetHealth(0);...

4 Weeks Ago
by wh1t3rabbit Go to last post
2 119
Help
 

Save

Hello everyone! I'm working on something and I'm having a bit of trouble with SQL. Basically, I want the player to be able to change the color of a chatbox to their liking. I have this working, but I need it to stay as the user set it when they leave...

4 Weeks Ago
by AIX-Who Go to last post
5 130
QUESTION
 

solved Anyone know what this is?? This thread has images

Working on some things in gmod wondering what this speech bubble is( entity wise )/how to make it :D

4 Weeks Ago
by Hoodiecraft Go to last post
3 115
QUESTION
 

Best MySQL Library?

I am currently using mysqloo for my MySQL needs. I don't know of any other libraries that add the ability to integrate MySQL, but are there others? I find mysqloo a bit... I don't know the word... clumsy? What extensions/modules/addons/libraries would...

4 Weeks Ago
by xaviergmail Go to last post
14 558
Release
 
Dumb x 31

ScriptBuckit ( 2 Last ) This thread has images

We apologise in advance for this being our first post under this account. However, We would like to introduce to you 'ScriptBuckit', A multi-platform games content marketplace. ScriptBuckit allows Developers to make their own customised content...

4 Weeks Ago
by Jelman Go to last post
76 3,530
QUESTION
 

Weird bug with concommands

Hello, Look at this simple code: local function testcc( ply, cmd, args ) print( SERVER and "sv" or "cl" ) end concommand.Add( "testcc", testcc )

4 Weeks Ago
by Acecool Go to last post
8 298
Lua scripting
 

SWep: Disabling impact decal

Hi, I want to disable the hit decal created when shooting a swep. Is there any event for this or something?

4 Weeks Ago
by JakusPL Go to last post
4 96
Stupid
 

When will it come..?

I wanted to know, when more support/nextbot functions will come for player.CreateNextBot()? They'd be interresting.

4 Weeks Ago
by mcd1992 Go to last post
3 238
Help
 

solved constraint.Weld does not work in most cases !

Hello all, So again, I'm still on trying to attach a prop the the player's hand, however I can't arrive to weld it ! The function constraint.Weld does not work in most cases. It works only on ragdolls. When I try to weld a prop to the player it's...

4 Weeks Ago
by Yuri6037 Go to last post
5 106
Lua scripting
 

SWep: Rocket auto aiming system help

Hi, I want to implement a auto aiming system to my secondary fire missile. Here is the piece of code: SWEP:Think() ... for k, v in pairs(ents.FindInSphere(self.rocket:GetPos(), 300)) do if v:IsNpc() || IsPlayer() then self.rocket:SetHealth(0);...

4 Weeks Ago
by JakusPL Go to last post
0 76
Lua scripting
 

HUD not consistant This thread has images

Hey, I made my first Gmod HUD, and it looks pretty nice. I was ready to publish it, but I decided to throw it on my other computer. When I launched up the game mode, the HUD was completely screwed up and nothing was in the same place like on the other...

4 Weeks Ago
by Yuri6037 Go to last post
5 187
Help
 

solved In opened derma, allow pressing F2?

The title says it. I open derma with F2, and i made system to close it with F2, but buttons doesnt work when derma is opened?

4 Weeks Ago
by SteppuFIN Go to last post
5 141
Release
 
Dumb x 41

Coderflow - A Garry's Mod Script Marketplace ( 2 3 4 5 Last ) This thread has images

Coderflow is a marketplace for Garry's Mod Scripts. http://coderflow.co.uk/ Features: - Free Scripts - Free Developer - Script reviews - Script version system - Support ticket system - Script DLC

4 Weeks Ago
by McSniper12 Go to last post
180 9,105
Help
 

TTT's AddColumn gives a nil value

In short, I am trying to create an mysql-based EXP system for TTT. Everything else is set and working, but I'm encountering an issue where it is not able to display any of the information as "AddColumn" apparently is a nil value. I have absolutely no idea...

4 Weeks Ago
by Acecool Go to last post
1 115
Help
 

Force pickup weapon

I need function for force pickup weapon. pl:GetSaveTable().m_hMyWeapons just return the last pickuped weapon (Entity), but in C it is list. Changing this value will lead to bizarre consequences. How I can get access to methods of entities in Visual...

4 Weeks Ago
by Acecool Go to last post
5 152
QUESTION
 

Garry's Mod Gamemodes and Copyrights.

So what is the deal with copyrights on Garry's Mod? Do they actually exist because to my understanding at some point Garry has said you couldn't copyright a gamemode?

4 Weeks Ago
by Acecool Go to last post
8 331
Help
 

World/Brushes Materials

SetMaterial and SetSubMaterial do not work with World and Brushes entities :C And too many functions do not work with World, like SetNoDraw. Is there any solution for make place other texture on brush/World?

4 Weeks Ago
by Acecool Go to last post
1 110
Lua scripting
 

sending ragdoll entindex and using darkrp CalcView

Hi, I have this client side: net.Receive( "plyRagdoll", function( len ) LocalPlayer().ragdoll = Entity( net.ReadFloat() ); end ); and this server side after a ragdoll entity has been created: net.Start( "plyRagdoll" ); net.WriteFloat(...

4 Weeks Ago
by Acecool Go to last post
1 143
Lua scripting
 

Spark effect to stun stick This thread has images

Hey developers I searched in google and lua fucntion and I'm realy did not find how to add spark effect to the stun stick weapon. The stun stuck code is AddCSLuaFile(); SWEP.Base = "weapon_cc_base"; SWEP.PrintName = "Stunbaton";

4 Weeks Ago
by hanm13 Go to last post
13 419
Help
 

solved Find local position of right/left player hand

Hello all, So this topic is in extension of the previous one about attaching an entity to player hand. So I decided to try the weld system, because weld supports bone indexes. But to weld the custom suitcase entity to the player hand, I need the...

4 Weeks Ago
by Yuri6037 Go to last post
2 110
QUESTION
 

solved Time based settings, is what i want to do even possible?

- snip - Its possible, deleting to keep the idea to myself. Thanks for the help everyone.

4 Weeks Ago
by Acecool Go to last post
8 211
Help
 

Screenspace RenderTarget Overlay This thread has images

I don't quite understand how rendertargets work. local rt1 = GetRenderTarget("construct_rt1", ScrW(), ScrH()) local mat1 = CreateMaterial("construct_mat1", "gmodscreenspace", { = rt1}) local oldw,oldh, oldrt = ScrW(), ScrH(),...

Ott
4 Weeks Ago
by wh1t3rabbit Go to last post
7 137
Lua scripting
 

StunGun crash my server

When you randomly hit a player from stungun server may be crash. How can I fix this?

4 Weeks Ago
by Cannon12 Go to last post
3 244
Help
 

How do I use bodygroups in c_hands? This thread has images

I've got this in my QC for the hands: $bodygroup "Hands"{ studio "Breen_Hands_Ring.smd" studio "Breen_Hands.smd" studio "Hands_Ring.smd" studio "Hands.smd" }

TFA
4 Weeks Ago
by huntingrifle Go to last post
2 140
Help
4 Weeks Ago
by Jeezy Go to last post
1 100
Help
 

Lua Help Please

So I am getting this error in my code: Timer Failed! addons/newnewscoutserver/lua/scoutserver/main/cl_variables.lua:12: Calling net.Start with unpooled message name http://goo.gl/qcx0y] 1. Start - :-1 2. unknown -...

4 Weeks Ago
by G4MB!T Go to last post
3 119
Lua scripting
 

solved Slide a bunch of DImages horizontally?

So I'm basically trying to make this CS:GO case opener kinda thing, except it's with pointshop items instead. My question is, how would i make a row of pictures move horizontally with equal distance to each other? I tried looking at different slot...

4 Weeks Ago
by SkitZz Go to last post
0 103
Lua scripting
 

Make Scout Run

Hello. So, I've managed to make a ragdoll walk by means of constraining its bones to a NPC's bones, like following its animation cycle(s). But not all models have an NPC script where I can call on certain actions (enumerations). I'm now looking to do...

4 Weeks Ago
by wauterboi Go to last post
6 292
Help
 

Need Big Time Help Finding Error in Code This thread has images

I am trying to program a column in the scoreboard for Gmod TTT that displays rank and rank color of the person. I am also trying to program, so the name colors of admins, owners, etc. have there steam name change color as well. I thought I was done, but...

4 Weeks Ago
by Pixels_ Go to last post
4 126
Lua scripting
 

solved Kickallbots function wont work.

Hello, I tried today to use the player.CreateNextBot() function, which inserts the bot into a table, and also created a command to kick all bots using a for loop, code: local bots = {} concommand.Add("blah_bot",function(ply) local b =...

4 Weeks Ago
by whitestar Go to last post
2 80
Help
 

Half life 2 smg on garry's mod and increase combine soldier accuracy.

The smg in garry's mod that you get when you spawn is really weak now. It used to have strong/decent power before the update about the shotgun strength. It took about 1 and 1/2 clips of the smg to kill a combine soldier and a zombie. Headshots on combine...

4 Weeks Ago
by Sm63 Go to last post
2 152
Help
 

Custom Fonts in Gamemode This thread has images

I'm currently making a gamemode( name to be decided ). In said gamemode there are 2 fonts I mainly use, both fonts are not default to the windows, mac, or linux based as far as I know. Now they work on my side( obviously ) but for the others they don't (...

4 Weeks Ago
by zerf Go to last post
7 166
Lua scripting
 

solved Why do I keep spawning on the terrorist spawn point with this snippet?

function GM:PlayerSelectSpawn( ply ) local TEAM_BLUE = 1 local TEAM_RED = 2 local TEAM_SPEC = 3 local blue = ents.FindByClass( "info_player_counterterrorist" ) local red = ents.FindByClass( "info_player_terrorist" ) local spec =...

4 Weeks Ago
by Austin1346 Go to last post
1 79
Help
 

solved [HELP] - Couldn't include file 'sh_vitals.lua' (File not found)

Don't know why at all but the file "cant be found" It runs initially i know that, but then it just stops. From what I've read this happens when there is a error in the code and the server doesn't know what to do with it. I can't find said error, I can't...

4 Weeks Ago
by Hoodiecraft Go to last post
5 139
Help
 

solved SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defaulting to normal)

This keeps happening at random after yesterday's update, anyone got any ideas as to why? "SWEP:SetWeaponHoldType - ActIndex isn't set! (defaulting to normal)" Basically results in the players walking about with their guns by their sides. This is...

4 Weeks Ago
by Yashirmare Go to last post
2 112
Help
 

Darkrpmod not working?

Hey guys, so I'm working on making a custom darkrp server, and I tried making a custom job in the darkrpmod folder but it doesnt show up on server. I know the code works because I put it into the darkrp gamemode folder just to make sure, and it works...

4 Weeks Ago
by Joshawa Go to last post
0 84
Lua scripting
 

solved Help me get a better understanding of lua items such as "functions", "variables", "hooks", etc.

I have been dabbling in lua coding for a few weeks now, I've watched plenty of online tutorials, and followed several youtube gamemode projects. However, I still get the feeling that I don't have a full grasp on what everything actual means. Sure, I...

4 Weeks Ago
by rotor2 Go to last post
9 477
Lua scripting
 

solved Setting player model back to default

hey, im wondering how id beable to set someones player model and then after a certain amount of time set it back to what they had before without interfering with the darkrp models so when you change job it goes back to the jobs model heres what ive got...

4 Weeks Ago
by WildoW Go to last post
2 88
Help
 

solved Help with Countdown GUI (possibly using delta timer)

Hey, I would like to make my GUI show a countdown for the "INNOCENTS HAVE UNTIL 4:00 TO HIDE" instead of just a set string - i.e. "INNOCENTS HAVE " .. time_left .. " LEFT TO HIDE". However, I don't know how to do this. Could anyone help me? Here is the...

4 Weeks Ago
by r0uge Go to last post
5 254
Help
 

Make a derma menu show without context menu

For example the vote menu in DarkRP. How does one make sure that the derma menu can be brought up but without disturbing the player with the mouse?

4 Weeks Ago
by Robotboy655 Go to last post
1 73
Help
 

solved Lag / Rubberbanding?

I'm not sure what to call this, but when I'm bhopping on my deathrun server and turn quite sharply or change directions, this happens: Notes: - I'm getting ~100 ping - Tickrate is 100 - I get about 350fps when playing without recording and...

4 Weeks Ago
by YesBacon Go to last post
10 317
Lua scripting
 

DarkRP Hud ScrH() And ScrW() Help This thread has images

I really dont under stand Screen width and or hight when making my hud for my darkrp server, can so one please explain in way which any one could under stand?

4 Weeks Ago
by Borris_Squad Go to last post
10 276
Help
 

Disabling Sprint

I have a deathrun server and I was wondering how do I disable sprint? Code from gamemode/init.lua: function GM:PlayerSpawn( ply ) ply._HasPressedKey = false if ply:Team() == TEAM_SPECTATOR then ply:Spectate(OBS_MODE_ROAMING)

F14
4 Weeks Ago
by F14 Go to last post
14 256
Lua scripting
 

solved GlobalInt not syncing between server and client

local Preparing = function() local fun_round_num if SERVER then SetGlobalInt("fun_round_num", math.random(#funrounds)) fun_round_num = GetGlobalInt("fun_round_num",-1) print(fun_round_num) end ...

4 Weeks Ago
by r0uge Go to last post
9 260
Help
 

Where is Airboat gun texture???

Hi, I want to change Airboat gun prop (effect) texture but I cant find it. Give me a directory please.

4 Weeks Ago
by Robotboy655 Go to last post
2 98
Help
 

Detect stopsound to re-enable CSoundPatch:Play()

Hello, on my server i am running a stopsound cmd on all clients every 5 minutes. Now the problem is i have some entities which require sounds. So basically i want to restart the sound after stopsound got called. Is there any way to do it?

4 Weeks Ago
by MauriceG93 Go to last post
6 140
Lua scripting
 

solved SetSubMaterial on weapon (world model)

How can I get the weapon of a player as entity? (w_model) I want to be able to use SetSubMaterial() on the model. GetActiveWeapon() did not work. :/ Thanks in advance

4 Weeks Ago
by KingCentKing Go to last post
2 120
Lua scripting
 

VIP Tags

Hi :) On some server, I see alot of flashing/changing/whatever color for the VIP. It's like but it keep changing color. Sorry for my bad english, I speak more french. Thank you guys :)

4 Weeks Ago
by Invule Go to last post
10 238
Help
 

DarkRP server error. Cant join.

Dear people out there i got a problem with my darkrp server... When i try to connect to the server i get "Connection failed after 4 retries" But i can join other servers. My server has TCAdmin. Here is the web console log: Fetching Workshop...

4 Weeks Ago
by Smt Go to last post
9 244
QUESTION
 

Best way to publish addons?

I've been using the Gmod publishing utility to publish my addons, and it's definitely better than working with gmad and gpublish directly. However, it's got a lot of idiosyncrasies that make it tedious and sometimes annoying to use. For example, I have to...

4 Weeks Ago
by Willox Go to last post
6 179
Help
 

Custom ammunition

Hi, I seem to be facing quite a conundrum with my custom ammunition types I am creating. I am utilizing FAS:2 as my ammunition reference, and most of the ammo I have scripted in does work, but a select few do not. I will post a few excerpts from my...

4 Weeks Ago
by LunaLetsPlay Go to last post
0 103
Help
 

Help With Msql

So i make this new server and im getting errors in console and everything is installed correct just... im pretty sure its mysql as the dev of the gamemode says The MySQL has been disabled (mostly commented out) you will have to re add it yourself. ...

4 Weeks Ago
by Th3applek1d Go to last post
8 250
QUESTION
 

solved Attach prop to player hand !

Hello all, I have some questions about this title : - Is it possible to attach a prop_physics to the player hand like the GMan with his suitcase ? - If it's possible how should I make it ? - If using weld is possible, what is the bone index of...

4 Weeks Ago
by Yuri6037 Go to last post
5 162
Work In Progress
 

GMod [(VG)UI || Visual] Design - What are you working on? V2 - dark lines under everything ( 2 3 4 5 6 7 8 9 Last ) This thread has images

V1 - gmod design - What are you working on ~art is inclusive WAYWO is getting clogged up with the same designs, so it's time to bring this back. Use this thread to talk about, ask questions about, or post your visual designs in gmod. It can be a HUD,...

4 Weeks Ago
by Smt Go to last post
326 19,703
Help
 

solved Problem with sqlite to mysql pointshop converters

I've tried 3 different methods now, but I've gotten nothing. Well, not quite nothing, but definitely not what's needed. I am trying to convert my server's sv.db to output a convert.sql file or whatever you would like to name it, with each row ready to be...

4 Weeks Ago
by Acecool Go to last post
8 270
QUESTION
 

Bug? Can't remove no collide constraints. Pretty sure it has been this way a long time.

The no collide tool reloading lies. Once you no collide prop A to prop B, the no collision constraint can never be undone as far as I'm aware. Is this because of a Source collision group limitation, or Gmod, or what? Would appreciate a fix sometime, and...

4 Weeks Ago
by thegrb93 Go to last post
4 132
Lua scripting
 

Auto Bhop Script?

Hey guys! I have just recently made a new deathrun server. Since I am using blackvoid version for a certain addon it dosent include auto bhop. Can someone help me and/or make me a script for auto bhop on my server? Thanks!

4 Weeks Ago
by dylanr423 Go to last post
6 176
Help
 

Weird Viewmodels Hands This thread has images

Since this is my first post here, be friendly towards me. Hello Facepunch community. I have one problem with my hands which my CSS to GMod knife port was successful but the hands(depending on a playermodel) were looking weird after I deleted the...

4 Weeks Ago
by TFA Go to last post
3 277