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

How do I implement wiremod into an addon?

Okay so let's say I have a radio addon, and I want to add a wiremod input (url string, play value etc) to it, how would I do that? I can't seem to find any guides anywhere. Would really appreciate it.

26th January 2015
by mcd1992 Go to last post
1 138
Request

Syncing hud with all player displays?

How do I do this I know I use ScrH somehow.? Complete noob with any interface items. If you need more explaination the text etc is different on everyone's screen

26th January 2015
by Acecool Go to last post
15 407
Question

Can you use stencils on the player model?

Can you use stencils on the player model? I am trying to see if I can make a model cut out a portion of the player model. If this can not be done it be awesome if this could be implemented into the next update.

26th January 2015
by bitches Go to last post
4 137
Help

solved Make FastDL Faster ?

Hi, Does anyone know if there are some settings you can tweak to make FastDL Faster ? Right now we have a server running with FastDL which have bandwidth: 150/100 mbit/s it seems weird that downloading a file that is 197 kbytes should take about 10...

26th January 2015
by spreadkiller Go to last post
9 244
Help

Is it bad to use surface.CreateFont inside HUDPaint?

Surely some of you will want to punch me in the face after reading the title, but hear me out and tell me what I'm doing wrong. Take a look at how the default ammo and health boxes look in gmod. I took the liberty of finding a random video to show...

26th January 2015
by Acecool Go to last post
7 265
Lua

Cross Hair Location

Down below is the disgusting cross-hair for my gamemode where is the deafault GM:DrawCrosshair for the Base gamemode? function GM:DrawCrosshair() local trace = LocalPlayer():GetEyeTraceNoCursor().HitPos or vector_origin; deltaPos =...

26th January 2015
by gmanc2 Go to last post
7 278
Help

solved Adding a new text line?

I was wondering how to insert a \n (new line) into a text when its off screen. I managed to detect when its off screen with the help of a good friend but what should I place in the "if" function? I'm trying to make it add a new line where the text is...

26th January 2015
by [CLRP]extra Go to last post
9 172
Science

TraceData appears where it shouldn't

for k, v in next, ents.GetAll() do if not v.IsValid then print(type(v)) end end > table print debug.getinfo(ents.GetAll).source > =

26th January 2015
by DannyCore Go to last post
5 502
Help

Matrices and net library receiving corruped or don't receive packets !?

Hello all, You know, i'm trying to send a client screenshot to the server, then after resend it to another client to be able to display it after all. But during the transfer from the client file to the server file, most of the kilobytes dissapears in...

26th January 2015
by Yuri6037 Go to last post
3 152
Help

WAC Vehicle Spawning

Would I somehow be able to make the WAC aircraft addon spawnable in a vehicle dealer? I have tried using the entity but it doesnt work. Would I have to somehow make it a vehicle?

26th January 2015
by MattJeanes Go to last post
6 235
Question

Hiding a map via console command?

Is there a way to hid the map using console commands while in game, eg; you're in sandbox mode, you can still see the sky box, but the rest of the map is hidden as if the texture's been turned off.

26th January 2015
by YourStalker Go to last post
7 240
Lua

Dropping physgun makes its glowing super bright

Hi! I just made a script to drop weapon on death, very basic script so far, but I have a bug with the physgun. For each dropped physgun on the ground, its glowing sprite (blue glowing light by default) is stacked on the player view instead of the...

26th January 2015
by Kazaam Go to last post
2 152
Help

Texture from render.Capture

Hello, I'd like to to create a texture that I can bind using surface or draw from render.Capture, is this possible ? The basic idea is to take a client snapshot, then send it to another client using net messages. The problem for me isn't send, but...

26th January 2015
by Yuri6037 Go to last post
11 522
Lua

Possible to Override ply:IsAdmin?

Hey, I'm trying to get fpp to work with evolve admin mod, and realised that if I could over ride ply:IsAdmin this would be achievable. Can I check before I do it that a, it's possible and b, it's the best way to do this? Thanks, Feel freee to share...

