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

Disabling hud on swep This thread has images

Basically, there is a camouflage SWEP that I use for my darkrp server. It makes you go invisible, but the problem is, it still shows the hud above your head. Is there like a code I can add to the swep to make it not show that when using primary attack?

16th February 2015
by Metamist Go to last post
4 165
QUESTION
 

Where to learn more? This thread has images

Okay so I just want to say a huge thank you to all of the people who have helped me out and the ones who are just there that make me laugh, Its a great community that I am happy to be part of, So here is a lovely heart, Will you all be my valentine? ...

16th February 2015
by 0V3RR1D3 Go to last post
3 186
Help
 

solved Help with a little code.

I am making a hud for sandbox and I want to display the player model like in DarkRP but not sure how? Can someone hlep?

16th February 2015
by Tedisbaws123 Go to last post
2 190
Help
 

Need help please

Hey, I'm trying to make blood stains appears on screen when the player is taking damage. So first I tried to use hooks, I used PlayerHurt, and when I was getting damages a text in the chat was send. So far, its working but how can I now make blood,...

16th February 2015
by Acecool Go to last post
4 175
Lua scripting
 

EntityFireBullets Hook - Grabbing bullet?

Is there anyway I could define the bullet? To attach a trail or some thing to it?

15th February 2015
by Robotboy655 Go to last post
5 200
QUESTION
 

Putting a box around a player that is closest to your crosshair, but from a certain distance.

Is there a way I can put a box around a person, but only if I have a clear view on them (don't want an esp)? I also want to code it to get the player from the player on my crosshair, and if there is no player on my crosshair, it will find players a...

15th February 2015
by Robotboy655 Go to last post
6 250
QUESTION
 

solved Can you modify Lua files on the client if it doesn't affect the server?

I'm going to be modifying TTT files later, some of you might of saw in my recent post, but if I'm modifying them in a way that it doesn't affect the server, can I get in trouble for that?

15th February 2015
by Dan41550 Go to last post
2 133
Everything/Nothing
 

Ongoing problem with npc_strider

This bug was reported over a year ago but still hasn't been fixed, even though it's listed as an acknowledged problem. npc_striders in certain Half-Life 2 base maps rely on the Input "EnableAggressiveBehavior" for attacking enemies. However, whenever...

15th February 2015
by Robotboy655 Go to last post
1 146
Help
 

umm... Nfoserver does not show up unless u favorite the IP...?

How do i fix this? The server is completely invisible unless you favorite it.

15th February 2015
by Robotboy655 Go to last post
10 376
Lua scripting
15th February 2015
by SkitZz Go to last post
8 233
QUESTION
 

Is anything called when a player drops a defined weapon This thread has images

I need to know if something is called when someone drops a specific weapon, I searched the wiki and the closest thing I could find was WEAPON/OnDrop, but that won't work because it won't let me put the weapon name.

15th February 2015
by Acecool Go to last post
10 278
Help
 

SoundDuration doesn't work on some servers

Some servers are unable to find the sound file so the function just returns 0. I'm trying to get the duration of HL2 sounds. I tried prefixing the sound with ../../hl2 as the old wiki states but that does not work.

15th February 2015
by Chessnut Go to last post
0 107
QUESTION
 

solved Question about the wiki.

When you're on a wiki page, you see squares that are sometimes full blue, and sometimes they're blue and orange, what do those colors mean?

15th February 2015
by Dan41550 Go to last post
2 125
Lua scripting
 

Gmod chat change font? This thread has images

I wanted to know how to change the default chat font, or make a own chat box, I tried using Google but it only redirected to surface.createfont on maurits.tv and the gmod wiki ;-;

15th February 2015
by MeepDarknessM Go to last post
8 309
Help
 

inventory problem | DARKRP

Hello i am getting this In my Console: gamemodes/darkrp/gamemode/modules/kinventory/cl_init.lua:254: '<eof>' expected near 'end' 1. unknown - gamemodes/darkrp/gamemode/modules/kinventory/cl_init.lua:0 And this is my Lua File local Tag =...

15th February 2015
by Acecool Go to last post
2 147
Lua scripting
 

Lua and GLua questions

My question are: 1)What version of Lua is GLua based on? I want to make sure I'm learning the correct version of vanilla Lua for GLua. 2)How much Lua should I learn before I get into GLua, I want to make sure I know vanilla Lua before I go into...

15th February 2015
by Acecool Go to last post
7 225
QUESTION
 

Is anything called when a player holds a weapon This thread has images

Is anything called when a player holds a weapon? I was looking at WEAPON/Equip, but that is when a player picks up a weapon, and even when they're not holding the weapon, the code will still run as if they were.

