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

Let's talk about backdoors

Right since I feel bad cluttering up the WAYWO thread with arguments about how combatting backdoors is best fulfilled. I presented a potential approach to the problem and it was met with a significant quantity of deconstruction on the idea that users...

26th August 2017
by G4MB!T Go to last post
3 445
Lua

Connect/Disconnect System

How i can change the Textcolor? PrintMessage( HUD_PRINTTALK, "Spieler "..data.." ("..data..") betretet den Server!" ) PS:Its an German Script!

26th August 2017
by G4MB!T Go to last post
6 354
Help

Custom chat glitch

local function injCol(c, alp) return Color(c.r, c.g, c.b, alp) end local PNL = {} local pv = {} VoicePanelColl = nil function PNL:Init() self.Avatar = vgui.Create("AvatarImage", self)

26th August 2017
by lemonhead Go to last post
10 340
Help

Custom model spawn icon? (materials/spawnicons)?

I have made a custom tool that uses the "propselect" control in build cpanel. Thus it uses the spawn icons in Materials/spawnicons/models. I want mine to be a custom image png. Problem is, th only way to do it is to let the game generate one, then go into...

25th August 2017
by Tangyboxhead Go to last post
0 66
Help

solved viewmodel offset / bugged after shooting

after you shoot the silenced pistol for example, the silencer of your viewmodel gets bugged away and i dont know why. this happens also with many other weapons. before shooting or after reloading (reloading fixes the bug until you shoot again) ...

25th August 2017
by CupCakeR Go to last post
10 335
Lua

SWEP: ViewModelBoneMods not working?

I was messing around with SWEP Construction Kit and thought of a funny gun idea: a "finger" gun. Y'know, when you hold your fingers up in the shape of a gun. I got this from the the "print to console" button: SWEP.HoldType = "pistol"...

25th August 2017
by Asian Aimbot Go to last post
3 460
Lua

Best way to send a table with a net message to the client?

Hi, quick question, what is the best way to send a table via a net message to a client? The table is bigger than 64kb so net.writetable and net.readtable does not work and says unknown type. Thank you.

25th August 2017
by code_gs Go to last post
3 169
Help

solved Hold type for SWEP remains in neutral regardless of what I do & Help making a sword-type SWEP

I know this sounds dumb but I've tried setting the script to make it shared rather than server-side as suggested by another thread I read, function SWEP:Initialize() self:SetWeaponHoldType("melee") end and yet, in third person, anyone using the SWEP...

25th August 2017
by Asian Aimbot Go to last post
1 57
Help

solved [LUA] Quick question about FindInSphere

Hello, I am creating a gas that spreads and I am trying to make it so it searches near every player if there's one of those gas entities. Only problem is I want to FindInSphere but it returns entities that aren't the gas, and to filter them out I would...

25th August 2017
by Ubre Go to last post
2 85
Lua

GetModel getting wrong model path

Hey guys, I'm having an issue with the GetModel function currently as it isn't returning full model paths for custom models. The model it's returning is models/deadpool/deadpool.mdl when it should be returning ...

25th August 2017
by _Messiah Go to last post
0 114
Lua

Table Function - How can i sett the Data in 1 Line of a Table

Hello, im currently get this: 1 = 5 2 = 1 3 = 0 4 = 0 5 = Bürger 6 = 76561198399527982

25th August 2017
by SgtVictor Go to last post
6 126
Lua

Searching Utime - Ultimate Edition (Utime for MySQL)