26th January 2015
by Pantho Go to last post
4 181
Help

Trouble getting FireAnimationEvent to work for anything other than source weapons

I'm trying to add a custom muzzleflash effect to a SWEP using WEAPON:FireAnimationEvent but when I try to force it on anything other than source weapons, it refuses to override the current muzzleflash effect. I have tried the Source Dev wiki, but I can't...

26th January 2015
by -FrozenFire- Go to last post
0 103
Stupid

Need help with making one file overwrite/have higher priority than another.

I'm very new to modding Garry's Mod, and I have a question. I know how to make custom weapons (Specifically, for TTT) already, but there's something I need help on. I don't know how to replace a weapon that already exists. For example, if I modify...

26th January 2015
by xaviergmail Go to last post
1 121
Help

Object was NULL or not of the right type

I'm trying to create a addon for DarkRP, when I attempt to set the model of my money SENT, it produces this error, and will not show up on the screen. elseif(self:Getamount() > 1000000) then ...

26th January 2015
by GGG KILLER Go to last post
4 247
Lua

Am I crazy or is this a bug

local t1 = '{"state":0}' local t = util.TableToJSON({state=0}) if t1 ~= t then print('_'..t..'_'..t1..'_') end Why are those two strings not equal? And why doesn't util.JSONToTable(t1) work? It returns nil for some reason. The code above prints this...

26th January 2015
by zerf Go to last post
2 154
Lua

DynamicLight in DModelPanel

Title says it all. I tried overriding the DModelPanel.DrawModel function, but I don't follow where to put the DynamicLight. Setting its .Pos only places it in the world, not the panel. CDModelViewer.DrawModel = function(self) local curparent =...

25th January 2015
by Robotboy655 Go to last post
1 101
Question

solved Max Workshop Filesize?

I saw a thread on steam forums saying it was 200MB but looking in my addons folder I have a 370.917MB gma.

25th January 2015
by Jeffreysmall Go to last post
10 434
Lua

solved Enable input for all derma when holding C

Hi all, As the title said, how can I get this done? i stumbled for hours with every thing I could imagine, but no progress. I just want that when I hold C and I can rightclick on items in the world to get the context menu, I still want to use the...

25th January 2015
by Darrell Go to last post
2 86
Lua

solved Problem with file functions

XM = {} local snip = string.Trim // Localize trim function local byte = string.byte // Localize byte function local swap = string.reverse local function lobyte(a) // returns the low byte of a byte local rx = string.format("%X",a) ...

25th January 2015
by Freezebug Go to last post
5 149
Lua

Flickering surface.DrawTexturedRect

Using this draws the rectangle as expected, but the texture is very inconsistent. It flickers between blackness and the texture, often half of each. Is this a problem with the material file I'm using, or a known issue? local mat =...

25th January 2015
by RealDope Go to last post
5 189
Help

solved TTT Pointshop Jump Pack

How do you edit the jump pack to where when you fall you fall slowly and take reduced fall dmg also edit gravity setting I can't figure it out in Jumppack.lua there is like nothing... ITEM.Name = 'Jump Pack' ITEM.Price = 1000 ITEM.Model =...

25th January 2015
by C.Finley Go to last post
2 187
Question

Software for VGUI creation?

I remember using a piece of software to create derma GUI. It had a visual interface and outputted code to add to your code. Does this still exist?

25th January 2015
by dingusnin Go to last post
4 263
Lua

2D RenderView

I'm trying to make a minmap with RenderView, and I want it to be entirely top-down 2 dimensional instead of appearing 3D from the origin of the RenderView. Can I accomplish this using RenderViews? And if not, how else?

25th January 2015
by RealDope Go to last post
16 549
Question

Stop SWEP from being ammo on pickup.