15th February 2015
by Neat-Nit Go to last post
9 208
Help
 

Problems with resource.AddWorkshop

It's apperantly giving me this error lua/autorun/workshop.lua:1: attempt to call field 'AddWorkshop' (a nil value) 1. unknown - lua/autorun/workshop.lua:1 Does anyone know what the problem is and how I can fix it?

15th February 2015
by Norwegian Go to last post
2 155
QUESTION
 

Debug Questions

Howdy, I always see GMod coders with the errors they get from their console on their screen. How would you come about doing that? I've always wanted to have an onscreen debug sort of thing. Thanks in advanced! By the way I read on the wiki about a...

15th February 2015
by Acecool Go to last post
3 163
Help
 

Doors blocked by invisible props? (on server)

So on my server, the entry-way of door ways are blocked by "invisible props." I struggle to go past door entry-ways on my rp map for my server (even tho there is nothing there), however, this only happens on my server. If I open up the map on single...

15th February 2015
by Acecool Go to last post
1 162
QUESTION
 

Base NPCs melee damage?

I have a nextbot that has an npc_bullseye bound to it. Regular NPCs can shoot at my bot, but things get weird when my bot gets into melee range. Combine Soldiers do not attempt to melee my bot, and NPCs like Antlions or Zombies will play their melee...

15th February 2015
by MysticLlama Go to last post
0 129
Help
 

attempt to call method 'Give' (a nil value)

I'm using ply:Give( "empty_weapon" ) and when it's ran, it says it's a nil value. Any ideas? Also, as a bonus, does anyone know what might be good to draw text in 3d space?

15th February 2015
by Robotboy655 Go to last post
6 158
Help
 

MaterialOverride Question

local v = LocalPlayer():GetViewModel() render.MaterialOverride(new_material) v:DrawModel() render.MaterialOverride() I just want my Weapon MaterialOverride but my hands always MaterialOverride How can I do?

15th February 2015
by Robotboy655 Go to last post
1 105
Help
 

Find a name with a partial string?

Okay so I want to have a chat command. I have been stuck on this for ages, So basicly you type !cmsg warning name message Warning being the type, name being the player name and message being the message, I got the splitting part working fine. I was to...

15th February 2015
by Acecool Go to last post
4 165
Help
 

Hud ammo This thread has images

I want to change ammo hud, but Do not know where it is please tell me .

15th February 2015
by Acecool Go to last post
5 448
QUESTION
 

Someone give me a good swep tutorial?

Well i rebember the time i did shit on the forum, i was actually trying to do shit i don't know how to do :suicide: Nevermind, i want to restart all the shit i did in the past, so someone can give me an swep template or tutorial without chair throwing...

15th February 2015
by Garr Go to last post
2 128
QUESTION
 

solved notifications?

I seem to get this error when I try to use notification.AddLegacy: attempt to index global 'notification' (a nil value) is there anyway I can call this onto the player somehow else? Thanks.

15th February 2015
by kpjVideo Go to last post
5 182
Help
 

solved show render.Capture data as image?

Hey! I want to show the data that i get from render.Capture as an image, how i would do this? 15th February 2015 Anyone?

15th February 2015
by unrezt Go to last post
8 239
Help
 

solved Point shop model errors.

Hello I am having a problem with my models not showing up in my game when you buy them from the pointshop. I'm just gonna tell you all of the steps I took to get the model in the pointshop and maybe you can tell me if I did something wrong. I extracted a...

15th February 2015
by Caliboy50124 Go to last post
4 244
QUESTION
 

solved Possible to display a serverside timer on client?

Title says it all. Is it possible? if so, how?

15th February 2015
by [CLRP]extra Go to last post
8 189
Lua scripting
 

Freezing jeeps

Is there any other way than freezing jeeps (sorta) than using applyforce? We tried enablemotion and setmovetype, none worked. GAMEMODE.PlayerVehicles:GetPhysicsObject():SetMoveType(MOVETYPE_NONE) What we are trying to accomplish is freezing a...

15th February 2015
by RealDope Go to last post
7 338
Help
 

solved http.Post for render.Capture? This thread has images

Hey! I am making screenshot system for gmod. 1. Can i send render.Capture data to webserver? 2. If i can, how i would do it using http.Post?

15th February 2015
by SteppuFIN Go to last post
16 399
Help
 

Entity Get Player Owner

Hello, I'm trying to make a ID Card but when I try "self:GetOwner()" it say's NULL so, how can I get the owner and take information of him like his name Nick ? Thx for answers :p

15th February 2015
by annilator3000 Go to last post
12 311
Help
 

