Title / Thread Starter Last Post ByReverse Sort Order Replies Views
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.

19th March 2015
by xgdg Go to last post
21 544
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?

19th March 2015
by VortexZ Go to last post
6 193
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...

19th March 2015
by Yuri6037 Go to last post
1 124
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?

19th March 2015
by vrej Go to last post
59 1,999
Help
 

solved Timer PointShop

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

19th March 2015
by godred2 Go to last post
0 118
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...

19th March 2015
by Yuri6037 Go to last post
2 107
Help
 

Damage

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

19th March 2015
by godred2 Go to last post
2 132
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!

19th March 2015
by smithy285 Go to last post
7 275
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.

19th March 2015
by Nick78111 Go to last post
3 149
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
19th March 2015
by zerf Go to last post
7 239
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);...

19th March 2015
by wh1t3rabbit Go to last post
2 122
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...

18th March 2015
by AIX-Who Go to last post
5 135
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

18th March 2015
by Hoodiecraft Go to last post
3 124
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...

18th March 2015
by xaviergmail Go to last post
14 564
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...

18th March 2015
by Jelman Go to last post
76 3,595
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 )

18th March 2015
by Acecool Go to last post
8 306
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?

18th March 2015
by JakusPL Go to last post
4 100
Stupid
 

When will it come..?

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

18th March 2015
by mcd1992 Go to last post
3 245
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...

18th March 2015
by Yuri6037 Go to last post
5 108
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);...

18th March 2015
by JakusPL Go to last post
0 80
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...

18th March 2015
by Yuri6037 Go to last post
5 191
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?

18th March 2015
by SteppuFIN Go to last post
5 144
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

18th March 2015
by McSniper12 Go to last post
180 9,161
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...

18th March 2015
by Acecool Go to last post
1 121
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...

18th March 2015
by Acecool Go to last post
5 164
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?

18th March 2015
by Acecool Go to last post
8 341
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?

