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

The hook HUDShouldDraw

I am currently trying to make the chat box disappear, the problem is when I click the chatbox key (Y for me) I can't seem to open the console as well and then I have to reload the game my code: hook.Add( "HUDShouldDraw", "HideHUD", function(...

23rd August 2017
by Guysudai1 Go to last post
2 100
Lua

solved Getowning_ent error.

function ENT:Think() local owner = self:Getowning_ent() self.owner = (IsValid(owner) and owner:Nick()) or DarkRP.getPhrase("unknown") end net.Receive("gui",function() printer = net.ReadEntity()

23rd August 2017
by SpiiNy Go to last post
17 140
Help

solved Entity movement problem

I've made a simple entity: AddCSLuaFile() ENT.Base = "base_anim" function ENT:Initialize() self:SetModel( "models/props_junk/cardboard_box001a.mdl" ) self:SetCollisionGroup( COLLISION_GROUP_WORLD ) self:CollisionRulesChanged()

23rd August 2017
by danx91 Go to last post
2 112
Help

Darkrp pulling category info and checking if a job is in a category

To start off with. Probably not good i look into code at 1130pm after a full days work. But ive been trying to check two tables against each other to determine if players current team's job info is within a certain category. All of this is to achieve...

23rd August 2017
by Senor Pablo Go to last post
0 56
Help

Help with making a custom playermodel

Hello I am attempting to make a playermodel for Garry's Mod. I have everything working but i think there's something wrong with my QC: https://pastebin.com/XBDBW7V3 At first i put the model in and when i set it as a playermodel it would stay in Tpose...

23rd August 2017
by HungryShark Go to last post
0 85
Help

Zombie animations bugs..

Hello, basically, we have a serious roleplay server on the base of CombineControl which is heavily modified. We have a zombie faction and when we're getting into the flag it's not working properly, like.. he's moving on sideways. the zombie model thing...

23rd August 2017
by shaieve Go to last post
7 232
Help

Computers in Gmod

So you know I'm fallout where there's a computer and it gives you options and you can choose to read a note or something? I want to make an add-on for that in Gmod. I know the modelling part but I'm not very good at the lua part (User was banned for...

23rd August 2017
by gonzalolog Go to last post
1 197
Question

How to make function with a function as an argument.

I would love to learn how to make a function with function as an argument, like a nested function. I've searched for an hour now, and i still havn't found anything helpful, so i was hoping you guys could help me. You know when you fx. want to make a...

23rd August 2017
by luka2477 Go to last post
2 112
Help

Automatically close/open door if player is in vector (or not)

Hello, the map my server is running on has special doors which should only be accessed by certain teams, e.g: Police or Firefighters. The Police and Fire Department also have gates. I wish to open these gates if the player is in the area(vector) altough...

23rd August 2017
by kpjVideo Go to last post
16 622
Help

How do I make a animated player derma window

How do I make those little windows on a dframe that has a camera facing towards the players face?

23rd August 2017
by gonzalolog Go to last post
1 107
Help

solved Scrollbar issue with loading screen made with muse

I made a loading screen with Adobe Muse CC 2017 and on the web, it shows as full width there but on loading, there is bottom and side bar. How to disable them? My loading screen: https://helpmyserver.com/servers/loading-screen.

22nd August 2017
by djjkxbox Go to last post
3 101
Help

solved Need some help with a few things

Hello, Already posted a threat and got great help! Im still a beginning lua scripter so i still need some support. I still got some question and i hope you can answer them. #1. I have a surface.DrawCircle, but how do i put someone's playermodel...

22nd August 2017
by E-Servers Go to last post
4 101
Help

PVS with a camera system

Hi, I have been making a CCTV system but I can't get my head round on how to intergrate PVS with it. Does anyone know how to set the PVS up for something like this? Thanks.

22nd August 2017
by raubana Go to last post
6 198
Help

solved RoundedBox

Dear Scripters, I need some help here. Im a beginning lua scripter. I saw a nice looking HUD but how did they do the corners? They look like a triangle. I only know how to do roundings, but not a triangle looking. Thank you :)