Hello, im still searching for the Utime Ultimate Edition (https://forums.ulyssesmod.net/index.php/topic,9320.0.html). Im working on my Scoreboard and with SqlLite it still working but i want to set it in MySQL for our DarkRP project. Anyone can...

25th August 2017
by SgtVictor Go to last post
0 130
Help

Getting the "pistol" part of the viewmodel

I would like to get rid of the "pistol" part of the swep, but idk how. When I receive the viewmodel it is with the hands, when I would like to have a pistol part of models/weapons/v_pistol.mdl Is there a function or something? Thanks :D

25th August 2017
by Gmod4phun Go to last post
6 198
Help

How can I prevent dropped weapons from moving once dropped

I want to have it so that weapons can't be crowbarred or pushed by grenade explosions etc once they have been dropped on the ground. But gravity can still move it after you drop it. I want them to act exactly the same way as ammo. From what I...

25th August 2017
by Gmod4phun Go to last post
3 168
Help

"self.Owner:Kill();" gives error "attempt to call method 'Kill' (a nil value) "

I am trying to create a gun that kills the user upon firing, most of the stuff I want works except the kill part The code section in question: function SWEP:PrimaryAttack() if ( !self:CanPrimaryAttack() ) then return end ...

25th August 2017
by G4MB!T Go to last post
14 458
Help

Prop counter

Hi I have problem. I'm doing custom HUD and want to make prop counter. I don't really know how to do it. If anyone can help me I would be thankful.

25th August 2017
by code_gs Go to last post
8 213
Lua

Two Lua Error

lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 215 1. error - :-1 2. ReadType - lua/includes/extensions/net.lua:182 3. func - addons/darkrpmodification/lua/darkrp_modules/eleganthud/cl_elegant.lua:771 4. unknown -...

25th August 2017
by NeatNit Go to last post
6 157
Question

SQLite -> MySQL Transfer

Hi! I've been trying to transfer from sv.db -> a MariaDB (MySQL) database on PHPMyAdmin. First, I tried dumping the sqlite and importing it. Doesn't work since the syntax between SQLite and MySQL is different (e.g. MANY errors such as AUTOINCREMENT...

24th August 2017
by drdinosaur Go to last post
10 319
Help

PermaProps migration issue

Hi there, I migrated my Garry's Mod server between hosts yesterday and copied the addon folder for PermaProps to my new server - however the PermaProps are no longer spawning on my new server and the PermaProps tool is not shown in the Q menu. I...

24th August 2017
by Apickx Go to last post
10 241
Question

Image Size

Dear Readers, Ive been making a HUD and i want to insert my self made HUD (made with photoshop) in it. Im using this code and it's all working fine. local breen_img = vgui.Create( "DImage", Frame ) breen_img:SetPos( 800, 600 ) ...

24th August 2017
by E-Servers Go to last post
3 114
Help

Combine Soldiers not emitting sound

I'm trying to work with a script that replaces combine soldier's sounds based on their model. I've managed to replace pain and death sounds, but the sounds in npc/combine_soldier/vo/ are not returned by the EntityEmitSound hook. I've tried printing...

24th August 2017
by Minelayer Go to last post
2 112
Help

Picture in HUD

Dear Readers, Ive been using lua for sometime now, but i still don't know how to put a picture in lua. I want to use my own custom picture. I saw some scripts but it keep getting purple and black boxes. Also if i want to put someones steam profile...

24th August 2017
by MPan1 Go to last post
5 224
Help

solved Get weapon stats serverside

So i've been working on some nextbots an came across a thread wich showed how to give them a weapon entity. I used self.Weapon:GetMaxClip1() to get the weapons clip and make them reload, however there is no function to obtain other stats such as the...

24th August 2017
by code_gs Go to last post
12 272
Help

solved Entity has no damage collisions?

I have my ball, whenever its effected by any type of weapon it doesn't move, bullets go through it. AddCSLuaFile() ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "GBall" ENT.Author = "" ENT.Contact = ""

24th August 2017
by BanterChicken Go to last post
3 82
Help

solved Drawing Materials onto a ball using 2d3d

Hello, if there is any other option please tell me. I want to make my ball look like this... The problem is I don't know how to draw html onto a ball? (I want to draw that pattern on each ball face like Rocket League) If this is not possible, I...

24th August 2017
by JacobsReturn Go to last post
0 70
Help

solved EyeAngles not working

For some reason EyeAngles is massively broken on my server, an example of which can be seen in this video. EyeAngles() always returns the same value, unless I am looking in this very specific place in the map (it is literally broken anywhere else)....

23rd August 2017
by syl0r Go to last post
8 240
Help

Location of DImage

Dear Readers, I still got some questions. I want to put my own photo in screen. For my DarkRP HUD that im making. But where do i have to put the file in order to let it work. I tryed everything now. Here is the code that im using: local...

23rd August 2017
by E-Servers Go to last post
6 141
Question

Darkrp Arrest baton: changing colors on use.

Hi, I am trying to get the Darkrp Arrest baton to change colors upon using. I have tried many ways to attempt at doing this. If anyone could help me that would be great. It has a material so conventional setcolor or setweaponcolor doesn't work. This was...

23rd August 2017
by epii Go to last post
9 183
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 105
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 149
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 118
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 61
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 88
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 240
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 210
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 118
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 642
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 114
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 106
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 104
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 217
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 157
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 115
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 114
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 137
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 97
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 311
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 66
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 135
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 187
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 163
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 417
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 61
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 129
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 122
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 107
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 234
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 268
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 137
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 213
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 365
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 93
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 299
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 119
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 107
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 184
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 140
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 349
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 223
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 263
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 208
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 146
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 71
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 151
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 323
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 112
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 156
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 77
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 179
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 334