I'm sure this is a pretty simple fix but after trawling through the wiki and somehow missing it, I have come to ask: How do I stop a SWEP from being picked up as ammo when I already possess the weapon? So if I have an SMG, I won't delete random SMGs on...

25th January 2015
by Newjorciks Go to last post
1 92
Help

solved Placing of HUDs

Hey everyone. So instead of using regular numbers for sizing HUD elements, I use ScrW and ScrH. But what should I use for relative placement of HUD elements? To place something in the top right corner, I use coordinates (0,0) but what if I want it...

25th January 2015
by Fillipuster Go to last post
4 112
Lua

OOC darkrp color

Hi all, I want to do so that would be when you say , then chatting brackets were white, and OOC was green. What am I doing wrong . I have everything in darkrp\gamemode\modules\chat\sv_chatcommands.lua local function OOC(ply, args) if not...

25th January 2015
by ms333 Go to last post
1 145
Help

GMod Server: FastDL or WorkshopDL?

I've been having troubles figuring out which would be faster, to allow players to join my server faster. I'm currently using FastDL. I have noticed players leaving before they are loaded in so I assumed it was due to the download speed. Any help would be...

25th January 2015
by Yuri6037 Go to last post
14 1,039
Lua

solved Custom Escape Menu.

Hey. I saw alot of people making custom escape menu and I was just wondering how you call it. I guess you could use input get key down or somthing, but I assume there is a better way. ~ Thanks in advance!

25th January 2015
by StonedPenguin Go to last post
2 220
Lua

Help With a Hook Swing

I want to make a swep somewhat like a grappling hook and figured I'd ask the vets here where I should start. Is it even possible to create a rope constraint between the player and the material they are aiming at? Because that's essentially what I need. A...

24th January 2015
by HarmlesKitten Go to last post
4 190
Question

Derma Spam

Hello, Currently in the midst of making a SENT. The main issue is this though: When I hit "E" on the entity and it's activated I'm using a usermessage hook to call it. The derma menu comes up but it spams open like 5-6 of them. I have no clue why. ...

24th January 2015
by Triage Go to last post
2 151
Help

Database

So, my Database is broken as hell. I am new to coding Lua, so its hard for me. I was wanting to know if someone could give me their databases code so I can learn. I will also post my code, and if you could just comment the parts I need to change that...

24th January 2015
by Apple_Bloom Go to last post
1 187
Lua

solved What do the orange or blue colors mean on the wiki?

Entity:EmitSound Entity:EmitSound( string soundName, number soundLevel=75, number pitchPercent=100, number volume=1, number channel=CHAN_AUTO) What do the orange/blue or mixed squares mean? I'm guessing either it's compatibility for clientside,...

24th January 2015
by Jeffreysmall Go to last post
7 162
Help

Entity not showing up in category..?