solved HELP URGENT!

DELETE THREAD

15th February 2015
by VenomCruster Go to last post
0 106
QUESTION
 

How to make things look snazzy by animation?

Hey, I have never tried animation (well, i gave it a go, then stopped to not know what to do). How do i do it? Im trying to draw slot machine thing. Any help? Thanks!

15th February 2015
by Donkie Go to last post
3 225
Help
 

Tips on becoming a good coder?

Okay so I have been doing GLua for a while now. I feel fairly confident with it but do you guys have any tips for me to become better. Like ways to make things more efficient of cut down on net usage etc

15th February 2015
by 0V3RR1D3 Go to last post
28 694
Lua scripting
 

DKJSON - JSON Module for GLua This thread has images

I have converted dkjson lua module for glua. The primary function of this module is to serialize and serialize Lua tables into strings. Q & A How is this any better than VON? Garry's Mod already comes with built-in JSON...

15th February 2015
by edgarasf123 Go to last post
8 501
Help
 

solved Help! How do I create a toggle feature?

I am trying to create a toggle feature to stop the spam in this script: timer.Create( "my_timer", 0.5, 0, function() RunConsoleCommand("say", "Jimmy the Skid") end end )

15th February 2015
by skatehawk11 Go to last post
4 213
Help
 

Reset a Dlistview

Is there any way i can reset a dlistview, removing all colums etc. I have tried ListView.Columns = {} But that did not go very well, i was hoping someone can point me in the right direction. I more or so need this so i dont have to create...

15th February 2015
by Robotboy655 Go to last post
6 137
Stupid
 

MySQLOO - Attempt to index local query 1

//---------------------------------------------------------- // ChargeBackBan (CBB) // DO NOT EDIT the other files in the addon unless you // know what you are doing, and you are willing to open up // your server to the banned...

15th February 2015
by Adzter Go to last post
6 280
Help
 

Pointshop Pets

addons/pointshop_r/lua/items/followers/bubbles.lua:7: attempt to call method 'Fo_CreateFollower' (a nil value) 1. OnEquip - addons/pointshop_r/lua/items/followers/bubbles.lua:7 2. unknown - addons/pointshop_r/lua/sv_player_extension.lua:15 ...

14th February 2015
by C.Finley Go to last post
2 158
QUESTION
 

Very simple question abour GM:KeyPress

Can someone write a little piece of code for me using GM:KeyPress and tell me what it does?

14th February 2015
by Jeezy Go to last post
11 270
QUESTION
 

Very dumb question, but I now just need to ask it. What happens if you include a lua file

I know this is a dumb question, and you can tag this thread with dumb all you want, but what happens if you include a lua file in the lua code, does it get functions from the other lua files? If I'm wrong, what does it do.

14th February 2015
by BFG9000 Go to last post
3 252
Help
 

DarkrRP Server Content

How to make sure that when you log on to the server automatically downloads files from the workshop ?

14th February 2015
by lagaim Go to last post
2 220
Help
 

FOV setting for CalcView?

Hey, I've been trying to get taunts to work on a base gamemode and tried using this (which I found on some TTT forum.) if SERVER then AddCSLuaFile() else temp = {} hook.Add("CalcView", "CalcViewTaunt", function(ply, view, angle, fov) if not...

14th February 2015
by MeepDarknessM Go to last post
5 141
Help
 

Console Spam | DARKRP | HELP!

Hello i am getting spam in my console with this? addons/darkrpmodification/lua/darkrp_modules/khud/cl_hud.lua:392: attempt to index field 'DarkRPVars' (a nil value) 1. fn - addons/darkrpmodification/lua/darkrp_modules/khud/cl_hud.lua:392 2....

14th February 2015
by RealDope Go to last post
3 196
QUESTION
 

pointshop item id

Trying to mod in the ability to give players MORE points if they are wearing certain items. I am aiming to just use the PS_HasItem( id) to add more points if they have it and have it equipped (I can do another check or something later) But the...

14th February 2015
by TooLzor Go to last post
12 176
Help
 

setting model height

I actually have extra ulx commands and I was wondering if it is possible to do a custom check and make them a smaller height for specific jobs. This is for DarkRP, the ulx command is !scale

14th February 2015
by ImDesire Go to last post
3 173
Help
 

solved Help with render library.

