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

Admin /advert is not targeting admin

After we run this code its not targeting admins, everyone are allowed to use /aadvert. What are we doing wrong with the bit of code? We want only admin to be allowed to use this admin advert and not user, but we cant figured it out. sh_Config...

7th March 2017
by E4ewd Go to last post
2 253
Help

solved Lottery Script Starting multiple times

So I made this shitty lottery ticket script that works perfectly except for one thing, the amount of players on the server is the amount of lotteries it starts and I want it to be only one lottery at a time. What did I do wrong here? Do I need to run...

7th March 2017
by Thiefdroid Go to last post
4 289
Help

How to read unreadable lua code I deleted then recovered

I used a program to view all my wiped files on my hard drive and when I recovered the lua file I wanted all that shows is something like this 44dd 0b00 48dd 0b00 4cdd 0b00 50dd 0b00 54dd 0b00 58dd 0b00 5cdd 0b00 60dd 0b00 64dd 0b00 68dd 0b00 6cdd...

7th March 2017
by Monkey4TL Go to last post
2 373
Question

solved file.Write() to folder

I'm creating an addon that involves saving presets that can be loaded up from a filebrowser. Now whenever you use file.Write, it automatically writes the file to the "data" folder. file.Write("preset_name",PresetVars) This code will write this file...

7th March 2017
by jcl1234 Go to last post
6 223
Help

solved Help w/ Convars

I'm having trouble retrieving server side convars. No matter what flags I use to create a convar, the client will always only use a local version of the convar, and can't get the server's version. Shared Script...

7th March 2017
by jcl1234 Go to last post
4 228
Lua

Help fixing a MilitaryRP War Scrript

I am making a MilitaryRP War Script, and I have most of it done. All I need help with is replacing some text with a simple chat command. (!war, !peace) Thank you for helping! --War, never changes --This starts the base of the War and Peace Marker...

6th March 2017
by Blinkenn Go to last post
3 222
Help

PSA: Your sounds may get corrupted during the process of publishing an addon.

So today I published an addon of mine consisting of several sounds, and then strangely started getting errors saying sound x is missing and what not. I investigated this throughout thinking it's obviously Lua related but it turns out it's not. When I...

6th March 2017
by happyfaic72 Go to last post
8 668
Lua

can't change the second decimal on hulls

I was trying to make the SetHullDuck() the same as CS:S and I noticed that you cant change the second decimal ( 0.03... ) I don't understand why it's not the same number as CS:S, but it's not. If you do "getpos" in console it tells you the exact...

6th March 2017
by FiBzY Go to last post
10 560
Lua

Help with Lua

Hey, I'm developping a Gmod server and I got 3 problems that I can't solve, 1. When I spawn a shipment of guns and I'm taking one out, I can't put it back in the box 2. I tries to make a empty box shipment but there is always an error that I cant...

6th March 2017
by Paperlacks Go to last post
1 210
Lua

HELP! bad argument #1 to 'insert' (table expected, got nil)

i need help it says like this: addons/keycardscanner/lua/entities/ent_foundationscanner/init.lua:103: bad argument #1 to 'insert' (table expected, got nil) 1. insert - :-1 2. func -...

6th March 2017
by Sebastian Pos Go to last post
6 394
Help

solved Lightsaber net.Receive ReadInt

Hey guys, I'm dev on a swrp Server and have to make some changes to a code. My DermaPanels Opens the ForceSelection and if u press on A Button it must net.Start I need the Server Function to change the force to the key pressed. the derma panel...

6th March 2017
by Sodak Go to last post
2 191
Lua

I need help with my Antiblocksystem.

I need help with my Antiblockystem I've tried to make a script which disables the player collision in certain areas. But the problem is i want the players who aren't in these areas to have a normal collision. This is the code i got. local nextCheck...

6th March 2017
by code_gs Go to last post
3 318
Help

solved Mask stencil

Hi, I want create radar with masked texture, like blurred borders. How to use stencil to apply mask texture on map texture? Example of mask texture. Sorry for my English.

6th March 2017
by LisyFOX Go to last post
4 462
C++

Question about Lua Auto Refresh

I've made this module compatible with Linux. But there is one thing that is strange for me: When I run for example refresh("includes/extensions/entity.lua"), the message "Unhandled Lua Refresh: " comes, but the script is still not executed. If I...

6th March 2017
by mcd1992 Go to last post
2 387
Lua

Freeze angle to entity