I'm going crazy, I'm trying to make a simple entity and nothing seems to be working. If I spawn it with ent_create (because It's not in the spawn menu) it says: Error creating 'crate_uncommon' (Make sure the file is AddCSLuaFile'd and there aren't any...

24th January 2015
by Gedo789 Go to last post
3 219
Help

solved Regex Flags?

Hey guys! Would like to know if there would be any way to use flags in string.match such as g (Global) I would need it since string.match () on "X#a#o#tic" would only return "X". Global flag would return "Xaotic" Thanks

24th January 2015
by Xaotic Go to last post
2 112
Computers

solved Entity:LocalToWorldAngles() What does it really do ??

Hi all, I know that you are going to quote the wiki here, but that's not what am I after. I need to put ENT's position and angles as a function parameters for replacing the following part with something similar, working the same way. ...

24th January 2015
by dvd_video Go to last post
6 309
Lua

Ask me for a simple script

Still relatively new to lua coding but i feel confident enough to offer my services for free to those of you who want something simple done, dont give me anything overly complicated with a whole lot of config options all i want is to practice. No...

24th January 2015
by Gedo789 Go to last post
10 496
Lua

SendLua() always returning 'nil value' ?

Couldn't get the command to work no matter what I put into it for object or for arguments. Does this function still work?

24th January 2015
by vexx21322 Go to last post
11 364
Repeat

How do you comment code?

Sorry in advanced if this is a repeat post. I did a quick search and did not find anything. Post some short and sweet examples on how you do your header blocks and your inline comments.

24th January 2015
by wh1t3rabbit Go to last post
10 322
Lua

How do I have tabs on VGUI

I have found a way to have tabs but it does not work how I want it to. How do I have multiple tabs like teh TTT RDM Manager Tommy228 has made? His VGUI code is in the cl_tabs. How do I do that?...

24th January 2015
by BuilderGaming Go to last post
6 176
Help

solved TTT Sprint Addon

I can't seem to find the sprint addon, Stamina that dies out and you double tap w. I accidentally deleted it and can't find it. Can someone plz help me? 21st January 2015 it has a stamina bar in bottom left 21st January 2015 Also it seems to...

23rd January 2015
by C.Finley Go to last post
23 646
Help

Advanced dupe 2 hooks?

How could i differentiate between a player spawning props normally and players spawning props using dupe?

23rd January 2015
by AIX-Who Go to last post
2 162
Question

solved npc_grenade_frag

anyone know what is fired when someone picks up an Npc_grenade_frag that causes it to light its timer and then explode?

23rd January 2015
by BenjaminTennison Go to last post
1 139
Help

solved Impossible to get a fixed size array in lua.

Hello, I tried everything but impossible to make a real matrix in lua. I want something like char* cs = new char or int* i = new int . But i can't find any way to make that in lua. I need that to make a working chat. Because tables are acting...

23rd January 2015
by Yuri6037 Go to last post
8 251
Lua

solved About Pre-join server (downloading phase)

Hey guys, My question is: How could I make a webpage in html to have the name of the map and avatar in the Downloading phase when joining the server? Or isn't that supposed to be coded in html? Thanks for reading :)

23rd January 2015
by Pwned231 Go to last post
2 140
Help

solved Car Teleporting Issue

Right now, I'm working on a script to impound a car. However, if I impound a car, then walk to the space where it previously was, the car just teleports back to it's original position. Here's the code I'm using: Serverside: net.Receive( "Impound",...

23rd January 2015
by meharryp Go to last post
2 81
Lua

solved VGUI Open & Close HTML

Hi, it seems i can't quite figure out how to make this work.. would appreciate some help local ISOPEN = 0 local HTML = vgui.Create("HTML") hook.Add( "Think", "BW_MENU_MAIN", function() if input.IsKeyDown( KEY_F1) and ISOPEN == 0 then ...

23rd January 2015
by spreadkiller Go to last post
9 208
Help

I want to code a SENT (Scripted Entity) - How2startpl0x

New to Lua and coding as a whole, wanting to learn as I go. Most importantly, I would appreciate if any of you could explain the basics of creating a SENT. How does everything work?I understand it's sort of like player classes - do you have to define a...

23rd January 2015
by Acecool Go to last post
7 260
Help

addon.json

When im trying to make a .gma file it says addon.json is not a supported type. Could anyone help me with this :) my addon.json : { "title" : "prototype", "type" : "addon", "tags" : , "ignore" :

23rd January 2015
by Robotboy655 Go to last post
5 230
Question

How does Pointshop create clientside models inside a DModelPanel?

Link related: https://github.com/adamdburton/pointshop/blob/master/lua/pointshop/vgui/DPointShopPreview.lua How does pointshop achieve the "hat preview" on the DModelPanel? How does it get the clientside models inside of the panel? I don't really...

23rd January 2015
by Netheous Go to last post
1 133
Lua

solved Restricting Concommands from players

Has anybody got an idea on to restrict non lua-based concommands in console?

23rd January 2015
by Saana Go to last post
21 331
Question

Ragdoll Trace Issue

Alright, so I'll try to explain this issue to the best of my understanding of it. So basically, I have a ragdoll spawned, its collision group is set to COLLISION_GROUP_DEBRIS_TRIGGER. I'm able to hit the ragdoll perfectly fine via a trace, that is until...

23rd January 2015
by Acecool Go to last post
1 96
Lua

solved Perform trace perpendicular to hit surface

Very simple, yet I'm not sure how to go about it: I'm performing an eye trace from a player, and I want to use the hitnormal of where the eye trace hits to begin another trace perpendicular to the surface hit. I've been trying local tr =...

23rd January 2015
by Z0mb1n3 Go to last post
2 101
Help

Need help with DScrollPanel

My first question is how do i remove something from a DScrollPanel i thought it was :RemoveItem(Item) but apparently gmod says that function doesn't exist. My other question is can i paint the scroll bar and make it look better then the default?

23rd January 2015
by xESWxDEATH Go to last post
0 124
Help

disable kill and killserver console command

I want to remove these commands from my server. I made a lua file in my autorun/server file using concommand.Remove but i cant get it to work. can someone help me out with this

23rd January 2015
by jobforacowboy Go to last post
10 390
Help

Claim ownership of a button(for deathrun)

Hi guys, I was wondering how you loop trough all buttons on a map(made with hammer, so no spawned buttons) and press like a key to claim ownership of the button. This way you are the only person that can press it. A nice addition for deathrun ...

22nd January 2015
by BlackVoid Go to last post
2 422
Lua

solved Disable Gm_spawn but still use Derma Spawn Menu ?

I have disabled the Spawnmenu, however you are still able to spawn props using Console command "gm_spawn model/.mdl." Is there a way to disable this, but still be able to use the command in a Derma GUI where you call this command ?

22nd January 2015
by spreadkiller Go to last post
5 136
Question

Screenshot making

Is there a way to check screenshot creation in lua? Like it's used in function Panel:SetRenderInScreenshots(boolean renderInScreenshot) Thanks

22nd January 2015
by iJohnny Go to last post
0 114
Help

Error vertix file!!! -.-

Hi everybody, I'm getting this stupid error and I can't see my models, when I join my own server. I already did replace the models, I even downloaded some new one but none of them worked. Could anyone possible help me? ...

22nd January 2015
by Robotboy655 Go to last post
1 97
Question

Drop shadows

Is there a way in Lua to create a drop shadow to give for example a HUD more depth~?

22nd January 2015
by Loveasparagus Go to last post
0 86
Lua

solved Spawn Menu restrict items.

So, i have my Basewars server running ( fairly new ) i would like to restrict alot of props, so my question is: is there a way to remove all Spawnlist props and only show props that i have "allowed" ?

22nd January 2015
by spreadkiller Go to last post
11 185
Help

GetViewModelPosition Runs Slower/Faster depends on client's ping

GetViewModelPosition Runs Slower/Faster depends on client's ping Do you know what the hell is going on? 300 MS http://i.imgur.com/2rfIi9C.png 0 MS http://i.imgur.com/dVbdRqq.png

22nd January 2015
by rebel1324 Go to last post
9 419
Help

util.PrecacheModel crashes the server when caching more than 85 vehicle models

I'm precaching vehicle models to prevent the little bit of lag when spawning into the server, and if I cache more than 85 models it crashes srcds immediately when any player joins. This is driving me batty, I can't understand why it is behaving this...

22nd January 2015
by Acecool Go to last post
15 472
Question

solved MapVote System TTT

Hi I'm looking for a MapVote system for TTT, and I can't find any good ones. I'm starting up a TTT server with about 20 players, and I want it to start off amazing I believe the one I'm looking for has the ability to force map and the Super Admins and...

22nd January 2015
by C.Finley Go to last post
5 158
Question

Ready System?

ok, I have run into yet another problem, i have implemented this code into a vgui. local ReadyText = "" local ReadyBool = false local readyR = 255 local readyG = 255 local readyB = 255 if ReadyBool == true then ReadyText = "Ready" readyR = 0...

22nd January 2015
by XtraSnipey Go to last post
5 214
Lua

Gmod GCC - Is anyone looking to run it? ( 2 Last )

Looks like last year it was started around now. It'd be great to see something happen again this year, Possibly a little clearer and defined. (with no one disappearing on us adam..... Ahem) I believe the old site was on github, Could we look at...

22nd January 2015
by Nookyava Go to last post
76 2,245
Lua

Going to make a HUD

The title says it all! I'm going to make a HUD for TTT! But I'm not good with lua, so I need some help. First, I want to know what to put in the server and what to put in the client, I also want to know where to put them to support map switching, server...

22nd January 2015
by Dan41550 Go to last post
3 150
Question

solved How would I disable the kill feed in my server?

I would like to know if I can disable the kill feed in gmod server.

21st January 2015
by XtraSnipey Go to last post
4 216
Lua

Weapon should change player model

Hello everybody, I'm relatively new to Lua, I can do some basic stuff within Gmod, e.g. making SWEPS etc. But I have ran into a problem. I want to make a traitor-only gun that turns people into cats, meaning that their playermodel changes (into a...

21st January 2015
by hootiegerbil Go to last post
8 159
Request

How to do better/fancier VGUI??

Yes I know this is a silly and stupid in the same time but how? I know how to make very simple looking things etc... I just don't get how to make some quality looking scoreboard,menu, panel to display stats... etc. Like zombie survival's etc Im talking...

21st January 2015
by gonzalolog Go to last post
30 1,005
Question

Wanting to get into the Source

Hello. I'm pretty new to the forums. Had Steam for a long time, played a few games, toyed with Gmod, and a little on Hammer. I am the kind of person who likes to create things, but sometimes the tools just aren't enough (or even imagination). I have been...

21st January 2015
by bobbleheadbob Go to last post
7 388
Help

Map Doors Breakable?

I noticed on a map im using that the doors to buildings can break when shot. I was hoping they would respawn, but they dont... Any way I can fix it?

21st January 2015
by NiandraLades Go to last post
5 210
Lua

I need help with the server, again

I can't even look at some of my guns, they are invisible but when I go near the place they usually spawn, it spawns as a texture error (Purple and black texture) please help! This is the error: KeyValues Error: RecursiveLoadFromBuffer: got EOF...

21st January 2015
by Robotboy655 Go to last post
10 349
Question

solved Removing Entities?

How would you go about this scenario? >Player walks to chair >Player clicks "e" >chair is removed from game session. 21st January 2015 just not sure if there is such syntax with glua

21st January 2015
by XtraSnipey Go to last post
6 86
Help

Server Gamemode Help!

Ok so, I've been wondering how people make their gamemode appear on different tabs on the gmod server list. I'm trying to develop a SlaveRP server, but want it under the SalveRP tab on the gmod server list. All help is appreciated. I tried renaming...

21st January 2015
by Ducky3426 Go to last post
1 134
Lua

Broken timer

Hello there, I'm making a time and date system for the Gmod gamemode PNRP (PostNukeRP). I'm having trouble with something in my serverside code. It's probably a timer, but I'm not really sure. I've tried all sorts of debugging, and it seems like the...

21st January 2015
by Ducky3426 Go to last post
16 431
Question

How to cancel ingame menu display ?

All is in the title. It's a simple question, because i don't understand why this shouldn't be an issue ? I made a request here, but it got closed without understand (What means "That's how that custom content was coded, this does not belong here."...

21st January 2015
by Yuri6037 Go to last post
5 240
Help

Anyone else having issues with Spectate?

So I've asked a few people for help but they aren't really quite sure what is wrong either. I've been trying to get ply:Spectate( OBS_MODE_ROAMING ) to work when the player spawns, and have tried various ways to get it to work, and it still doesn't...

21st January 2015
by Acecool Go to last post
1 94