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

solved I need help making specific jobs not be able to not drop specific weapons. (DarkRP)

M.Config.DisallowDrop = { = true, = true, = true, = true, = true, = true, = true, = true, = true,

4 Weeks Ago
by mariokiller Go to last post
2 42
Lua

Error in my Addon

Hello, im trying to write an addon to make the Silenced AWP only deal Damage at 5 Players or more... but im getting an error addons/ds_194965598/lua/weapons/weapon_ttt_awp.lua:22: attempt to index global 'SWEP' (a nil value) 1. unknown -...

4 Weeks Ago
by GbrosMC Go to last post
10 251
Help

solved Draw something when watch a button

Hi, I've made a Script for my SCP Roleplay server which make a HandIcon when you watch a button or a door. Howerer it's quite glitched and I don't know why. We are 40 players on the server and some people see it, some peolple not, sometimes it works...

4 Weeks Ago
by Potatofactory Go to last post
8 201
Help

Round Restart Script?

Can somone please help me with a Round restart script for a gamemode like Freezetag or tag? i know KingOfBeast made this a while back :round = {} -- Variables round.Break = 30 -- 30 second breaks round.Time = 300 -- 5 minute rounds -- Read...

4 Weeks Ago
by kulcris Go to last post
15 252
Lua

solved [LUA Scripting Issue] Model position coordination bug.

Hello there! Recently I've been having this strange bug with Scripted Entities, the model of the entity twitches between starting position and actual position. The fun fact is: That when the model twitches to the original position, it cannot be touched. ...

4 Weeks Ago
by AlbertoBC Go to last post
2 74
Help

Player Names interfering with syntax

I am having quite an issue, it seems. I cannot for the life of me figure out how to properly escape players' names from syntax. Here is an example of what im having issues with. The players name for the example would be "name' ...

4 Weeks Ago
by Disseminate Go to last post
9 256
School

Crash debugging

I'm trying to solve my server crash problem. Recently I added -debug to srcds start line but I don't understand how it works. Here is my debug.log: https://paste.ee/p/WE4z1 . As it looks it's somehow related to doors. Is this because of the map? Is this...

4 Weeks Ago
by code_gs Go to last post
9 409
Lua

solved ShellEffect and MuzzelEffect

So, im making a weapon and i want to remove the muzzel effect and shell effect but i cant get it working no matter what i try, i still get the shells ejecting when i shoot and the muzzel flash still comes. I have been looking at this:...

4 Weeks Ago
by Plaster422 Go to last post
5 63
Help

solved Masking Material (shirts) From Colors?

Hello, I'm trying to make custom shirt VTF's but I've ran into a slight issue that I'm not sure how to get around. So I've modified the player_sheet.vtf file that I extracted from the game using GCFScape, modified it in Photoshop and exported it as a png...

4 Weeks Ago
by MPan1 Go to last post
1 160
Lua

FPP issue

So theres an issue with FPP where whenever you spawn a model/prop, and hover over it on the left it says blocked and you cant physgun it, help plz?

4 Weeks Ago
by Kevlon Go to last post
1 93
Help

solved I need help with darkrp custom entities

Im editing entities in the darkrp modification addon and I cant get this entity to work. DarkRP.createEntity("Liquid Iodine", { ent = "eml_iodine", model = "models/props_lab/jar01b.mdl", price = 0, max = 20, cmd = "buyiodine" allowed =...

4 Weeks Ago
by mariokiller Go to last post
2 72
Help

HUDPaint lags derma

Hello! I was trying to create a hud using derma, the only issue is that when i use the hook HUDPaint it drops my FPS massively. Any help? Thanks

4 Weeks Ago
by Matryan Go to last post
11 206
Help

Help with making something happen on buttom click

Hey, I am testing out some things for a mod i am making and i want to make it so when a user clicks on a button it kicks them, i have this code local button = vgui.Create( "DButton", window ) button:SetText( "1" ) button:SetSize( 100, 40 ) ...

4 Weeks Ago
by Ajloveslily Go to last post
6 109
Question

Only One Custom Add-on Loading

Fixed: Ok, so I didn't know calling both files init.lua and cl_init.lua would cause an issue? Does one overr-ride the other? Hello, I have two addons I've made for my server. Directories titled: addons/sgn_healthsystem addons/sgn_mainmenu ...

4 Weeks Ago
by Semajnad Go to last post
0 71
Help

PlayerSay Hook call twice after lua file update.

hook.Add("PlayerSay", "buggbuggbuggggggg", function(ply, text, teamonly) print("twice: " .. text) end) PlayerSay Hook call twice after .lua file update return "" and return false not working Can somebody help me?

4 Weeks Ago
by RealDope Go to last post
6 205
Lua

Help with Functions with ULX + Darkrp Jobs

// #NoSimplerr# AdminzRanks = {"moderator", "owner", "superadmin", "admin", "headadmin"} MemberzRanks = {"member", "donator", "moderator", "owner", "superadmin", "admin", "headadmin"} TrustedzRanks = {"trusted", "member", "moderator", "donator",...

4 Weeks Ago
by Potatofactory Go to last post
1 70
Help

Offline Version of GMod Wiki?

Hey guys. Does anyone know if there's a downloadable version of the GMod Wiki available for offline use? My internet at times randomly crashes, and makes pages take literally around 2 minutes to load (and spikes my ping to about 1,000 - 2,000), making it...

4 Weeks Ago
by nulls Go to last post
3 119
Help

Help with solving an error in Zoey's Sliding Ability Addon

I hope this title is descriptive enough! I've never posted to facepunch before. The error I'm getting is addons/zoeys sliding ability/lua/autorun/server/playerslide_sv.lua:31: attempt to perform arithmetic on a nil value 1. v - addons/zoeys...

4 Weeks Ago
by mib999 Go to last post
6 120
Lua

Placing a box above hud

So i have had a working stamina bar for sprinting on garry's mod for quite some time. I have always noticed that the stamina bar is actually below the hud, making the bar a bit dark. (This is being used on TTT) I was wondering if i could get some quick...

4 Weeks Ago
by BillyOnWiiU Go to last post
5 133
Lua

Can Someone Explain Networking to me Please?

Hey there, sorry for the stupid post, but I've been trying to learn Networking in gLua. And I just cannot find any viable tutorials. I know that using the Net Library is one way, but it can lead to security issues. Can someone explain to me the best...

4 Weeks Ago
by IamBrett Go to last post
6 170
Lua

lua error code

A runtime error has occurred in "gamemodes/darkrp/gamemode/libraries/fn.lua" on line 83. The best help I can give you is this: Attempt to call Name/Nick/GetName on a non-existing player! Hints: - No hints, sorry. The responsibility for this...

4 Weeks Ago
by smithy285 Go to last post
2 55
Help

solved Entity "E" Action

I know that is a bad title but I cannot think of a better one. Basically what I am trying to do: Make an entity like a bell. -You press E on it and it goes off. This is what I have so far https://www.sendspace.com/file/70k842 The download is...

4 Weeks Ago
by Fayhd Go to last post
7 202
Help

New Errors In Hud

Hello, i've had this hud for a while now, how ever im struggling to get it to work for a friend. I assume the variables have changed or something, here's the error he is receiving: ...

4 Weeks Ago
by Leyserr Go to last post
2 133
PHP

solved Tracking a server?

Hello Facepunch, does anybody know how I can track a server's online status / map / player count in php? What do you recommend?

4 Weeks Ago
by Robotboy655 Go to last post
1 60
Help

solved DScrollPanel allways show scrollbar

Hello facepunch, I have been puzzling over how i could show a scrollbar in a DScrollPanel+DIconLayout combo when there is only a few items in the box. Put simply i want to allways show the scrollbar. Thanks rtm516 PS: if u need any code snippets...

4 Weeks Ago
by rtm516 Go to last post
3 87
Lua

BComboBox

Hi, I need to make sure that when you click on the button changes the theme, the theme is a set of img, but I don't know how to combine several img into one. Could you help with this. local boxmenu = vgui.Create( "DComboBox", tm) boxmenu:SetPos(...

4 Weeks Ago
by Blurmod Go to last post
2 140
Help

solved Issue with unfreezing props using R with physgun.

I'm currently working on a script that detects lag and freezes all props whenever lag occurs, after the lag goes away I wish to let the players use R to unfreeze their build but for some reason with my current code it doesn't allow R unfreeze to happen....

4 Weeks Ago
by Extra Mental Go to last post
2 83
Help

Setting a Shared Variable Via Client

I'm making a Factory SEnt for a DarkRP server. Hitting USE on it brings up a menu where you can choose what it produces (so far it only has one available choice): Clientside: function ENT:CreateMenu() -- Menu pops up here local Frame =...

4 Weeks Ago
by Chovski Go to last post
2 106
Lua

GLua Standards

I'm not sure how many people will dislike or like this idea but my plan would be to get as many coders involved from the community in developing a set of optional standards to adopt in their GLua coding. It would be somewhat similar to the python PEP-s....

4 Weeks Ago
by Handsome Matt Go to last post
25 584
Help

[TTT] Round win screen not showing up

At the end of a round when a team wins, there is no win screen appearing in the middle? I'm not getting any errors..

4 Weeks Ago
by Rodogs7 Go to last post
4 75
Help

ULX WHitelist lag

Its gotten to the point when my community whitelists someone the server lags a bit how do you fix this?

4 Weeks Ago
by Spicelord2000 Go to last post
10 230
Stupid

solved Vectors and math

Whenever it comes time to manipulate vectors, whether it be for a dmodelpanel or some other shenanigans, its a game of trial and error for me, and that seems to be very ineffective. I don't really understand what my inputs are doing to my outputs, and...

4 Weeks Ago
by Mechanical Mind Go to last post
8 160
Help

[TTT] Items look weird on melon clicker and pointshop

This is what it does: http://prntscr.com/9np0rk and http://prntscr.com/9np19k

4 Weeks Ago
by Rodogs7 Go to last post
10 123
Lua

Preferable way to open up a game mode for easy modification?

Howdy, Once I finish the gamemode I'm currently working on I'm considering reworking a major but old gamemode that has fallen to pieces and is a rubbish port ( Basewars!). I want to make sure that it is very open to modficiation but want to know how...

4 Weeks Ago
by Strideynet Go to last post
0 62
Question

Getting whether there's a valid path between entity and point?

Using navmeshes, would it be possible to get whether there'd be a valid path between any given entity (even non-nextbots) and position? The plan is to use this to determine whether a spawnpoint for the nextbots would be valid or not by using the...

4 Weeks Ago
by Zet0r Go to last post
0 66
Lua

solved Iron sights

So im making a weapon and got everything working execpt the iron sights i have been looking at some different codes but i cant see to get it working, so that when i use secondaryAttack it uses the iron sights. So far i got the position of the iron...

4 Weeks Ago
by Plaster422 Go to last post
2 95
Help

How code obfuscation works?

I see a lot of people doing this and I'm just curious as to how it works, How can you modify it into an un-readable state. How do people un-obsucate it. I know this may seem noobish but I'm just interested in learning how to do it and create my own. If...

4 Weeks Ago
by The Commander Go to last post
27 1,195
Help

SRCDS memory leak?

My server does have a memory leak but I can't find out exactly what it is. When the server is filled with 20 players and restarted within 1 hour it's usually using 400-600 MB RAM but right now it's using 1,3 GB RAM (and that's probably because it hit the...

4 Weeks Ago
by James xX Go to last post
1 124
Question

How to hitchhike the Steam cloud

I have some data that I want to save on the client across devices. Is there any way to put that on the user's Steam cloud? Otherwise, how can I make this CLIENTSIDE data persist between different machines?

4 Weeks Ago
by Sgt. Lulz Go to last post
12 439
Help

Gmod Hide N' Seek Pac 3 Help

Hello, I've been trying to wrap my head around this for quite some time but I've found a few more results. So what I am trying to code is so the seekers and the Hiders have two different "models" which is what pac 3 is for. The Pac 3 has a code that...

4 Weeks Ago
by FlashToroG Go to last post
0 88
Help

Best Ways To Track Down Cause of FPS Drops?

Hello, I was wondering if there's anything I can use to track down the cause of low FPS in a server and if there are any settings to help improve it. I've tried removing my HUD to see if that was the issue and so far that has not been the case....

4 Weeks Ago
by Strideynet Go to last post
4 198
Help

Pointshop Playermodel Issue

Hi, FastDL is working, the playermodel is being downloaded, the workshop ID for the playermodel is correct and the filepath is correct for the model. I know this because my friend who subscribed to the content can see the playermodel but this makes...

4 Weeks Ago
by deinemudda32 Go to last post
1 61
Help

Error loading gamemode: !IsValidGamemode [sim]

I've Googled this problem a lot and haven't been able to find a solution. I have no idea why it won't work since I have exactly the same code on Gamemode Creation on the wiki (except with my information in it). I've made Lua addons before, but I thought I...

4 Weeks Ago
by alexmeads01 Go to last post
6 2,981
Lua

Need help with pointshop playermodels for jailbreak gamemode

Hello, I was wondering if it was possible to make it so that only prisoners can have playermodels equipped and when they turn into a guard it will automatically make them change into the normal playermodels. Also I was wondering that if it does that in...

4 Weeks Ago
by Bob_Dylan Go to last post
12 157
Help

solved Chance of performance

Hello How to make chance of performance of function of 30% I will be glad to your help

4 Weeks Ago
by godred2 Go to last post
3 97
Lua

Get entity variable in cl_init.lua?

Hello. I am trying to draw.SimpleText() when player looking at entity. But i can't get Variable from entity to show count. I put this: function ENT:SetupDataTables() self:NetworkVar('Int', 1, 'Breads') end

4 Weeks Ago
by FloopyTruck Go to last post
2 93
Help

Using Addons in a Gamemode

So I'm trying to use the CSS realistic weapons addon in a gamemode I'm making, how do I? I'm developing locally and assumed if It was in my addons folder I could give myself the weapon on the gamemode, but I guess not? Thanks :)

4 Weeks Ago
by warlock123 Go to last post
2 131
PC Games

solved !group to join steam group

Hi, I have recently made a TTT server (UK Banter Squad TTT) and I am trying to add something I have seen in other servers where a guest can type !group in the chat to join my steam group, was wondering if anyone knows how to make this work. Thanks in...

4 Weeks Ago
by Tomelyr Go to last post
7 231
Help

[TTT] Changing the default player Speed.

So, I've been trying to change the default player movement speed on my server. This is the changes I made to the SetSpeed function in the player_ext.lua. The problem is when I save this to my server the code WORKS, but then it stops working again after...

4 Weeks Ago
by Sketchy77 Go to last post
0 60
Lua

NPC auto attacking help

hello i want my custom npc/ent to attack when it takes dmg but for some reason it cant shoot i gave it a weapon but its kind taking it up and down constant idk what i done wrong it wont shoot any ways so anybody can help i just want to attack the...

4 Weeks Ago
by lucaspou Go to last post
2 116
Lua

Looking for someone to help make the rest of a gamemode I started. A Small project that can get as big as you want.

Relply if you like the title LUA Developers. I have a gamemode half made with a nice idea. It is playable and stuff. Reply for more info. 7th January 2016 I am the only dev on this project so far.

7th January 2016
by coolcat99 Go to last post
2 116
Help

Just got scammed again

So after this time i got scammed from a coder https://facepunch.com/showthread.php?t=1498245 I was like well running out of time need to get the guns converted quick so when someone applied seeming really authentic and all paying via service and not by...

7th January 2016
by bobbleheadbob Go to last post
6 429
Help

TTT Disguise change player model

So I want the disguise equipment to change a players model this is the code I have so far yet for some reason it fails to switch the players model at all.. Any help as to why it isn't working would be awesome. DISGUISE = {} local rModels =...

7th January 2016
by rafaelpayan Go to last post
3 322
Help

Change category of tools

For example move the weld tool to a new category

7th January 2016
by swag.exe Go to last post
5 104
Help

[TTT] Why the fuck are the bodies disappearing??

My TTT server has that issue where the bodies are disappearing and that is very annoying can you guys help me with fixing it and advice? I am using serenity to run my server how would I change it so FTP is what is used to put addons and stuff.

7th January 2016
by YourStalker Go to last post
2 139
Help

Help setting up a Gamemode?

Hello I am in need of help setting up a gamemode called CityRP which is based off of Cider and Applejack. But I do not spawn when I try to test out the gamemode. And get a few errors in console help please? SERVER CONSOLE LOG:...

7th January 2016
by warlock123 Go to last post
20 388
Work In Progress

LuaDev - Multiplayer lua developement

LuaDev - Multiplayer'ish Lua Development Luadev has moved to github: http://github.com/metastruct/luadev You can continue using SVN by checking out this link instead: http://github.com/metastruct/luadev/trunk

7th January 2016
by LUModder Go to last post
20 6,915
Shitpost

Rounded avatars with transparent corners

Hello there. I really want to make scoreboard with rounded avatars, but we can't just draw outlined circle over avatar, cuz our scorebord is semi-transparent. As I know we can't round AvatarImage panel right? Ok but can cache avatar by image url...

7th January 2016
by McDunkable Go to last post
1 175
Lua

AGAIN: I need help making this lua code respawn weapons.

I'm making this clear. I DO NOT KNOW LUA VERY WELL FOR GMOD. It's written in its own syntax, and ALL I know is Garry's mod lua wiki. So if you answer this question, be as descriptive as possible to someone who has only known lua for 4 days....

7th January 2016
by kem008 Go to last post
7 270
Lua

solved Nextbot keeps crashing the game

Hello again. Today I made a simple citizen nextbot just for fun and for learning Lua. Everything works fine. But if I place the nextbot at some place with no nav_meshes the game crashes. I don't really know what causes this. I think that I probably...

6th January 2016
by swag.exe Go to last post
0 53
Question

TTT problems since last update

Anyone else noticed that since the last update of Garry's Mod some TTT maps are giving spawn in a smaller quantity of weapons? I have problems with Dolls, Clue and others maps... Have normally maps, but have maps without weapons... I was try remove...

6th January 2016
by Stardust342 Go to last post
5 137
Help

TTT Help, Innocent Chat and Broken Flare gun

I understand this probably shouldn't have a thread but I've looked for quite some time with no luck, Sorry about being a pleb :P Also default flare gun seems to be broken. I can buy it off the traitor menu. When I shoot a corpse nothing happens,...

6th January 2016
by xaviergmail Go to last post
9 230
Help

My server aint showing up on the server list

Before we begin i've tried ========================== sv_region 255 ========================== changing hosting location ========================== so this have started out recently after the newest uptade whatever i do where ever i look my server...

6th January 2016
by john55223 Go to last post
10 253
Help

Custom URL Tab In Q Menu / Spawn Menu (Help)

Hi, For hours now I've been trying to figure out how to add a custom tab in the spawn menu with a site Popping up. Erm, I kinda suck at Lua.. Can someone help me? xD On tab I want it to say "Forum" next to "Vehicles", so when I go on it a site...

6th January 2016
by kulcris Go to last post
3 106
Question

solved resource.AddWorkshop only if the map is played ?

Hey, i have a small question about lua. Is it possible to use "resource.AddWorkshop" only if a certain Map is played ? So that the Map gets only downloaded if it is played.

K4i
6th January 2016
by K4i Go to last post
9 132
Lua

solved Scaling HUDs

Okay so I followed this tutorial on the wiki: https://wiki.garrysmod.com/page/Derma_Basic_Guide I need to know how to scale stuff with draw that only tells me how to do it with Derma.

6th January 2016
by Velocity Go to last post
10 166
Question

[PropHunt] Why you can shoot a prop dead-on, but it won't take damage?

I'm looking into programmatic reasons why this frustrating phenomenon can happen, especially (or even almost exclusively) with the smaller props like soda cans, water bottles, coffee cups, etc. Story time! You're chasing a prop down the hallway,...

6th January 2016
by kevinmd88 Go to last post
5 196
Help

autorun clientside files

I've made myself a MOTD from derma, whenever i am to use my code in singleplayer ( example " lua_openscript_cl motd.lua " ) i'll work but when i get that same file, make a dedicated server and place it in the autorun folder it will only show the html...

6th January 2016
by FVJohnny Go to last post
5 175
Question

solved What do you feel is the best way to make go about making ingedients for a cooking mod?

I was coding myself a cooking mod for my server and although I know of two different ways to go about doing this I wanted to see what you feel is the best way about doing this. First method ------------------------------- I have some ents like;...

6th January 2016
by bran92don Go to last post
4 129
Help
6th January 2016
by poepel Go to last post
3 124
Request

Lua Script Help

Hello Facepunch members. I was looking at youtube and could'nt find any video that shows me how to do "PlayerSay" so i will ask your guys if you know a video that shows it?. And i will request a script that does if you type !spawnweapons...

6th January 2016
by MPan1 Go to last post
3 110
Help

ShouldCollide removing all damage from non physical bullets?

-snip- changed who i was checking for so its good now

6th January 2016
by kulcris Go to last post
0 56
Help

Replace knife with crowbar

Im wanting the knife to replace the crowbar so when ever the player spawn into our TTT map they will spawn with a knife instead of a crowbar. Is there a place where i can change the "Default load-out"

6th January 2016
by skittles9823 Go to last post
2 124
Lua

Making a proper teleporters.

How to make this on table so I don't need to redo it every time I make multiple teleports? I'm thinking of removing also vCenter and boxSize. Also I'm making this on NutScript 1.1 hook.Add("KeyPress", "door_1_out", function(client, key) ...

6th January 2016
by john55223 Go to last post
13 297
Lua

PointShop Holster Items for a Team

Hey Gmod Community :) I have a serios problem for a Gamemod im currently developing, mostly with the pointshop. The problem is, the mod got 2 teams and only one team shall have the option to equip itself with hats and other stuff from the piontshop....

6th January 2016
by Eiskrieg Go to last post
0 29
Help

Bodies disappearing and people can't switch weapons cl_keys

There is the code. -- Key overrides for TTT specific keyboard functions local function SendWeaponDrop() RunConsoleCommand("ttt_dropweapon") -- Turn off weapon switch display if you had it open while dropping, to avoid --...

5th January 2016
by eldor1274 Go to last post
3 67
Help

Tables

I'm currently trying to learn tables so i've attempted to make a table print into console. This is the code i have currently: local BadNames = { "Sleepy", "Sleepy2" } local function IsYourNameBad() for k, v in pairs( BadNames ) do...

5th January 2016
by YourStalker Go to last post
3 141
Lua

CurTime() Timer

Hello i made a timer that counts down to zero using CurTime() but when i remove or add a another entity it just goes synced.Lets say i spawned my entity it starts to count down from 120 5 seconds have passed its 115 now i remove the entity spawn it again...

5th January 2016
by YourStalker Go to last post
8 530
Help
5th January 2016
by Promptitude Go to last post
2 111
Help

Help with functions, variables and strings.

So I want to make a script were, it gets what weapon they have equipped, how much ammo they have then grabs info from a list and then makes the player slow down or speed up accordingly. I don't know how to get this infomation, all I know is I would...

5th January 2016
by Borris_Squad Go to last post
2 73