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

Murder gamemode. How to make murderer can disguise playermodels when using pointshop1 models?

When murderer disguise on dead players corpse it just change names and colors. (if playermodel is default citizens then cloths colors too) But i'm using pointshop1 and murderer can't distuise corpse's playermodel when dead players were using custom...

15th February 2016
by csw970101 Go to last post
4 604
Help

Pretty bad darkrp mysql problem

Hey, so i recently got DarkRP to work with mysql, after our java dev took like an entire day to make a script to upload the sv.db to mysql (because darkrp doesnt have this for some reason) Now every time someone rejoins their rank is reset to user in...

15th February 2016
by dhog10 Go to last post
0 91
Help

Changing Players Nickname using Derma Textentry

So how do I change the players nickname in my gamemode using Derma Text Entry This is my code for the text entries this is on cl_init.lua I think the function may have to be called on the init.lua but IDK if someone could explain that would be great! ...

15th February 2016
by whitestar Go to last post
13 370
Lua

solved Clearing bans list.

Hello, how can I easily clear my ULX bans list without doing it manually in game?

15th February 2016
by whitestar Go to last post
1 101
Help

ULX Command returning "expected then near =" error

Hey guys, So I've been doing some work on a ULX command for Garry's Mod (ofc). Pretty much the user inputs how much they wish to "bet" from their pool of points, and a math.random round is done to pull up a random number. If that number in ends in a...

15th February 2016
by Kaibirdz Go to last post
7 506
Lua

solved Net Failing?

lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 88 error - :-1 ReadType - lua/includes/extensions/net.lua:182 ReadType - lua/includes/extensions/net.lua:121 ReadTable - lua/includes/extensions/net.lua:124 func -...

15th February 2016
by xbeastguyx Go to last post
2 195
Lua

solved math.random in a table?

