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

Paint DComboBox

I'm currently coding a script which I want to have a darker DComboBox. I have managed to paint the main part of the DComboBox but also need to change the color of the options part. I've tried searching for quite a while on how this could be done but I...

20th July 2017
by Moat Go to last post
9 305
Help

solved Drawing 2D ext above an entity - Not working.

Hello, fp. I'm trying to draw above the entity but for some strange reason it isn't working at all, could anyone pick out what I'm doing wrong? function ENT:Draw() //Drawing the model self:DrawModel()

20th July 2017
by Chickengbs Go to last post
7 207
Help

Couldn't include file cl_init.lua' (File not found)

Couldn't include file 'nutscript\gamemode\cl_init.lua' (File not found) (@gamemodes/modernrp/gamemode/cl_init.lua (line 1)) Driving me insane, second try with a different schema, please help.

20th July 2017
by Stardust342 Go to last post
1 95
Help

Pointshop 2 Help (TTT)

So im trying to put weapons on pointshop 2 so people can buy them but only css weapons work. so when i buy a gun that i got from the workshop it wont appear when i spawn in. it lets me put weapons from the workshop for sale and lets people buy them...

20th July 2017
by iJohnny Go to last post
1 130
Help

Nutscript help! Error cl_init?

Nutscript will not start, this is the error that pops up! Very confused.. Couldn't include file 'nutscript\gamemode\cl_init.lua' (File not found) (@gamemodes/clonewarsrp/gamemode/cl_init.lua (line 1)) Couldn't Load Init Script:...

20th July 2017
by FrugalBread Go to last post
12 154
Question

Making Custom Effects

Hi, I'm currently working on an add-on to make a bomb for Gmod. I want the explosion to have a custom effect but I can't find anything online about making them. Could anyone help me out, or link me to some good tutorials? Thanks

19th July 2017
by ChrissyBoyo Go to last post
2 140
Question

solved GM.ExampleVar