18th March 2015
by Acecool Go to last post
1 113
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(...

18th March 2015
by Acecool Go to last post
1 150
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";

18th March 2015
by hanm13 Go to last post
13 437
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...

18th March 2015
by Yuri6037 Go to last post
2 113
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.

18th March 2015
by Acecool Go to last post
8 213
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
18th March 2015
by wh1t3rabbit Go to last post
7 142
Lua scripting
 

StunGun crash my server

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

18th March 2015
by Cannon12 Go to last post
3 255
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
18th March 2015
by huntingrifle Go to last post
2 148
Help
18th March 2015
by Jeezy Go to last post
1 106
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 -...

18th March 2015
by G4MB!T Go to last post
3 126
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...

18th March 2015
by SkitZz Go to last post
0 106
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...

18th March 2015
by wauterboi Go to last post
6 297
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...

18th March 2015
by Pixels_ Go to last post
4 136
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 =...

17th March 2015
by whitestar Go to last post
2 85
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...

17th March 2015
by Sm63 Go to last post
2 157
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 (...

17th March 2015
by zerf Go to last post
7 182
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 =...

17th March 2015
by Austin1346 Go to last post
1 81
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...

17th March 2015
by Hoodiecraft Go to last post
5 143
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...

17th March 2015
by Yashirmare Go to last post
2 130
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...

17th March 2015
by Joshawa Go to last post
0 85
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...

17th March 2015
by rotor2 Go to last post
9 487
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...

17th March 2015
by WildoW Go to last post
2 93
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...

17th March 2015
by r0uge Go to last post
5 267
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?

17th March 2015
by Robotboy655 Go to last post
1 79
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...

17th March 2015
by YesBacon Go to last post
10 325
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?

17th March 2015
by Borris_Squad Go to last post
10 287
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
17th March 2015
by F14 Go to last post
14 264
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 ...

17th March 2015
by r0uge Go to last post
9 264
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.

17th March 2015
by Robotboy655 Go to last post
2 101
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?

17th March 2015
by MauriceG93 Go to last post
6 141
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

17th March 2015
by KingCentKing Go to last post
2 128
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 :)

17th March 2015
by Invule Go to last post
10 246
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...

17th March 2015
by Smt Go to last post
9 248
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...

17th March 2015
by Willox Go to last post
6 190
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...

17th March 2015
by LunaLetsPlay Go to last post
0 108
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. ...

17th March 2015
by Th3applek1d Go to last post
8 253
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...

17th March 2015
by Yuri6037 Go to last post
5 166
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...

17th March 2015
by Acecool Go to last post
8 276
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...

17th March 2015
by thegrb93 Go to last post
4 137
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!

17th March 2015
by dylanr423 Go to last post
6 189
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...

17th March 2015
by TFA Go to last post
3 283
Lua scripting
 

solved Player meta-info not preserved with getPlayer()

I have a script that takes all players that deal damage, and assigns them a tag; function preTakeDmg(ply, att) att.hurt = true end hook.Add("PlayerShouldTakeDamage", "preTakeDamage", preTakeDmg) I also have a chat command that tells me...

17th March 2015
by Maurdekye Go to last post
11 374
Help
 

solved Multi-gamemode weapon compatability

I'm trying to make my weapon compatable with gamemodes other than TTT. So far, I am having little luck. I've tried something like this: if GetConVarString("gamemode") == "terrortown" then local gmslot = 6 else local gmslot = 2 end ...

17th March 2015
by Baron von Hax Go to last post
7 133
Help
 

[lua] DHTML crashes

The DHTML crashes gmod if it attempts to load a URL that does not exist. Not immediately but after a few seconds as it notices that the webpage doesn't exist. Is there any way of checking if its a valid URL or a workaround?

Uke
16th March 2015
by Hoodiecraft Go to last post
8 263
Help
 

solved Put All Team Players Into DComboBox This thread has images

Hey, I'm wondering how I would get all alive players of a certain team, and then list them into a DComboBox. Thanks in advance.

16th March 2015
by MylesTM Go to last post
2 107
Request
 

Teamspeak 3

Does anyone know a way of connecting to a TS3 server and joining a channel? I'd like to be able to feed back the audio to my players, and allow them to send audio out to the channel too.

16th March 2015
by Tomelyr Go to last post
2 219
Help
 

solved Simple NPC with Text over head

It's been a long while since I've done much coding in Lua and I've run into a problem I believe I have solved before, but I cannot remember the solution. Basically I have taken the example NPC from the old GMod wiki and have attempted to draw the NPC's...

16th March 2015
by Cep. Go to last post
0 107
Help
 

solved Need help editing a gamemode, HorrorStory

I need a bit of help getting a custom gamemode to work, based on HorrorStory. What I did was hack a few things from HorrorStory and Murder, and I'm trying to get it to work. What I need is the Q menu to work, can not use flashlight except for the...

16th March 2015
by AnonTakesOver Go to last post
6 256
Help
 

My gamemode doesnt show in GMOD (HELP!)

ok so i decided to learn lua gamemode creation and i got started on a gamemode and want to test it. however when i launch gmod and click the gamemodes dropdown my gamemode is not in the list. i followed the tutorial and the person i watched has his...

16th March 2015
by Acecool Go to last post
5 166
Help
 

solved GetGlobalInt not working!

Hey, I'm trying to set a global int from the server and get it from the client, but it doesn't seem to be working for the client - it prints the default value (which is set to -1) when it should be printing a 1 or a 2. local Preparing = function() ...

16th March 2015
by r0uge Go to last post
0 102
Help
 

DPanel : unable to set color on dynamic text

When I do : HUD.name = HUD:Add("DLabel") HUD.name:SetPos(180,40) HUD.name:SetSize(200, 30) HUD.name:SetTextColor(Color(180, 180, 180)) HUD.name:SetFont("HUD_name") function HUD.name:Think() if !IsValid(LocalPlayer()) then return end if...

16th March 2015
by Robotboy655 Go to last post
3 145
Help
 

solved Weird prop collision

I'm attempting to spawn entities into my server on start up using the code: local spawnPosD = {} spawnPosD = { {Vector(-1901.000000, 172.218750, -124.187500), Angle(0.000, 90.000, 0.000)}, {Vector(-1430.406250, -7157.531250, -141.250000),...

16th March 2015
by imMrAnarchy Go to last post
7 171
QUESTION
 

MySQLOO Problems.

Hey guys. I'm trying to get mysqloo working with this gamemode, but I can't find a way to make these queries actually...well...query. I know mysqloo is working because I made a function in init.lua that created the required tables and columns, but the...

16th March 2015
by Herover Go to last post
4 279
Help
 

solved Dlabel / setfont / applyschemesettings

What the actual hell, i thought this was broken because of the previous update and today the hotfix should have fixed it, but no its still broken. i've rolled back to see if it was my stupidity but it doesn't seem like it, they are still broken to shit. ...

16th March 2015
by Noobularkid Go to last post
8 148