22nd August 2017
by E-Servers Go to last post
5 147
Lua

Custom Command help

i have a big Problem. I have done my first own GMOD Script.. But it has only an Console Command. How i can make my own Custom Command? Command of my Custom Command: local function nss_command ( ply, text, team )

22nd August 2017
by Nil_Namon Go to last post
4 111
Help

solved [Murder] Invisible Weapons

Weapons just disappear (but they still visible for other players) when occur little crashes on any server (actually it's broken since some update of 2016) I think that's something about hands There is the hands code on sv_player: function...

22nd August 2017
by FuhrerBR Go to last post
2 108
Help

solved I Need Help With A Bug Please

Hey, Guys, So I Have Found A Bug That I Need You Guys To Help Me Fix For Some Reason When Using SWEPS Like Rape Or Disguise The Playermodle Dubbles All Help Is Appreciated Thanks,

21st August 2017
by code_gs Go to last post
5 127
Help

IsValid error in advance dupe2? Random?

When pasting a dupe on my server every user gets this error Pasting... lua/includes/util.lua:201: attempt to index a string value with bad key ('IsValid' is not part of the string library) Warning: Unhandled usermessage 'Undone' Finished Pasting!...

21st August 2017
by blackwidowman Go to last post
2 91
Help

solved Block server commands [Exploits]

Hi, I have an exploit on the server, with which the player is given superadmin, I can not find the location of the exploit and I want to block the command from using, or even better to give out a ban, help please. Commands: mkaaa (or mka, mkaa), 1337

21st August 2017
by DerfStew Go to last post
8 299
Help

solved Can't free spectate in TTT.

Lately, I've been working on my TTT server. I ran into a problem though that I feel is limiting gameplay. After installing the " Round End - Slow Motion" addon, my server no longer allows for free roaming in spectate mode, which in turn denied people from...

21st August 2017
by ccrusher1 Go to last post
0 64
Help

solved DarkRP Variables?

So hey I were making my first HUD for DarkRP. I were wondering if there were any variables for the players job name, money and salary? I tried the "getDarkRPVar" method but it does not seem to work. Here is the error: ...

21st August 2017
by androiid_ Go to last post
5 118
Help

NextBot animations?

I have been trying pretty much every animation with every playermodel and normal hl2 model and none of the walking/running animations even move the legs. The animations work perfectly when I am using the playermodel myself. Any ideas? function...

21st August 2017
by FireWolf2525 Go to last post
2 180
Help

solved Server Addons Missing In Game.

Hey Guys, So I need help with an error I am having at the moment. So basically what it is the addon files for things like (Vcmod, Gbail, Ulx. Ect) Are not showing up in the game, but in the Rcon when the server starts up it shows it's loaded the file...

21st August 2017
by Milkshaker Go to last post
3 159
Question

solved fastdl ideas for improvement

so recently ran into an issue involving fastDL, apparently my server has about 10000+ texture/material/map files needed for download, I've already worked on pruning out all unimportant content and such aswell as editing out certain things such as...

21st August 2017
by Kiwi Go to last post
22 412
Help

Help make SENT with random weapons

(I apologize for mistakes, I'm from Ukraine, I use an interpreter) I think everyone knows that if NPC Weapon has a Default, then with the spawn of npc_citizen, it can have both SMG and shotgun. So, I'm doing SENT on AI npc_citizen (SENT has to do it...

21st August 2017
by vladvoron Go to last post
0 58
Help

Walking and Running boost

How can I boost the speed of running and walking myself on time? I'm trying to do a SWEP. I need its speed of running and walking increased when I click on the RMB, I know as soon as I increase the speed like a "self.Owner:SetWalkSpeed(500)", but how to...

21st August 2017
by Pypsikan Go to last post
1 125
Help

Players angle same as entities angle

Hello, I've been trying recently to set the players angle the same as the entities angles, but it doesn't seem to be working, this is what I have tried: local ent1 = "bed" for k, v in pairs( ents.FindByClass( ent1 ) ) do pos = v:GetPos() ...

21st August 2017
by vampir Go to last post
2 118
Help

Get prop size?

Wondering if there's a way to get the width/length/thickness of a prop in units? Can't think of how I would do something like that.

21st August 2017
by Gmod4phun Go to last post
1 98
Lua

DarkRP custom job only available when an admin is online

Hey, I was wondering how to setup a custom job for DarkRP that you can only become when an admin is online. Thanks, Kalayah

21st August 2017
by Milkshaker Go to last post
6 228
Help

Access variables from different directories.

How to access variables on lua from a different directory? ------------------------ e.g: plugin file stuff file my_file.lua​

21st August 2017
by highvoltage Go to last post
10 258
Question

solved Question --- Reversing Player:ViewPunch(Angle)

Is there any way of reversing the ViewPunch command? I have tried: me:SetViewPunchAngles(Angle(0, 0, 0)) me:SetEyeAngles(-me:GetViewPunchAngles()) Nothing of this works. When the ViewPunch command punches me by Angel(-10, 0, 0) i would like this to...

21st August 2017
by luka2477 Go to last post
6 127
Help

Typewriter Animation Effect?

I am wanting to make a draw.SimpleText that will add a character every delay. Kinda like a typewriter where it will one by one type one then I will add a sound to it. Any way of doing this?

21st August 2017
by txike Go to last post
3 193
Help

Get killer name

Hi, I need some help for my script : I create a simple derma openable with a console command and in it i would like to see ( if the player is dead when he open it ) the killer name and the weapon which kill him. I tried this : local killer =...

20th August 2017
by txike Go to last post
18 336
Help

Cant use multiple printers

cl_init.lua include("shared.lua") include("bprinters_config.lua") surface.CreateFont( "Font", { font = "Arial", extended = false, size = 45, weight = 500,

20th August 2017
by louiefox Go to last post
0 77
Help

Mysqloo with derma

Hello, I'm currently making a small inventory panel and i want to get data from my db but i'm stucked. I have read on somes website and documentations that we can't use mysql on serverside so what i should do ? I have my clientside derma panel and...

20th August 2017
by RaKo Go to last post
7 291
Help

SQL Error: "database disk image is malformed"

local query = "CREATE TABLE cl_db ( " query = query .. "name TEXT, " query = query .. "value INTEGER" query = query .. " );" local result = sql.Query( query ) if result == false then print( sql.LastError() ) end

20th August 2017
by Bings Go to last post
1 113
Help

Why arent NPC's working

I know I have already created a thread for this but now I have a completely different problem and the other thread is gone. I made a addon and a entity (garrysmod/addons/NPCPickupJob/lua/entites/npc_supplydealer/init, cl_init, shared.lua) and pasted...

20th August 2017
by NostalgicBird Go to last post
5 101
Help

NPC Help

I am making a NPC script just for the knowledge of working with them but I cant even get one in the spawnmenu. Here is what I got, please tell me what I am doing wrong. SHARED : ENT.Base = "base_ai" ENT.Type = "ai" ENT.PrintName = "Simple...

20th August 2017
by FireWolf2525 Go to last post
6 170
Help

How to make NPC

Can somone please tell me how to make a npc and add it to the spawnmenu. I am wanting to make one for a shop script.

20th August 2017
by ZeroToHero Go to last post
3 137
Help

Is it possible to change language.add name in this case? if so how?

I've made a poison zombie torso but the problem is when you kill it or it kills you it says "Poison Zombie" not "Poison Zombie Torso" and I don't know how to fix this in this case? Here's my code local nextName local tbNPCs = {}...

20th August 2017
by MPan1 Go to last post
10 338
Help

Size of spawnmenu

I'm trying to make a page in spawnmenu with multiple elements in it. I'm using PANEL:Dock () to arrange them, like loadoutm = vgui.Create ("DPanel", panel) loadoutm:Dock (TOP) weapm = vgui.Create ("DPanel", panel) weapm:Dock (TOP) But when I'm opening...

20th August 2017
by MediCat Go to last post
6 197
Question

Draw 3d2d when something happens serverside

Im trying to draw a 3d2d text, made on the client, when an entity touches the current entity im trying to draw it on. This is the code. the error it gives is: Tried to use a NULL entity! also I did add the network string but its not shown in the code. ...

20th August 2017
by Zer0nix Go to last post
10 248
Help

SWeaps not working

Hello. I am working on an SCP-RP server, and I have created a number of SWeaps. All of them say "Scripted Weapon" and do not work. I will show one of them, and it is located in (Server)/garrysmod/addons/scp/lua/weapons/hands here is the...

20th August 2017
by smithy285 Go to last post
4 193
Help

Simple Percent Funtion

I'm trying to figure out how to make some text on the screen that goes up by 5 seconds. Here's what I have so far: percent = 0 local PercentText = vgui.Create( "DLabel" ) PercentText:SetPos(100, 100)

20th August 2017
by MPan1 Go to last post
5 139
Help

solved Lua error?

https://gyazo.com/64dc0c7df79b47db96d4ef8f035cb201 When I open gmod and join a server, it closes and pops up with a message. My files were accidentaly deleted for gmod and cant get them back, help. -thanks

20th August 2017
by Conwayboi Go to last post
0 68
Question

Adding additional info to a console line using lua on a server(not my own)

I am wondering whether it's possible to add something along the lines of string.ToMinutesSeconds( os.time() ) to the start of every console line in order to determine the time at which everything happend. Probably not possible, but hey maybe there's...

20th August 2017
by RuslanMashino Go to last post
3 144
Question

Giving a SteamID64 a number

Basically, I want to give a SteamID64 a number. I know, it seems useless- but trust me, I need it. Example: 76561197960279927 => 1 76561197960287930 => 2 etc How would I go about doing this?

20th August 2017
by G4MB!T Go to last post
7 309
Help

BodyGroups on Spawn

Good day, I'm working for a Clone Wars server that is in development, and I'm getting some issues about some really important stuff. What I would like to ask to you guys, is how to put some bodygroups on a skin for a certain job when the player is...

20th August 2017
by Advena Go to last post
2 103
Help

I need a toggleable effect

I'm trying to have reaload key toggle between the following variables in a swep ply:SetRenderMode(RENDERMODE_NORMAL) ply:SetColor(Color(255, 255, 255, 255)) ply:SetRenderMode(RENDERMODE_TRANSALPHA) ply:SetColor(Color(0, 0, 0, 50)) please...

20th August 2017
by kpjVideo Go to last post
4 150
Help

[Gmod] Need help removing player Ragdolls after spawning

Im fairly new at lua so there might be an obvious answer but I can't find it. I'm creating an addon and it requires spawning in a ragdoll when a player dies. I can do that but when they spawn back in, I need to get rid of that specific ragdoll and I don't...

19th August 2017
by Simard302 Go to last post
0 73
Help

solved I'm programming a game mode and I need some help

I want program a game mode and I've got some problem. I want to send a variable from the server side to the cliend side. The problem is the game writes for "util.AddNetworkString(money)" --> a nil value. Please help my I can't get the what is the problem....

19th August 2017
by iJohnny Go to last post
3 166
Love

solved Im giving away all of my code, do as you please with it.

So iv been working on this mod for some time, but just as everything related to programming that I have ever done... It ends on failure and much regret. I have hit a wall and it has been very long since Iv been able to fix anything, but I don't want to...

19th August 2017
by alemismun Go to last post
3 322
Help

Webhooks

soooo imma tryin to do something like when someone gets a reward on patreon it'll send it back to the player on garry's mod server and by research I found out something called "webhooks" so I searched about it... failing... So I am asking how/where I can...

19th August 2017
by MPan1 Go to last post
13 531
Help

resource.AddWorkshop is not downloading to client.

Workshop.lua not downloading content to client. lua/autorun/server/workshop.lua: http://puu.sh/xc20U/49d95a3b87.png Steam API Key and workshop ID match command line. SteamAPI: http://puu.sh/xc22B/dc16a332b3.png Workshop collection ID:...

19th August 2017
by GalaxyBeatzz Go to last post
2 140
Help

solved Spawning Vehicles using ents.Create?

Now I have done my research, I haven't found much though. Here is what I have; net.Receive( "av_vehicle_spawn", function( len, pl ) local tab = net.ReadTable() local ent = ents.Create( tostring(AV.Vehicles ]) ) ent:SetPos( AV.Vehicles_Hangars...

19th August 2017
by JacobsReturn Go to last post
3 75
Lua

solved [2017] GmodStore Garry's Mod Gamemode Competition ( 2 3 4 5 .. 9 10 11 12 Last )

Welcome back to another Gamemode Competition thread! The last one went well enough that people were interested in another one. Naturally I had to choose a better time than before so now we're here! GmodStore is the main body behind this competition and is...

Nookyava Thread has images Winner x 22
19th August 2017
by Nookyava Go to last post
446 43,503
Help

solved Help on disabling noclip for users [DarkRP]

So I have sbox_noclip set to one but I have this code from the wiki local function DisableNoclip( ply ) return ply:IsAdmin() end hook.Add( "PlayerNoClip", "DisableNoclip", DisableNoclip ) I like it, it works but the users can noclip for a split...

19th August 2017
by Bkamahl Go to last post
2 128
Request

A detailed Stencil tutorial

I've been trying to figure out how stencils work for some time now, kept giving up on it, trying it again later, repeat, repeat, and I was wondering why isn't there a tutorial on this? And I mean a good detailed tutorial on how to use stencils in gmod?...

18th August 2017
by luka2477 Go to last post
28 7,949
Help

solved Help with level system.

This level system is the only one that i found but other players can't see each other's levels so for example if I have a lower rank than me and I want to see his level I can't. https://github.com/vrondakis/Leveling-System Suggestions?

18th August 2017
by tomasalves8 Go to last post
5 202
Help

HUD Playermodel Broken

So i have the hud known as blurview hud installed and in the hud it displays a 'preview' of the charector you are playing as like in the image seen below, the problem is one of my models is not showing up it is just a bobbing error although the model is...

18th August 2017
by Reagy Go to last post
4 153
Help

solved Storing function return value

I've made a function that returns a string and the function is being ran continuously in a HUDPaint hook. Because the return value doesn't change too often I want to be able to store the variable instead of calculating over and over but I'm unsure how.

18th August 2017
by geferon Go to last post
1 79
Help

Drawing stencil skybox walls?

This post is probably gonna seem dumb to most of you. Anyways... I'm currently making an infinite map in GMod but I need to draw the skybox in another way than from the map itself. Is it possible to draw a textured box around the players eyes that only...

18th August 2017
by NeatNit Go to last post
1 170
Help

Creating Multiple Conditions Using a Table

Hey guys I am making a nutscript schema and recently developed two armor systems. One of them changes your model while the other adds PAC Editor parts to the player. I am trying to make it so you can't equip pac parts and/or hats when wearing a armor set....

18th August 2017
by pogh10 Go to last post
0 122
Lua

Color text effect (sin,cos,tan?!)

How make it effect text color??!! I don't know! help me! http://imgur.com/a/wB66A

18th August 2017
by zzaacckk Go to last post
11 398
Question

solved ents.CreateClientProp returns a NULL entity

Here's the code that is run when a packet is received (with the net library): local ent = ents.CreateClientProp("models/REDACTED.mdl"); ent:Spawn(); GAMEMODE.associatedModels]] = ent; When I later print the table, it says that the client entity is a...

18th August 2017
by lvivtotoroyt Go to last post
16 251
Help

Changing Velocity when an object is punched?

Now I understand I can render my object when a player touches it, but what about punching? As when you punch lets say a helicopter bomb, it starts rolling, the more you bunch fast it gets, how do I make it so the "fists" are super strong and set the...

18th August 2017
by code_gs Go to last post
3 105
Help

GetSize function on docked panel

Hey, I'm trying to get the size of a docked panel with GetWide() but it doesn't work. Is there a specific way to do that? Pic of my problem : http://prntscr.com/g9sy78 As you can see the button is not at the limit of my docked panel (in white)

18th August 2017
by Luni Go to last post
2 95
Help

solved Code problem

local function HolsterScript( target, dmginfo ) if ( target:IsPlayer() and dmginfo:IsBulletDamage() ) then target:PrintMessage( HUD_PRINTCONSOLE, "say /holster" ) end end hook.Add("PlayerTraceAttack", "holsterscript", HolsterScript) ...

18th August 2017
by collin4lizard Go to last post
10 137
Help

solved Run command when taken damage

Is there a possible way, that I can make my clientside run a command when I take damage. I.e. "say /holster", when someone starts shooting me. I was thinking I could do sort of an If, else thing with OnTakeDamage but im not too sure on how to go about...

18th August 2017
by collin4lizard Go to last post
25 348
Question

Multiple Entities

Is it possible to create more than one entity in one script? For example: AddCSLuaFile() DEFINE_BASECLASS("base_anim") etc... DEFINE_BASECLASS("weapon_base")

17th August 2017
by Tsujimoto18 Go to last post
7 230
Help

Retriving all Materls or Models from gmod?

Hi, for my door swep I was making a while ago I realised all the materials were set? How may I grab them from gmod in general? File.find?

17th August 2017
by JacobsReturn Go to last post
0 69
Help

Timer delay problem

I use timer.Create (clientside) with a delay of 0.1 and infinite reps. Whenever I edit the 0.1 value in-game it uses the correct delay, whenever I keep 0.1 as value and restart the server it will completely ignore the delay and just spam as fast as it...

17th August 2017
by NeatNit Go to last post
9 202
Help

Item that refill the Stamina.

hey im working with this code: sound.Add( { name = "Breathing", channel = CHAN_AUTO, volume = 1.0, level = 80, pitch = { 95, 110 }, sound = "player/breathe.wav"

17th August 2017
by Sodak Go to last post
7 239
Help

ENT:Touch being called twice

AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") util.AddNetworkString( "red_score" ) function ENT:Initialize() self:SetModel("models/props_phx/misc/soccerball.mdl") self:PhysicsInit(SOLID_VPHYSICS)...

17th August 2017
by code_gs Go to last post
6 181
Lua

Creating trigger entities and storing collision order?

So this is my first post, and I'm attempting to create a gamemode similar to trikzsurf like how skyworld works in CSS. They use sourcemod to create triggers ingame and then based on which triggers the player has landed on and what order, it can tell the...

17th August 2017
by code_gs Go to last post
22 469
Help

Map errors / don't affect performance but would love to get rid of them!

Attempted to create unknown entity info_ladder I have full CSS installed, have uninstalled all server content, removed CSS mounts, remounted several times and the same issue occurs across most maps I used. I'd like someone to suggest how this can be...

17th August 2017
by code_gs Go to last post
2 77
Help

lua_openscript

I am trying to test scripts using the "lua_openscript" command in console and tested it with a simple line "print ("Hello World")" And I get this https://gyazo.com/742d4ca4ed1bb5963fd9f415ce37636b Don't know what to do.

17th August 2017
by NeatNit Go to last post
10 279
Help

Stop NPC Weapon Drop

So i have a pretty shitty swrp server im working on and when you kill a NPC it drops the weapon that the NPC was using, therefore if i walk over it i will pick up the weapon. I would like it so the weapon is not picked up, i do not mind how this is...

17th August 2017
by Acecool Go to last post
2 150
Help

gmod set car's angles

So i'm trying to set my car's angles doing this serverside. function setCarAngle(ply) --if !IsValid(ply:GetVehicle()) then return end --veh = ply:GetVehicle() print(veh) Entity(185):SetAngles(Angle(90, 90, 90)) end yet the car's angles act...

17th August 2017
by Acecool Go to last post
5 241
Help

Two little questions

Hello, First question/problem: I have a client lua file into gamemode/modules/vgui and i want to include the database file who is into gamemode/modules. How to navigate in differents folder like that ? Last question/problem: In a derma...

17th August 2017
by Acecool Go to last post
1 101