Hey guys, In melonbomber on sv_rounds, we got "GM.GameState = GAMEMODE and GAMEMODE.GameState or 0" Is it possible to make a script (without touching gamemode's code) to check that var? Thanks in Advance!

19th July 2017
by TehBigA Go to last post
3 145
Question

Derma Skins

Anybody know of some decent skins I can use for my game mode VGUI? Iíve just been painting my own panels as of right now, but Iím about to have to start using property sheets, and I donít feel like writing out paint functions for tabs.

19th July 2017
by pqbrown Go to last post
0 84
Help

solved Very Undescriptive error, can't figure out what's wrong.

So im getting this error And i have no clue what's wrong, Now i want to make it clear that i am a total noob when it comes to coding and if you think it's messy or strange or unnecessary then that's fine and i'd like to know what i can improve. Anyway,...

19th July 2017
by JasonMan34 Go to last post
3 194
Help

About Player.LagCompensation inside of Entity.FireBullets

Hello i was looking at code of SWEPs and they all call self.Owner:FireBullets(...) but don't do self.Owner:LagCompensation(true) before and self.Owner:LagCompensation(false) after. Wiki says next: "When used in a WEAPON hook such as WEAPON:Think or...

19th July 2017
by morfin Go to last post
8 360
Question

Hiding the "Server cvar changed to" message?

Title. I would like to hide the "Server cvar 'ai_disabled' changed to 1" string that is posted in chat within a swep. Is it doable?

19th July 2017
by Malistaticy Go to last post
8 325
Lua

solved Striping out words / phrases from a string

i have made two scripts with what i want to do, is having a apache2 like system in garrys mod for roleplay and so far i am able to remove some words out the code, to runstring it, which works, but i want to strip everything from <bla> to </bla> out,...

19th July 2017
by DarkAussie Go to last post
8 163
Help

Nutscript schema gamemode name not working?

Help, I've had the problem for a long time now. I have changed my folders to the same name as my text, I have the correct format in the text, and I also put my gamemode correctly into the start.bat, but it all resulted in the gamemode still being the same...

19th July 2017
by Bakken1 Go to last post
9 192
Question

solved surface.DrawPoly() does not work

local polygon1 = { { x = 100, y = 200 }, { x = 150, y = 100 }, { x = 200, y = 200 } } local function HUDClock() surface.SetDrawColor(255,0,0,255) draw.NoTexture() surface.DrawPoly(polygon1)

18th July 2017
by Rory Go to last post
3 103
Help

solved can i get some help with making a interactive ragdoll

can i get some help with what the title says so i would like to make a ragdoll that when a player "uses" it a gui pops on their screen so at first i thought i could make a entity and use function ENT:Use but i dont know how to make the model for...

18th July 2017
by TheJenssons Go to last post
3 139
Lua

solved net message sent from different users at the SAME TIME processed one at a time on a single thread?

Question: Are the net.Receive hooks called one at a time when the same net message is sent from different users at the same time? Essentially I have a global variable used in a server side net.Receive hook. This variable is a shared resource that gets...

18th July 2017
by bizzclaw Go to last post
7 234
Help

Textures Not Showing Up On Custom Playermodel

I am working on a custom playermodel and I have the texture file but when I go in game there is no texture on it. This is a screenshot of the texture file: https://gyazo.com/c67d7241c8080c7566442abf4c530eaa

18th July 2017
by bizzclaw Go to last post
13 205
Help

solved Pointshop and Custom Surface Texts

Hello Facepunch. I am new to lua programming (so don't make fun of me for an easy fix) although I have experience in other languages like C++ and Java. The problem is I can't seem to figure out how to make surface text appear in pointshop depending on...

18th July 2017
by chang Go to last post
2 145
Lua

solved Best glua addon for VS Code

Hello all, Im just wondering what the best addon for vs code for glua is, as i have found 3 on the market. GMod LuaDev (Lixquid): https://marketplace.visualstudio.com/items?itemName=lixquid.gmod-luadev Gmod Lua (Acidic):...

18th July 2017
by StonedPenguin Go to last post
3 240
Lua

Finding player SteamID in table

I am trying to make a table with players SteamIDs that checks if the player is the right rank...but it appears that this does not work...is this the right method to storing player ranks? Or is file based storage better? local ply =...

18th July 2017
by monkeymacman Go to last post
8 251
Lua

solved NetworkVar Alternatives

i've hit a limit of 4 strings in using networkvars and i'm assuming if i've broken a limit that fast, there's something i'm not doing right. is there any way i can carry more strings?

18th July 2017
by portalcrazy Go to last post
5 145
Question

Player in shadow or in light?

Does anybody know if there is a way to define is the player in the shadow or in light and if he is in light how to define the source of light and how close it is to the player(s)

18th July 2017
by highvoltage Go to last post
9 308
Help

Derma panel opening for everyone on the server.

I have no idea how to fix this, I've searched wide and far and found no one else with this problem - unless I'm just searching for the wrong terms, if that is the case, I apologise. Anyway, if anyone can help, that would be great, here is my code ...

18th July 2017
by Havasu Go to last post
2 102
Question

Lua and Dll

I was wondering, how hard/time consuming would it be to link two separate servers so that people may join and have their items on one server, and on the other server.

18th July 2017
by JasonMan34 Go to last post
5 990
Question

JavaScript query

Is there any way to query a server and get back basic info such as online players, max players, and hostname, in JavaScript? If not in JavaScript, what language?

18th July 2017
by ajg0702 Go to last post
13 387
Help

DImage Error/Images not Loading

Problem: When ever I try to do a DImage, it's just an error(the purple and black) How you can help: Tell me how to link the image, (path) It's in a gamemode so what path would I need. Current Code: local usapanel = vgui.Create("DFrame")...

18th July 2017
by carry4 Go to last post
0 72
Question

solved How to get miles in-game

I was wondering how you could get the distance in miles, meters, kilometers, etc. from point a to b in-game?

18th July 2017
by Kevlon Go to last post
3 112
Help

Entity GLua not working an I can't see why.

The error console is throwing out is --------------------------------- addons/canadiation_bomb/lua/entities/canada_bomb/shared.lua:1: attempt to index global 'ENT' (a nil value) 1. unknown -...

18th July 2017
by ChrissyBoyo Go to last post
2 177
Help
18th July 2017
by Crazygecko08 Go to last post
0 142
Help

solved Small Admin Permission Help

hook.Add("PlayerNoClip", "CloakGodNoclip", function(ply, noclip) if noclip then ply:SetNoDraw(true) for k, v in pairs(ply:GetWeapons()) do v:SetNoDraw(true) end for k,v in pairs(ents.FindByClass("physgun_beam")) do if v:GetParent() == ply then...

18th July 2017
by MarZ333 Go to last post
6 214
Help

solved Someone to just explain this script ?

**MY PROJECT** Hello and here I plan to make a metal pickup system on the ground, with a text showing on the hud with the number of pieces of metal ** MY PROBLEM** My problem and that I have a script that I found on this forum but I do not...

17th July 2017
by flashouney Go to last post
6 224
Question

Question Regarding the latest "cheats"

After making my last thread (despite a lot of people bashing me for it), I've actually had numerous server owners contacting me in reporting similar scenarios. With all of these cheats out (i.e. odium, citizenhack, lithium, the list goes on) is there a...

17th July 2017
by Kevlon Go to last post
10 359
Lua

solved Help with code

Hello, can you help me? I had a problem, I read that this is a bug due to the fact that I threw the file in the wrong folder, you can help where it should be thrown, if you can but specify the file, I'm just new to this Code Error

17th July 2017
by code_gs Go to last post
1 82
Help

solved SWEP instruction on the screen

I had a small question, I wanted to make sure that when I took a swep in my hands, in the right corner I got a simple text, something like an instruction, and disappeared after changing weapons, I tried to write the code, but nothing works. My code:...

17th July 2017
by heu3 Go to last post
2 87
Help

attempt to call field 'PosIsEmpty' (a nil value)

I apologize in advance for bad English, as I wasn't trying to delve into its study. In fact the problem. I have to say that before everything was working, but after another restart there was this error: ...

17th July 2017
by code_gs Go to last post
1 85
Lua

Gmod Lightsabers

Recently the creator of lightsabers in gmod has updated it where there isn't any knock back and everyone in my server hates it. I just found a version of the lightsabers for darkrp without force powers but it has knock back, and so i need help adding the...

17th July 2017
by Geniush Go to last post
8 1,321
Request

Module to supress engine erorrs.

PLEASE can someone make a module to suppress those fucking red engine errors! It's REALLY annoying to go into developer mode to work on something using the overlays and without having to keep hitting ` and then you get flooded with a fuckton of pointless...

17th July 2017
by kpjVideo Go to last post
8 766
Help

Pointshop 1 - Disappear items after restart round

Hey! I ran into such a problem: When a new round start, all equip items disappear. I have to hostler them and equip again so that they appear. What's wrong? Thank you!

17th July 2017
by maximaler Go to last post
0 73
Lua

3D2D Help

Hello. I'm making a 3D2D panel, can someone give me an example of a button please? Thank you.

17th July 2017
by Shadow02 Go to last post
2 126
Help

Server optimization tips?

I have recently began running a GMod server. The server does quite well already, reaching max players (32) daily. The server is a basewars server that uses a lot of entities such as money printers, health stations, turrets, armor stations, drug labs, and...

17th July 2017
by TheCloak Go to last post
5 325
Help

solved Alternative to RunBehavior()?

this is my code and is there an alternative bc it is quite glitchy function ENT:RunBehaviour() while ( true ) do timer.Simple(1.7,function() end) local ent = ents.Create("npc_poisonzombie") ent:SetPos(self:GetPos() +...

17th July 2017
by highvoltage Go to last post
25 437
Help

solved Server name in the corner doesn't work

Why it doesn't work? I get this error in the console: lua/autorun/client/serverlogo.lua:9: ')' expected (to close '(' at line 8) near 'end' 1. unknown - lua/autorun/client/serverlogo.lua:0 CODE: surface.CreateFont( "TextFont", { font =...

17th July 2017
by heu3 Go to last post
4 156
Help

solved how can i hide this?

how can i hide this name and hp? DarkRP.

17th July 2017
by heu3 Go to last post
18 314
Help

A certain IP allways gets banned, but i dont want that.

Hello Guys, i own a Garrys Mod Server. A Friend of mine can only play for a round, after that the Server bans his IP and i have to remove the IP Ban again. How can i change that? Greetings Pumukel (User was banned for this post ("Wrong Section"...

17th July 2017
by Pumukel Go to last post
0 196
Help

solved Where should I set usergroups?

Right now I have this code: hook.Add ("PlayerInitialSpawn", "soc_set_sv_admin", function (ply) if soc.admin then ply:SetUserGroup("superadmin") end end) and soc.admin = { = true, } So ply:IsSuperAdmin() in this hook returns true, but if I...

17th July 2017
by MediCat Go to last post
1 58
Question

How would something like this be accomplished?

How would this even be made as I am very confused? https://www.youtube.com/watch?v=LlqyvpuPoh4 I don't know where to start on a system with sort of the same functions.

17th July 2017
by TheNooblycore Go to last post
0 86
Help

solved Calling functions through tables using hooks?

-- HOOK -- function AbilityInit() local abs = AbilityTable() if abs != etc then for k,_ in pairs( abs ) do hook.Add( "AB_"..tostring(k), "ABILITY"..tostring(k), abs ) print( tostring(abs) ) end end

17th July 2017
by JacobsReturn Go to last post
15 370
Help

Give Money Lua

So I'm trying to create a script that gives every player $1,000 every 10 seconds, but I can't get my script to work. if SERVER then timer.Create( "my_timer", 10, 0, function() local Players = player.GetAll() for i = 1, table.Count(Players) do ...

17th July 2017
by tzahush Go to last post
15 254
Help

Minor problem with my DarkRP server. Help pl0x.

Hey what's up guys, I'm having a little trouble with something in my DarkRP server. Well, here's what's going on...every time the server restarts I get a reset on on the q menu utilities tab, specifically the tool restriction and also my blacklist...

17th July 2017
by MexicanR Go to last post
9 608
Help

How works "SWEP.SkinIndex"?

Hello guys, at the time I'm trying to edit a texture of a weapon and at this weapon at the same time as the original one. This weapon has some skins and I want to add 1, but I don't know how to define "skinindex". How Gmod know which number is paired...

16th July 2017
by Jcw87 Go to last post
4 157
Help

Moving a 3D2D by the Z axis

I'm trying to screen a "console" screen for my printer and a way of practing lua, but obviously I suck at it cause I can't figure out a way to move the 3D2D thing in the z axis, I can move both x and y but when I look on the gmod lua website there is...

16th July 2017
by Robotboy655 Go to last post
4 151
Help

solved I need help with lua coding for a Health Kit.

I have been browsing google and data mining for the past 2 hours and have yet to find a single thing relating to Health Kits. I am just trying to make something like the HL2 Health Kit, but it need to heal more than 25 hp. It is for my DarkRP server so I...

16th July 2017
by Kiddley Go to last post
2 114
C++

gm_fshook - Don't read my files!

gm_fshook is a garry's mod module that is designed for clients to disallow servers from reading specific files. It adds a hook ShouldOpenFile(path), which if you return true in will redirect the file.Open call to steam_appid.txt in the root directory...

16th July 2017
by MeepDarknessM Go to last post
0 452
Help

Perma Weapons Pointshop 2

Hi, so my problem is when I equip weapons in PS2 it don't appears in to the game.

16th July 2017
by gonzalolog Go to last post
1 94
Help

Props Physics broken

Hi, I am running a deathrun server and I am having a problem from time to time, it's not happening often, but often enough for it to be annoying. So what's happening is that all Physics (Props) / Weapons your drop just float around and falls under...

16th July 2017
by TheCrankyGuy Go to last post
5 214
Help

solved make function or variable ?

Hello, here is my project is to do a hud with a bar for stress but I do not manage to create this variable in question its does not normally work more addon will be able to touch this variable I recall is specific to the user Simple variable or create...

16th July 2017
by flashouney Go to last post
4 121
Help

no npc melee damage on teambased gamemode

I'm running a gamemode that is derived from the base gamemode. Everything works, players can hurt and kill each other, npcs can kill and hurt players. But once i set GM.TeamBased = true most npcs stop dealing melee damage to the player (antlions, all...

16th July 2017
by Blu-x92 Go to last post
2 149
Request

[REQ] HL2 Ep1 The Core as AR2's Charged Bolt in MP

Wow, I don't know how I came up with it but... Could someone mod the AR2 to make it shoot out the Core (Dematerializing Sphere) from Episode one, as the right mouse click weapon fire feature. And don't let it fly exactly just like the original AR2 bolt...

16th July 2017
by Gmod4phun Go to last post
2 975
Help

solved Make global variable and use this variable in all lua file

Hello, so here is my problem is in the title I want to make a variable usable in all addons and all files lua all simply. Thanks for your answers <3

16th July 2017
by flashouney Go to last post
2 116
Help

Any way to check if Steam Overlay is active?

After looking at the wiki, I did not find a way to check if the overlay is open or not. Is there some way to check it?

16th July 2017
by Gmod4phun Go to last post
3 230
Question

Are double for loops bad?

so heres the code in question for tqid, tqv in pairs(Config.TestQuestions) do for aid, av in pairs(answers) do if tqv.question == av.question and tqv.correct != av.answer then failed = true ...

16th July 2017
by code_gs Go to last post
4 220
Help

Looking for 3D Artist help

Hi, idk if this is the right place to put this thread so please tell me if its not. I am looking for a 3D Artist to help me with a gamemode I am creating. I just need help modeling a wallet xD

16th July 2017
by Sean Bean Go to last post
1 115
Help

Calling tables & JSON not working right?

Ok here is what I have; initial file \/ Ability = {} anum = 0 function AbilityAPI_Add( defin, abil ) if not Ability then Ability = {} end

16th July 2017
by JacobsReturn Go to last post
2 89
Lua

Rewind Tool

can some one make a tool based off of the rewinding time from the time grenade?

16th July 2017
by Lavacoal123 Go to last post
5 619
Question

MY code won't work, but it's much shorter...

(i AM attempting to make a SWEP) If you could just tel me of it's missing something, that's be great. if you actually FIX it, i will be happy beyond belief, and i guess I'll give you credits in the information and stuff... 10:12PM if (...

16th July 2017
by saasdasdasdas Go to last post
39 2,158
Help

Slow Walk speed/run speed and Realistic Falling Damage.

Alright, I've recently compiled a lot of mods for Garry's mod that I've collect over about the past year. I've found my favorite ones and blah blah blah. What i did though is 7-Zip'd them all into one folder, all 6.52 GB's then installed them all into...

16th July 2017
by saasdasdasdas Go to last post
5 3,595
Request

[REQ] Particle Maker v2.x update?

There's this awesome Tool called the Particle Maker, it's current probable final version is v2.0. But there are some annoying bugs in it, can somebody fix it please? or can the real developer of that addon please fix it? I got screwed up after the...

16th July 2017
by saasdasdasdas Go to last post
1 530
Question

breakable doors?

like L4d. but not from l4d. is it possible?

16th July 2017
by saasdasdasdas Go to last post
5 1,062
Lua

Effects list

Anyone got a nice list of all the effects to use in our LUA coding? Like ""HelicopterMegaBomb"" and so on. (Ps. if anyone know a nice smoke effect, please post it)

16th July 2017
by saasdasdasdas Go to last post
6 4,026
Help

Qmenu again

Anyone care to help me, I am making a gamemode but I want the normal qmenu only I want to insert only models that I specify and Tools I specify. The gamemode is derived from base I read some stuff and found this : concommand.Add( "+menu",...

16th July 2017
by saasdasdasdas Go to last post
3 877
Help

Problem with saving derma cords

Hello i am making a basic game mode with a friend. What i am currently tying to do is save the coordinates of a derma frame on the client. this is what i have so far. function save() file.Write("Basemod/saves/data.txt", frame:GetPos()) end ...

16th July 2017
by saasdasdasdas Go to last post
3 619
Help

Interacting with html panel contents

It's me... again :) I have html panel with some things which controlled via javascript, is there any way to interact with it's contents? I tried openurl with something like javascript:blablabla but it doesn't work.

16th July 2017
by saasdasdasdas Go to last post
3 711
Help

Scripted NPCs Dying

i'm trying to make a scripted NPC and when it dies it should turn into a ragdoll and fall to the ground i pulled this from the wiki function ENT:OnTakeDamage(dmg) self:SetHealth(self:Health() - dmg:GetDamage()) if self:Health() <= 0 then //run...

16th July 2017
by saasdasdasdas Go to last post
1 582
Lua

String library extensions

I've recently been working on several small and large projects that were using a lot of operations with strings. Somewhere in the middle I found that I was using the same code over and over again, and that the standard functions supplied with lua and the...

16th July 2017
by saasdasdasdas Go to last post
3 1,227
Help

Where are gmod's chair / vehicle lua files

My banned friend wants me to ask dumb questions for him. Answer this one

16th July 2017
by saasdasdasdas Go to last post
3 1,971
Help

Sweps Dissaper After Editing

Whenever I make or edit a Swep, it no longer shows up in game, the latest was when I added a function Swep:Think, It no longer shows up in game and I can't get it in console, the same thing happens if I make one using Swep Makers, even if I put them in...

16th July 2017
by saasdasdasdas Go to last post
3 666
Lua

Derma problem.

includes\util.lua:127: attempt to index local 'self' (a number value) And the script: local PANEL = {} AccessorFunc( PANEL, "RectColor", "RectColor" ) AccessorFunc( PANEL, "BoxColor", "BoxColor" ) AccessorFunc( PANEL,...

16th July 2017
by saasdasdasdas Go to last post
3 861
Help

unresolved external symbol

When I try to compile a GMod module I get (only) this error. error LNK2001: unresolved external symbol "void * (__cdecl*__cdecl Sys_GetFactory(char const *))(char const *,int *)" (?Sys_GetFactory@@YAP6APAXPBDPAH@Z0@Z) Any ideas why? Thanks.

16th July 2017
by saasdasdasdas Go to last post
9 1,346
Request

A stash system for hunting.

This would be good for an half-life 2 map in gmod. Disable noclip and you're on your way. This is my layout that I did in an old game. lmd_stashzone ***(L) A zone to define an area for stashes. Also controls how many stashes can be spawned per...

16th July 2017
by saasdasdasdas Go to last post
1 629
Help

solved Text screen Addon Help

Hey there my name is jibril and i am pretty new to the garrys mod community. I have been looking into this text screens addon that every server uses. Does anyone know of a way to change the font on it?

15th July 2017
by code_gs Go to last post
10 216