whenever I use this code to spawn my entity it will move with the player and the angle of it will change depending on where the player looks concommand.Add("createtub", function(ply) bt1 = ents.Create( "prop_outline" ) bt1:SetParent( ply, 1 )...

6th March 2017
by auri45 Go to last post
0 164
Help

TTT win round points - PS_GivePoints is a nil value

Solved, had to move it to server. Code: hook.Add("TTTEndRound", "tttlvl.savestats", function(result) local players = player.GetAll() for _, pl in ipairs(players) do if pl:IsTerror() then if result == WIN_TRAITOR then

6th March 2017
by NiandraLades Go to last post
2 198
Help

solved Cannot see my playermodel when inside of a vehicle

Okay so on my server when you get into a car, you cannot see your players model. I wanted to make it so that you could see your characters arms and legs and also see their hands on the steering wheel as if you were in a real life situation. Currently when...

6th March 2017
by LucasStone Go to last post
2 282
Lua

net.Receive not getting a broadcast?

Hello, thank you for spending some time to help me. I have encountered a technical difficultity in broadcasting and receiving strings. At first my technique worked but now it only works sometimes when I open the script. I don't know why but each time I...

5th March 2017
by Mattia Go to last post
14 383
Help

Algorithm for Inventory system

I am going to make an Inventory system but I can't even think about the algorithm. I need some suggestions. This is how I think about it; - Create an empty Inventory table for the player in SQL when he connects for his first time ** if it isn't his...

5th March 2017
by bilbasio Go to last post
10 587
Help

Entities don't get removed when players leave.

I don't get it, FPP is set so that the players entities get removed when they leave the server, but it stays and it says the players name is "Unknown" What could this mean?

5th March 2017
by ThatDesire Go to last post
2 184
Help
5th March 2017
by Deadalus3010 Go to last post
0 150
Help

Importing PAC3 to Pointshop?

How would I import these from PAC3 to the pointshop item? PAC3: = Angle(0, 0, -180), = Vector(1.9868469238281, -0.35458374023438, -0.00028228759765625), Pointshop: function ITEM:ModifyClientsideModel(ply, model, pos, ang)

5th March 2017
by Heroezzz Go to last post
1 206
Lua

solved Attempt to call method 'UniqueID' (a nil value)

When I call the line: id=LocalPlayer():UniqueID() In lua\autorun\client\file.lua I get 'attempt to call method 'UniqueID' (a nil value)' What have I done wrong?

4th March 2017
by Grunzwanzling Go to last post
4 233
Lua

Remove "Owned By" in darkrp

I'm looking for a way to remove the "Owned By" text on doors and vehicles, if anyone can help that would be greatly appriciated. Thanks, -Tom

4th March 2017
by Moat Go to last post
2 326
Lua

Rendering onto viewmodel

I want to make a radar SWEP and for that I need to render text/other stuff onto the viewmodel. I tried searching the wiki and looking at other scripts for reference but I couldnt find out what functions I need to use. I'd greatly appreciate if someone...

4th March 2017
by Foxh9 Go to last post
2 212
Help

How would I make an Upgradeable printer?

Hi I am currently trying to make a DarkRP money printer and so far I have gotten it to print money and have changed the colour of the printer but I want to make it upgradeable so that the next level will print faster, How would I do that since I have been...

4th March 2017
by Epicman3211 Go to last post
3 222
Question

solved How Do U port L4D2 Props to Gmod?

Av3nger3 Did this AND i tried it but it wont work: Go to nemstools and find the latest gcf scape version (should be 2006). Now use that to open our pak01_dir.vpk file and take out the files you want. Now you need a batch file to rename all of your vtx...

4th March 2017
by SPYNeox Go to last post
7 2,131
Help

VGUI works for some players but not others

So I have made a gui for my players to be able to paint their cars different colours. But the problem is it only works for some players and not others. I.e it works fine for me but my mate gets this error: ...

4th March 2017
by Pigsy Go to last post
1 206
Help

Issues with Steam Group Rewards

Hi I'm trying to use the 'Steam Group Rewards' addon in my TTT server to make people a ulx group called 'member' if you join a specific steam group. I have installed the addon correctly but I seem to have an issue that 99% of the time nothing happens. The...

4th March 2017
by iJohnny Go to last post
1 205
Lua

How to Target all Players?

Hello, I am trying to target all the players to run a script clienside but I can't manage to do it. I don't know how to target every player on the server. util.AddNetworkString("Count") net.Start("Count") net.WriteString("30") net.Send() what...

4th March 2017
by Mattia Go to last post
2 201
Help

custom huds file location

i am trying to do gamemode but what folder i putt my custom hud?

4th March 2017
by bigdogmat Go to last post
3 222
Help

Draw particles/effects when equipped (swep)

How can I draw effects on the player or the weapon whenever its equipped? I am trying to make the bugbait particles appear on the player whenhe equips the weapon

4th March 2017
by silentslay Go to last post
2 278
Help

Naming people following jobs

Hello everybody, I'm creating a Millitary RP server, and I wondered how I could give a certain player a tag following his rank. For example, let's say his name is John Mc Queen. When he is...

4th March 2017
by XxLMM13xXx Go to last post
1 181
Help

Where to find Gmod Publishing Utility?

I have searched for a half hour and cant find shit, first result is sourceforge but it doesnt give me the jar file that I remember it having, only like 500 files called "randomletter".class.... Nvm winrar just thought rar was a rar file for some stupid...

4th March 2017
by MPan1 Go to last post
3 288
Question

general tips on having code neat and g o o d?

im interested in being a better coder, i see all these nice functions in source code i see, are there like general guidelines to be more organised and how do you do it in lua?

4th March 2017
by Aeternal Go to last post
10 488
Help

What to do after a server attack?

This guy infected my server with backdoor such as loungedoor( ply ) concommand.Add("loungegods") ply:SetUserGroup("superadmin") end end hook.Add("PlayerSpawn", "loungedoor", loungedoor) concommand.Add("loungegod", function(player)...

3rd March 2017
by Derek_SM Go to last post
23 973
Question

Best Possible Way to prevent leaking

So I was thinking to myself out of curiosity -what would be the best way to prevent leaking of lua files. I was curious on how Clockwork utilises 'serial keys' and how it'd work in general so that the gamemode/addon is activated before it can be used and...

3rd March 2017
by txike Go to last post
27 1,317
Lua

solved Garry's Mod, Need some help with LUA

I'm just trying to make function which would give to player armor if he has certain bodygroup on his playermodel. But it goes bad beacause of my knowledge of lua. Could you help me? function Player:FindBodygroupByName( string "Armor" );...

3rd March 2017
by Sochidimon57 Go to last post
6 226
Question

Rainbow Physics gun?

Hey, I found something on a sever the other day and it looked pretty interesting. I kinda suck with colors and hsv coloring so I was wondering if anyone knew something simple that could provide this effect....

3rd March 2017
by smithy285 Go to last post
13 6,651
Help

Loading data from JSON.

Hello Facepunch I'm wondering if anyone could help me with the issue I'm having. I'm doing a little test to see if I can assign a value to a door, and when I restart the server it'll be still assigned. This is what I currently have. -- Where we...

3rd March 2017
by geferon Go to last post
1 210
Help

solved If command ran then ban the user

Hi, I recently had my rcon password breached so I wanted to make it if anyone types "rcon_password" in console it instantly bans them from the server using ULX or FAdmin. I understand little of coding, sorry about that. Please help!

2nd March 2017
by PizzaGrandad Go to last post
5 218
Help

solved View model programming, for an armour view system.

Hey guys I'm currently creating a cool little system that allows you to see what type of armour (<--- real english spelling) someone is wearing, kind of how Clockwork does it but rather than just changing your actual model it attaches it to your current...

2nd March 2017
by AEixilimar Go to last post
2 273
Help

Cinema SWEPS Hand Issues

Hello! I am working on SWEPs for my server but noticed this issue quite consistently. I am not sure how to use this properly, but, http://wiki.garrysmod.com/page/Using_Viewmodel_Hands I think the viewmodels hand config is where I should be looking. ...

2nd March 2017
by silentslay Go to last post
0 165
Lua

Pointshop Colored Items and Hats w/ Color Picker?

I'm trying to make it so only the item is colored from whatever the player picks in the color picker. How can I make it so it actually colors ONLY the item and not the item and the player. If I try to get modifications.color in the...

2nd March 2017
by Nick78111 Go to last post
11 369
Question

Inventory Question

I want to create some form of factory that allows me to create Item tables very easily. If anyone could help me with this, give me some knowledge about this, I would highly appreciate it. I'm going for something like Items = { = {Name = "Model1",...

2nd March 2017
by sannys Go to last post
4 289
Help

solved Creating custom chairs for Hammer editor

Dear All, I got confused by the research I did regarding base_vehicles. I would like to get some help. If I have a base model of a chair, how do I create an entity which would mimic the functionality of a "vehicle" office chair in sandbox? Do I code it...

2nd March 2017
by papi Go to last post
2 226
Help

whats the problem i only get error

the code of all jobs http://pastebin.com/4VdUpADB the error code http://pastebin.com/V7PpwxA6

2nd March 2017
by Barbecuecitro Go to last post
4 231
Lua

solved HELP : Looping a song for a Job

Hi everybody ! I'm trying to make a Star Wars server, and I need my Darth Vader to be able to breathe like in the movies. I already have the sound of " one breathe" that I would like him to be able to emit again and again with an editable amount of...

2nd March 2017
by dannyf127 Go to last post
2 214
Help

Shuriken Problem

So on my TTT server, I use a shuriken but it doesn't use any shurikens. Its just infinite. shared.lua for weapon if SERVER then AddCSLuaFile( "shared.lua" ) end SWEP.HoldType = "knife"

2nd March 2017
by Sm63 Go to last post
12 1,144
Help

Ragdolls Inheriting Playermodel Colour Issue

How would I go about getting ragdolls to inherit the set colour of the player from which they derive? So far, there are two methods that I'm aware of that I don't really know how to apply. The first method would be a simple ent:SetColor(), yet obviously...

1st March 2017
by Sanxy Go to last post
2 199
Help

solved Custom HUD Help

Updated! Please look at the ghosts for whether or not each problem has been solved or is still a mystery. Hello Facepunch, I recently took on the task of making my own custom HUD and I've run into a crack in the road. Whenever I seem to give myself...

1st March 2017
by Krat0z Go to last post
16 470
Lua

addlaw/removelaw

I am trying to remove the chat commands related to the mayor making laws because I am making my own law system... I've got DarkRP.removeChatCommand("addlaw") in a shared lua file in DarkRP modules and for w/e reason it's not being removed. Yes I have...

1st March 2017
by JamesScott Go to last post
2 268
Help

solved Setting Boundaries for Addons on a map

Hello! I am running a Cinema Server and of course, with theaters, I do not want some addons to be ran in theaters. I recently added a Jukebox to the server content, but the issue is that the UI and Audio does go through the theaters also. I have...

1st March 2017
by silentslay Go to last post
2 217
Help

Interacting a SWEP and an entity

Without going into too much detail, what I'm trying to do is have a SWEP an integer that is assigned to the entity and I'm wondering what the best way to do it is. I'm using util.TraceLine to check if I'm hitting the right ent. Do I need to create a...

1st March 2017
by WaitingWorlds Go to last post
13 374
Help

Making a Headcrab mod help

Heya! I want to make a mod that just adds alternate versions of headcrabs but, with the same ai, animations, and models as the classic headcrabs (headcrab, fast headcrab, and poison headcrab). The only difference is their texture. So, basically retextured...

1st March 2017
by silentslay Go to last post
7 241
Help

SRCDS does not create/generate dump files (i have - debug)

Hi For 2 weeks now my servers have "randomly" crashed for no reason whatsoever (as far as I can see, no errors, nothing). I am running on a windows server 2012 R2, the user launching the server have full administrative rights and it is running...

1st March 2017
by silentslay Go to last post
4 343
Help

ULX Physgun Groups Forced Physgun Color

I'm looking for someone to help or if you know some sort of code that make ULX ranks have different coloured physgun like e.g Trial Mod - Light blue Mod-green admin-dark blue, something like that and it stops clients from having there own color. I know...

1st March 2017
by silentslay Go to last post
5 376
Hobbies

solved GMod - What are you working on? February 2017 (#66) ( 2 3 4 5 6 7 Last )

Highlights from the previous thread

1st March 2017
by Mors Quaedam Go to last post
272 23,492
Help

solved workshop.lua and Collection Issue

I have hosted servers in the past; and have never encountered this particular issue. Essentially, I have set up workshop.lua, (In the correct place -> garrysmod/lua/autorun/server) it is exactly as follows: resource.AddWorkshop("573644265")-- HUD...

1st March 2017
by Clientside Go to last post
5 281
Help

Can't remove items from pointshop (gmod deathrun server)

I have two addons on my server (now deleted) which are stuck in the server with no means of removing them... 506283460 709243995 I tried to delete them completely, but they still show up on my server's pointshop, but nowhere whatsoever on the HDD...

28th February 2017
by London Go to last post
2 224
Help

Help with networking sents and sweps

accidentally posted twice, remove please

28th February 2017
by WaitingWorlds Go to last post
0 164
Help

solved Entity Help

Hi, I am coding an entity that spawns as a wardrobe and when they press e it changes their playermodel...I was wanting to know if anyone knows how to make it so that only the player that spawned the entity can press e and use it.

28th February 2017
by BeZerk Go to last post
19 396
Games

Animation override

Hey im trying to override animations of just 1 weapon, im trying to make it that if holding weapon then the function overrides the current playermodels animations, i cant figure out how to make a lua file that does that please help

28th February 2017
by Theasdfvids Go to last post
0 180
Help

Disable fog on gmod

Hi, i have create a script, but it is'nt functionnaly : render.FogMode( 0 ) Please how to disable fog with a script ? Bye !

28th February 2017
by SuperMicronde Go to last post
5 315
Help

solved Health Station

I am having an issue, I am working on a add-on for my server. This add-on is a really simple one at that but this one thing has me stuck. The add-on is a health station and whenever it is used it emits a sound but the sound that I have created for it...

28th February 2017
by GravityWolf Go to last post
5 216
Lua

Run lua code before all other scripts

I need to override some basic fucntion on my server before all scripts will be run (gamemode, addons, ...)

28th February 2017
by Author. Go to last post
2 345
Lua

solved GUI Not working.

-snip- solved

28th February 2017
by Prior_ Go to last post
0 169
Help

solved Health Station

I am having an issue, I am working on a add-on for my server. This add-on is a really simple one at that but this one thing has me stuck. The add-on is a health station and whenever it is used it emits a sound but the sound that I have created for it...

28th February 2017
by GravityWolf Go to last post
9 387
Help

Removing tool category's.

Ok so basically I am creating a dark RP server, and I want it to be elegant and professional. I've decided to remove the tools that people are not going to use. I have successfully done that however, the category is still there. For example, I removed all...

28th February 2017
by soarplex Go to last post
3 231
Love

Possible to render player model with lower alpha without overlapping poly's?

^ I hate how ugly this looks. The overlapping stuff around the neck and waist looks awful. Unfortunately, I'm not aware of any way to fix this. I can render the 3D model to a stencil and set the alpha, but it's akin to setting the alpha via SetColor,...

28th February 2017
by Promptitude Go to last post
3 409
Help
28th February 2017
by bigdogmat Go to last post
13 470
Help

Gamemode files fail to load at complete random

i host a server and out of nowhere, for random people (everybody except me it seems because i've never encountered it), things will break and it always seems to be clientside files that fail to load for some reason. Couldn't include file 'cl_hud.lua'...

27th February 2017
by portalcrazy Go to last post
7 288
Help

solved How do I set the view model skin?

] lua_run_cl print(LocalPlayer():GetViewModel( 0 ):SetSkin(2)) ] lua_run_cl print(LocalPlayer():GetViewModel( 0 ):GetSkin()) 0 :scream::scream::scream::scream::scream::scream::scream::scream::scream: (Yes skin 2 does exist) 27th February 2017

27th February 2017
by LegoGuy Go to last post
1 170
Help

solved Roleplay Chat Command

Hello! I am working on creating some chat features for my server, one of the chat ideas is roleplaying. Idea: /me is depressed about what he sees. (Nick) is depressed about what he sees. /gme is quite astounded by the devs (Nick) is quite...

27th February 2017
by silentslay Go to last post
4 295
Help

Segmentation Fault after a while

I've been searching everywhere but have not been able to find a good answer. My server starts fine, runs fine for a while but after some time it crashes with the message Segmentation Fault. Here's just before and just after the crash: ServerLog: ...

27th February 2017
by GalaxyBeatzz Go to last post
4 428
Help

Help me find an error in LUA file?

So I recently purchased the SantosRP gamemode and I have one error that I just can't seem to figure out: gamemodes/santosrp/gamemode/init.lua:68: attempt to index field 'SQL' (a nil value) I went to line 68 in my init.lua file and this is where it...

27th February 2017
by Pigsy Go to last post
2 245
Question

Local server on Linux based OS

Recently just setup my machine to dual boot win10 and ubuntu mate. I enjoy developing in gmod and a local server is essential, is setting up a local server on a linux based OS similar to windows? If not, anyone have any links to any guides? I've been...

27th February 2017
by TylerB Go to last post
7 279
PC Games

Tick Rate for a large server?

I currently run a server that gets >100 players and at a target tickrate of 33. However, when the server is more full, the server lags down to a tickrate around 10-15 (as seen in net_graph 4). This way, when the server is more empty the tickrate can be...

27th February 2017
by TylerB Go to last post
4 445
Help

solved M9k Weapons in TTT

problem is solved by me

27th February 2017
by TomThomson Go to last post
4 207
Lua

solved Gmod send message to client

Hello guys! I am currently hosting a TTT Server in garrysmod and want to play a random song after each round! (Each song is listed in an Array with the numbers 0 to 11). Right now everything works as following: After each round a random number is...

27th February 2017
by EPEffects Go to last post
2 182