I have this table here local teams = {} --Citizen teams = { name = "Citizen", color = Color( 39, 174, 96 ), model = { "models/player/Group01/Male_01.mdl", "models/player/Group01/Male_02.mdl",

15th February 2016
by Austin1346 Go to last post
4 105
Help

solved adding !donate !steamgroup !website to my server

I was wondering if someone could tell me where I can add my custom urls to these commands in ulx.

15th February 2016
by KTBM Go to last post
8 867
Lua

[White-list] Simple white list and managment

A simple white list addon. Written completely server side. Only players who are on the white-list can join, players who aren't can't join. Kind of like a nightclub, only people on the list can get in. Features: Admin notifications- Notifies admins...

15th February 2016
by GGG KILLER Go to last post
18 9,313
Help

net.Send error

For the life of me I can't work out why this won't work. Error: lua/client.lua:1: Calling net.Start with unpooled message name! 1. Start - :-1 2. unknown - lua/client.lua:1 Server code: util.AddNetworkString("report")

15th February 2016
by Red.. Go to last post
2 208
Help

solved Present Vs. Past Variables

Is it possible to set a variable once a condition has occurred, and not while the condition is occurring? For example: if localplayer:Health() >= 0 then playerIsAlive = true end if playerIsAlive then print("You have been alive at some...

15th February 2016
by TrenchFroast Go to last post
4 379
Lua

solved Check for right click on a derma panel

Hello everyone, Im trying to open a small menu when i right click on a DList, However im having 2 problems. First of all, Im trying to make the menu open using right click with this code: local mcode = 108 function...

15th February 2016
by GGG KILLER Go to last post
3 308
Help

Anti spawn kill sometimes glitching

Hello, I manage a murder server and I'm trying to learn lua to spice things up a bit, but most of the time I just have no idea what I'm doing. I wanted a simple ~10sec spawn protection, so I took this code and modded it a bit to display when the spawn...

15th February 2016
by GGG KILLER Go to last post
6 604
Lua

DrawBloom Squiggly

See the problem? Is there any way to make DrawBloom have uniform brightness?

14th February 2016
by ThaBullfrog Go to last post
2 324
Help

solved setting the alpha of an animated material

How would i set an animated texture's alpha in lua? The material I'm trying to do it with is: models/shadertest/predator I tried using render.SetBlend, but it had no effect. Anyone have any ideas?

14th February 2016
by hghg1 Go to last post
7 249
Help

solved GMPublish

Compressing.. => Failed! What should I do?

14th February 2016
by Robotboy655 Go to last post
6 219
Lua

solved Friendly Zombies

Delete?

14th February 2016
by Micro230 Go to last post
0 208
Help

solved I updated darkrp and this happend.

So I updated darkrp and then when ever i try to change to any type of CP job i get this error: A runtime error has occurred in "addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua" on line 94.The best help I can give you is this: bad...

14th February 2016
by zippy36jr Go to last post
2 141
Help

HUGE ERROR - NEED FIXED ASAP

I am owner a starwarsRP server that gets around 20 people or so and I keep getting this error so please help! It keep putting me in the joining/connecting group and I can join any job . addons/ulx/lua/ulx/modules/cl/xgui_helpers.lua:224: attempt to...

14th February 2016
by BillyOnWiiU Go to last post
4 200
Help

ULX rank hooks

Hey so, i find it sort of wierd that ULX doesn't support mysql anyway, but i'm trying to make a system to link ulx ranks over two servers, however i literally cannot find the hook that is called when someones rank is changed? Surely this exists? Could...

14th February 2016
by whitestar Go to last post
3 214
Lua

Best DarkRP Anti-Cheat?

Yo bitches, so I'm making a new DarkRP server, and I obviously don't want hackers to cheat on my server. So... What's the best Anti-Cheat software out there?

14th February 2016
by thecubanpimp Go to last post
22 1,256
Help

using viewmodel animations for the worldmodel

Hello facepunch, just a quick question... I recently made a swep with a custom viewmodel along with it's animation using the hl2 skeleton. Can anyone help me figure this out by telling me if it is possible to use the viewmodel animations/sequences...

14th February 2016
by Warmeup Go to last post
0 90
Lua

HUD Alignment for resolution

Alright, so I made my first HUD, and even tho I'm using precentage according to my current res (1920x1080) It still doesn't work on other resolutions, I've looked for a solution, but still not working for me. Any help? HUD in 1920x1080 -...

14th February 2016
by WhiskerNip Go to last post
10 1,004
Lua

solved GM:PlayerShouldTakeDamage from world

I am currently working on this new gamemode for GMod and I have run into a problem. There is a map with poison water that is creating errors for my GM:ShouldTakeDamage event. I know its something stupid but I can't find out what it is. Here is the code...

14th February 2016
by Micro230 Go to last post
2 148
Lua

Message when player joins

Message appears in the middle of the screen when player joins. I wanted to know if there is a way to when a player joins the server a big message pops in the middle of the screen saying something or welcome I don't know I just need to find a way to how...

14th February 2016
by GGG KILLER Go to last post
23 1,618
Question

Cascading Style Sheets (CSS) in Gmod?

Hi All -- I'm looking for a way to format text in Gmod -- the world, not a panel -- using CSS. The formatting options in Gmod and Lua are not enough. Google is all dead ends. Anyone have any ideas? Thanks in advance.

14th February 2016
by jimtobias Go to last post
4 238
Lua

solved Weird question about a talbe/for loop

I have this code that puts a weapons name and price from a table on a button. It works fine, but it doesn't make the buttons in the order that it reads the tables/in the order they are created. local addWeapon = {} addWeapon = { name = "CZ-75",...

14th February 2016
by Austin1346 Go to last post
9 552
Help

IMaterial:SetTexture() Doesn't do a Thing

The result of the following code is the mat_mymaterial is rendered as a screen quad unmodified as if the SetTexture line does nothing. I've pretty much ruled out any of the other lines being screwed up. They should be correct, but I may be wrong. ...

14th February 2016
by ThaBullfrog Go to last post
3 195
Lua

solved How to properly make a config for an addon?

I have a Derma window that pops up and displays a DIconLayout. I'm attmepting to make a config for easy editing/access. Here is my table so far local gamemode.ents.ShopNpc = {} local gamemode.ents.ShopNpc = { --Number of panels NumPanels = 36;...

14th February 2016
by Austin1346 Go to last post
6 160
Poll

FOVE VR is coming to Garry's Mod

-snip- Will reboot thread once the module is working an finished. :cry:

14th February 2016
by BlueMustache Go to last post
15 545
Lua

Lightsaber animations on custom player models

The title says it all. I'm just here asking if someone can explain to me how to add custom lightsaber animations onto custom player models or refer to a video/thread that explains it. Thanks!

14th February 2016
by phimatt Go to last post
10 476
Help

solved Pointshop unclickable

I am having an issue with my pointshop 1, that once opened, (f3) any tabs or "playermodels" or any other things purchasable, are unclickable. The game isn't frozen (pointshop can be closed with f3 and people are still heard when they use voice chat) and...

14th February 2016
by MissMeow Go to last post
2 152
Help

solved Remove map props?

So I own a darkrp server and this map I use has a lot of annoying props that spawn. Is there any way to remove these props from the map? Ive seen other servers do it but have no idea how to do it, Can someone show me how to do this? thanks!

14th February 2016
by JoeyJohn Go to last post
9 380
Help

Automating Enjin Website Sign-up to give users a regular rank?

I'm not sure if I'm supposed to use a listen server or what? I automated a donation page but that was pretty simple. I can't really customize enjin that much, and I don't have the ability to fully code my own website with quality forums, etc. Is it...

14th February 2016
by GGG KILLER Go to last post
12 966
Help

solved Draw client lines between players

So I wanted to draw lines between players for my SCP Server, so when you see SCP-096 the player (as SCP-096) will have a line drawn from his position to the player(s)'s position who has seen him. I've problems with the "draw line" part. Here what I...

14th February 2016
by annilator3000 Go to last post
2 159
Help
13th February 2016
by IamBrett Go to last post
4 131
Help

solved Change playermodels model Locally and not entire servers

How do I make it so the Playermodel sets Locally so that only the player who has this function run changes model and not everyone in the server? I basically have a gmod character creation system VIDEO: https://www.youtube.com/watch?v=K2o1uNZnjKM I...

13th February 2016
by MLPG Go to last post
10 418
Lua

Render Target \ Texture \ RT Cams (Insurgency Scopes): Getting them to work properly?

So I've been getting the old Insurgency: MC stuff onto a SWEP base, and in the process of doing so I realized that the sniper scopes display this . I've seen somebody get them to work in GMod before, but I wasn't sure how they went about doing it....

13th February 2016
by Kogitsune Go to last post
1 161
Lua

solved Most efficient way to do this?

I have a table, mytbl. This table contains other tables that contain strings, so something like this: local mytbl = {} mytbl.one = {} mytbl.two = {} mytbl.one = "FirstValue" mytbl.one = "SecondValue" mytbl.one = "ThirdValue" mytbl.two = "Value1"

13th February 2016
by JasonMan34 Go to last post
7 244
Help

Stopping sounds that use sound.Play()?

Does anyone know a way to stop sounds that use sound.Play()? I recently decided to make my SNPCs use sound.Play() instead of CreateSound() but I realized that you can't stop the sounds like you normally would. Thanks

13th February 2016
by MastaChiefHL2 Go to last post
0 106
Lua

Custom chat commands [Help]

Hi so I am still a lua noob so I come her for help :3. I tried to make my own command e.g. a /advert command but instead of it would say . So I navigated through the gamemode folder and found sv_chatcommands.lua and sh_chatcommands.lua, Opened...

13th February 2016
by Regis Go to last post
5 276
Lua

Animation for my SWEP

Okay so.. I made this using the SWEP Construction Kit and Bob's base. There in the user guide it said ''another great thing to do is adding animation. You can change to values of the elements in the self.VElements and self.WElements tables on the fly....

13th February 2016
by soriso Go to last post
0 110
Help

solved Unknown Crashes

Hello, My server has been crashing the past couple of days randomly but not very often however it is crashing up to 9 times a day now and I cant figure out why? All I know if before the server crashes we receive this error in console. ERROR!...

13th February 2016
by JJ_Ellis Go to last post
3 279
Games

Forcing players to cl_updaterate ?

Hi ! I know it is possible to restrict client rates to the server but I don't know how and where to put it. I want to restrict clients for : rate 100000 cl_updaterate 33 cl_cmdrate 33 sv_max_queries_sec_global 150

13th February 2016
by Regis Go to last post
0 220
Help

Halo outlines for players current model (prophunt clone)

Hey guys. I've added halo effects for props in my prophunt clone, to let them easily see where other player props are so they don't stack up too much. The problem is, of course, that I can't get the outline to be around the model the player is, it is...

13th February 2016
by fabelwesen Go to last post
0 100
Question

solved DarkRP Editing Chat commands

I'm working on my own custom gamemode (BMRP), and I have no clue where to find the original code for the chat commands in-order to edit them to my liking. I tried looking all over the module folder, and came up with nothing. If someone could post the...

13th February 2016
by Kevin Adams Go to last post
6 1,628
Help

solved DModelPanel How do I set models skin

Hey! I'm making a derma menu. I'm using DModePanel and I'm trying to set the models skin using the skin index. Here is my code how do I get this to work? please and thankyou. local icon = vgui.Create( "DModelPanel", Frame ) icon:SetPos( 0, 600 )...

13th February 2016
by MLPG Go to last post
2 212
Lua

Model on HUD

I am almost finishing my HUD the only thing I need is help with the model that people normaly add to HUD that you can set to appear the whole body or just the face and stuff. I was trying to find a tutorial for it but I couldn't find a new one or one that...

13th February 2016
by Athods Go to last post
10 746
Help

How can I stop serverside FireBullets from networking to the attacking player?

attacker:FireBullets(bul) Networks to the attacking player, meaning there are two bullets once prediction comes into play. attacker:FireBullets(bul,attacker) No difference here. SuppressHostEvents(attacker) attacker:FireBullets(bul,attacker)

TFA
13th February 2016
by TFA Go to last post
0 121
Lua

solved [Lua] Using the Move Hook to Change the Player's Speed

I'm trying to use the move hook to change the player's max speed in my script, but for some reason it's making the player go hyper speed. I've checked the math in a calculator and it doesn't make any sense so maybe someone here can see the error. if...

12th February 2016
by Lucky9Two Go to last post
5 317
Lua

How to check if LocalPlayer() is writing?

Hi, Imagine I had my vgui binded to the key T this way : hook.Add("Think" , "detectkey" , function() if not CLIENT then return end if (input.IsKeyDown( KEY_T ) then openmenu() end end)

12th February 2016
by HappyGhetto Go to last post
4 282
Help

Money Printer Error.

gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:354: Entity 'money_printer' does not exist or is not valid. 1. error - :-1 2. defaultSpawn - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:354 3. callback -...

12th February 2016
by Kyle_1337 Go to last post
2 338
Lua

solved Seeking advice on writing a GLua cheat

Hi there i'm somebody who has been doing GLua for 4 months, I've mainly worked around derma and want to branch out and do some different things in order to become better and more experienced. I've seen many people learn Lua through writing a cheat which...

12th February 2016
by SexyBeast71 Go to last post
13 690
Lua

solved Game Crashes while coding

Around 1 day ago I was making a HUD for my server in singleplayer using the DarkRP gamemode and after coding some stuff my game just crashed for no reason, no error messages, no errors in the code or at least I think there is no errors, because when I...

12th February 2016
by Athods Go to last post
13 323
Help

PAC 3 Models lag/flicker

Hi, I've searched up this problem many times, and have only come with 2 solutions which I have done, but still no change! From what another user said "This was a problem I used to have on a server of mine, and is now happening on a friends, which leads me...

12th February 2016
by SoggyWontonz Go to last post
0 103
Lua

Darkrp Idea: Random server events

The Idea came to me earlier to have random server events in gmod darkrp. Basically how this would work is by random chance every so often certain things could happen in the game, such as NPC bosses spawning, or zombie hordes loading into the world and...

12th February 2016
by swinginman Go to last post
5 348
Games

solved Server optimization

Hi guys , today I post a message because I don't know how to do... I searched a lot of time before posting but I don't find anything who can resolve my problem. Specs of the server : Intel i7-4790K 4,0 / 4,4 GHz 32 Go...

12th February 2016
by Regis Go to last post
14 1,533
Question

solved Convars for gamemodes?

Can someone explain/make a tutorial on how they work as I can't find anything that explains anything about them, all I can find is german videos. I want to know how the convar settings in gamemode works, and how to setup a convar inside a gamemode

12th February 2016
by Giraffen93 Go to last post
1 150
Lua

solved Animate a DButton to fade in?

I have this snippet here that I wrote to change the buttons color if the mouse is over it and then change the color to red. local buttonCloseColor = Color( 0, 0, 0, 180 ) local isCursorOver = false buttonClose.Paint = function( self, w, h ) ...

12th February 2016
by Austin1346 Go to last post
3 134
Stupid

solved Getting a player's primary?

Basically, I need to know the primary weapon a player currently holds (GM is TTT). I tried using ply:GetWeapons(), because it seemed like that's where the primary is located on the table, but it acted weird. This is PrintTable of ply:GetWeapons()...

12th February 2016
by JasonMan34 Go to last post
2 114
Help

Custom voting hud

Hello guys! I search this addon or instruction ho i can do this! I need to do custom voting hud like the picture Which will work when you press F1 F2

12th February 2016
by iJohnny Go to last post
20 512
Lua

Efficient networking of an int that is often changing

I want to be networking the health of an entity to its owner for information purposes. As it is health, it is often changing. The highest the values would go is probably 10000. What is the most efficient way to do this, just a net.WriteInt(16) to that...

12th February 2016
by Fortune11709 Go to last post
3 318
Request

Scoreboard error.

Hello, I am experiencing trouble with a scoreboard on my GMod server, here is the error: gamemodes/townrp/gamemode/scoreboard/player_row.lua:71: bad argument #1 to 'SetMaterial' (IMaterial expected, got nil) 1. SetMaterial - :-1 2. unknown -...

12th February 2016
by KTBM Go to last post
3 220
Question

Draw the shape made by ents library?

Is there a way to draw a shape made by the ents library? ex. Draw the Cone made by ents.FindInCone()?

12th February 2016
by hootiegerbil Go to last post
2 268
Question

solved My gamemode isn't showing up with menusystem 1

Hi I don't know what's wrong, it's on workshop and it doesn't show up in me https://github.com/Newbrict/ObjHunt/blob/master/objhunt.txt

12th February 2016
by Newbrict Go to last post
0 150
Lua

Exploit Fix Guide

Hello, I recently found out how to take a look at clientside code of other servers and decided to take a look at how secure their server is. I have visited ~40 darkrp servers so far, the results are quite sad (only visited servers having sv_allowcslua...

11th February 2016
by RusticSeven Go to last post
33 6,958
Help

solved Run Code Faster Than Think?

I'm trying to run a section of code over and over again as fast as possible. The think hook isn't meeting my needs so I was wondering if anyone knows an efficient way of doing what I need done. I was thinking about creating a timer that runs every...

11th February 2016
by SexyBeast71 Go to last post
13 619
Help

TTT: Bullet to Lasers

Hi guys! I want to know if it is possible to change the TTT's default weapon's tracer from bullets to lasers? I am making a Star Wars TTT so it's crucial for my weapons! I have tried researching the subject, but I am unable to find anything that pertains...

11th February 2016
by DylanKpak Go to last post
4 205
Question

Developping question

I've been trying to learn different languages and as usual the same questions come to my mind. "Where am I supposed to start ?" and "Which way to code it?" I'm not talking about learning LUA, as I've been doing it for quite a long time. I'm talking...

11th February 2016
by John Reese Go to last post
6 577
Help

solved Arrest baton is not working.

So just out of no where the arrest baton in darkrp stopped working when i hit someone with i get this error: 13:41:03 Lua Error: gamemodes/darkrp/gamemode/modules/police/sv_init.lua:288: attempt to call method 'FAdmin_GetGlobal' (a nil value) 1. Call -...

11th February 2016
by zippy36jr Go to last post
0 223
Lua

[Need-Help]GLUA Script, simple playermodel changer !

Hello everybody, I recently tried to make a simple player model changer. When people log on my server, a window popup, and they can choose a model to play with ! But ! It don't work ! (xD). It's really basic, only a DFrame and a DButton ! Here's my ...

11th February 2016
by Traziiex Go to last post
6 244
Lua

How would I make a custom NPC?

My computer crashed in the middle of posting this so I lost all my progress, so this is going to be short. I want to have an NPC on my server that players can walk up to and press their activate/action key (E) and have a derma menu pop up. I can do the...

11th February 2016
by ShadowHedge Go to last post
3 222
Help

Pointshop 2 error

Hello all, I tried looking for a solution on this error however was unsuccessful in my findings. Error: addons/pointshop2/lua/kinv/client/cl_ditem.lua:168: attempt to call method 'getCrashsafeIcon' (a nil value) 1. unknown -...

11th February 2016
by BasicallyGone Go to last post
3 840
Lua

Need help with FAdmin

So I have a starwarsrp server and i need help. When I'm superadmin and type in chat my name is all red and theres a "superadmin" tag before my name. It also messes up with /ooc and /advert which is crucial for the RP. If i create a new job that inherits...

11th February 2016
by trolledurcat Go to last post
2 199
Question

How to set a class select system up?

Hello everyone! I've already built a menu that makes players able to select the class they want to spawn with. I was wondering if any of you had great tips / ideas on which way is the best to do that. I was thinking of retrieving a table from the...

11th February 2016
by Deepnox Go to last post
6 138
Help

Playermodels (and other stuff) never work. Always a big ERROR !

Hello ! I tried many times to find out why the playermodels never work. (Also weapons and trails...) I don't think it's a problem like : People don't have the models. They have theme because when they load the server, they download it, and the file...

11th February 2016
by Traziiex Go to last post
3 192
Help

solved IsValid() not working with tables

Hi, I'm setting up a file client-side that contains tables created like this at the top of the file: local mat = {} mat = {name = "image1", width = 100, height = 100, material = Material("materials/images/img1.png", "unlitgeneric")} mat = {name =...

11th February 2016
by code_gs Go to last post
3 165
Lua

solved GMOD Default list of NPC model paths?

I can only find lists for playermodels. Couldn't seem to find any for npc's. Specifically, what is the path for the male/female citizen models? Hopefully i'm not being stupid and missing an easy way to get the path/model for an NPC.

11th February 2016
by Austin1346 Go to last post
3 827
Help

Falco's Prop Protection.

Hi. I really hope your guys want to help me.. My Falco's Prop Protection is buggy.. My player dosnt could gravity gun money printers (Circle Printers made by Thomas from Scriptfodder) Please help :) -Me

11th February 2016
by Tupac Go to last post
1 318
Help

TTT Server crashing every now and then.

Hello, my TTT server is crashing maybe once or twice a day. It happens at random, but it is still very annoying. I was wondering if I could get some pointers on how I could fix any possible issues that could be causing this.

11th February 2016
by Tupac Go to last post
6 376