Hello, So i'm still working on my own fire entity. I managed to get it flaming other entities, damaging other entities. However i'm still trying to get it rendering as a textured box (a little bit like Minecraft's fire). Anyway, to achive this i...

14th February 2015
by Robotboy655 Go to last post
5 186
QUESTION
14th February 2015
by Charrax Go to last post
0 104
Help
 

solved DCollapsibleCategory being weird This thread has images

EDIT: Fixed again by the amazing Boxama. Locking. EDIT: The main derma panel these open on is a Derma Panel connected to a DProperty Sheet. No idea if that is the problem. For some reason this code does not work as it should: TheListPanel =...

14th February 2015
by [CLRP]extra Go to last post
1 171
Xbox360
 

Coding an Xbox 360 Controller to work with GMOD ( 2 Last ) This thread has images

Some of you might say this is dumb, I don't care. Some of you will say something like "Why would you want to use an Xbox controller in GMOD?", I want to because I can. Some of you will say "Wow gg scrub ur gonna get rekt m8", I'll wreck you 1v1 IRL. I...

14th February 2015
by Dan41550 Go to last post
48 854
Help
 

LUA Error | DarkRP

Hey i am getting this Lua erro in my console i dont know how to fix this lua/includes/modules/net.lua:183: net.ReadType: Couldn't read type 2 1. error - :-1 2. ReadType - lua/includes/modules/net.lua:183 3. ReadTable -...

14th February 2015
by code_gs Go to last post
1 118
Help
 

AvatarImage - How do i change the corner roundness?

Hey how would i change the corner roundness on a AvatarImage? Thanks!

14th February 2015
by Author. Go to last post
1 129
Help
 

solved Calculate max velocity of a vehicle

All is in the question. To introduce the problem, what i'm trying to achive is displaying the max speed in km/h of a TDM Car in a DLabel. With the help someone gave me in the "Problems that don't need their own thread", it seams that vehicles don't...

14th February 2015
by Yuri6037 Go to last post
14 194
Help
 

EFFECTS - How do they work and should I use them?

Hey. I was hoping if anyone could give me some guidance onto how EFFECTS work, and whether or not I should use them. I'm planning on creating an electricity tesla-like effect to revolve around my SENT. I want it to look much like in this video:...

14th February 2015
by Robotboy655 Go to last post
1 152
Help
 

Mic on

function ulx.micon(calling_ply, target_ply) target_ply:SendLua(]) ulx.fancyLogAdmin( calling_ply, true, "#A Toggled +voicerecord on #T", target_ply ) end local micon = ulx.command("Essentials", "ulx micon", ulx.micon,...

14th February 2015
by FPtje Go to last post
23 751
Lua scripting
 

Drawing viewmodel bodygroups

Been having some trouble drawing viewmodel bodygroups, asked around with some friends and they can't help me out either. I have some code in my swep base's initialize function and deploy function: here it is self:SetBodygroup(self.BodygroupCategory...

14th February 2015
by ExodusTheFirs Go to last post
2 105
Help
 

DarkRP Job names?

Okay so I making a script that needs to know what team the player is on(DarkRP Job) and if they are a certain job then allowe something to happen The problem is i want a config file with a table. Smething like this pdc_config.jobs = {} ...

14th February 2015
by 0V3RR1D3 Go to last post
5 141
Help
 

ARitz Cracker Bank (ATM model)

I downloaded etob ATM, but I want to change modelku . How to do it ?

14th February 2015
by LegoGuy Go to last post
2 138
Help
 

Github and servers

Recently I encountered a community that has github linked to all there servers. This makes it so the owner can use github to edit the servers and add new content. This community is ttt-fun. Someone explain to me how this would be done. Not asking to be...

14th February 2015
by NotSoSuper Go to last post
8 282
Help
 

Convert SQLite to MySQL

Hi, is there a free programme to convert the gmods sv.db to mysql? I know that there is an online tool (http://tjservers.org/dev/SQLiteToMySQL/), but this is not working anymore. I also tried DBconvert, but the trial version only allows 50 datas....

13th February 2015
by Acecool Go to last post
2 112
Lua scripting
 

Problems with using hooks within STools This thread has images

Hi all, To put it simply, the way the gmod_tool SWEP and ToolObj objects are being created seems to make using external hooks very difficult. As an example, say I have a tool that needs to use the EntityTakeDamage hook. Let's say I also need...

13th February 2015
by Pandaman09 Go to last post
1 128
Help
 

Reading .mdmp Files

How can I read mdmp files? I have tried looking at the tutorial on the valve wiki but I didn't understand it much. Could someone explain it in a simpler fashion? Thanks in advance :)

13th February 2015
by Robotboy655 Go to last post
2 136
Help
 

solved render.SetMaterial question and render.DrawSprite bug !

Hello, So, i succeeded to make all my fire animated textures to be vtf and vmt. However, now i want to render these textures to my screen in 3D. I'll use render library for that job. Can you load a valve material (.vmt) from render.SetMaterial ? I...

13th February 2015
by Donkie Go to last post
1 73
QUESTION
 

Server resource usage

This might be a stupid question, but does anyone know if there's way to detect the server's resource usage (RAM, CPU)? Or is there a module that does this?

13th February 2015
by ProTweaker Go to last post
9 140
Help
 

solved Remaking fire effect...

Hello all, And again welcome to another help thread from me. I don't know but if you remember, i got, a long time ago, a problem with ENTITY:Ignite witch stopps working after a certain amount of flamed objects. So recently i found a set of textures...

13th February 2015
by Yuri6037 Go to last post
8 106
Help
 

Pointshop VGUI help

Ok so i tried updating the DPointshopItem.lua file inside pointshop-master/lua/vgui, and for some reason it will not save the lua file. The server being edited runs 24/7 on the multiplayer network. Does the server have to be down while implementing these...

13th February 2015
by Adamsauce Go to last post
4 195
Lua scripting
 

Preview Pointshop This thread has images

Hello everyone! I am currently working on adding Jihad Taunts to my TTT server. So far I have everything working, but I would like to implement the ability for players to "preview" (listen) to the Jihad Taunt on the Pointshop. Typically if you have enough...

13th February 2015
by Adamsauce Go to last post
10 303
Help
 

Economy Tax

How to make sure that when you put taxes would be put to all the work , rather than one .

13th February 2015
by Jeezy Go to last post
1 78
Help
 

solved Values in tables are duplicated !!!!

So i made a library using my own library system (to handle client side send), to manage matrices, and yes, i realy need a multi dimensional array like a mathematic matrix. However when i bind a value to the 0 slot of the table it makes the slot 1 to be...

13th February 2015
by Yuri6037 Go to last post
2 102
QUESTION
 

net library question

How do you do a send+reply type of setup with the net library? Is this safe to do? --CLIENT net.Receive("test",function() net.Start("got_it") net.WriteString("Test") net.SendToServer() end)

13th February 2015
by thegrb93 Go to last post
2 101
Help
 

Entity - 2 props togother spawning as 1

How would i attatch one prop to another and make it spawn as 1 entity? Ty

13th February 2015
by Hoffa1337 Go to last post
1 83
QUESTION
 

Can someone help em think of a efficient way to do this elo ranking algorithm?

My friend wants me to code a elo ranking system that works like this: code: Your skill points = Kills/Deaths (800)+Wins/Losses(200) Condensed Alternate Tiers Percentile Tier Title <2.50% Elite Elite <6.00% Tier 00 Tier 00

13th February 2015
by MuteTM Go to last post
4 116
Lua scripting
 

Need a little help

So I'm making this Jump Boost thingy for my gamemode, but it runs the code so many times when i press the key. I would like to only make it run once when i press the key. Here's my code: I've been trying to many different things, but nothing...

13th February 2015
by Willox Go to last post
3 74
Help
 

Anti Team Kill For Darkrp Support

Hi Facepunch ! I' ve been working on a "Anti team kill " addon for darkrp. I' m coding a server and i need this addon to prevent troll to team kill person witch are in their own team ... This is how my job are working : SWAT SWAT Soldier SWAT...

13th February 2015
by Acecool Go to last post
7 129
Help
 

How Can I use ENTITY:Touch ?

http://wiki.garrysmod.com/page/ENTITY/Touch When I put this code in Server , always Error function ENTITY:Touch( entity ) self:EmitSound( "ambient/explosions/explode_" .. math.random( 1, 9 ) .. ".wav" ) self:Remove() end attempt to index...

13th February 2015
by AwfulRanger Go to last post
7 95
Help
 

Help! Mysqloo Problems

Hello, I'm having some problems with the Mysqloo, One is a error through out the Server and Client. ((null))Error: Trying to network (receive) unacceptable type ((null))Disconnect: Server shutting down. Disconnect: Server shutting down. Heres my...

13th February 2015
by xrayhunter1 Go to last post
0 79
QUESTION
 

solved Ragdoll physics help

I'm attempting to create a Kidnapping swep. When hit with this swep, you're ragdolled. I want the kidnappers to then be able to "drag" the body somewhere. The only problem is that you can't gravgun ragdolls. Is there any way around this?

13th February 2015
by imMrAnarchy Go to last post
6 92
Help
 

Body parts/ Gibs

Is there a list of all the possible player gibs? eg. eyes chest ValveBiped.Bip01_Neck1 ValveBiped.Bip01_Pelvis ect.

12th February 2015
by Robotboy655 Go to last post
1 61