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

Remove Cars if you are dead

Hello, I would like to create a la/autorun file. If you're dead your car is removed. If you don't understand say to me. I asked you for learn how make better script and use correctly the wiki and other. Thanks for this

28th November 2016
by babouche35 Go to last post
7 409
Help

Need some help with trace

I wanted to make the code if you're not in the building / dungeon you start to burn. But tr.HitSky always returns false : ( (sry for my english) hook.Add("Think", "MonsterIgnite", function() for k, v in pairs(player.GetAll()) do if v:Team() ==...

28th November 2016
by Slimeball9292 Go to last post
2 206
Help

myql to sv.db

How to convert mysql to sv.db?

28th November 2016
by code_gs Go to last post
18 591
Help

Where do I find all of my blacklisted models?

Where do I find all of my blacklisted models in my server through the ftp client? I need to copy the list and move it to another server.

28th November 2016
by cowslaw Go to last post
0 148
Lua

solved How Can I Make An Entity That Has An Interface On It?

Basically I know how to make an entity and such I just want to know what do I code to make it so when I hit e on the entity it will show a HUD or an nicer version of a derma panel.

28th November 2016
by Revenance Go to last post
19 387
Help

Finding Visible Surfaces in a map then all measurements.

This seems like something almost impossible to me, i've been looking through all the libraries and can't find something obvious to me. In essence, by the end of this I want to be able to put a map on a server and divide the maps floors, walls and...

27th November 2016
by fauly Go to last post
2 173
Help

solved Tickrate for Deathrun

Hello! Possibly last question by me today. What is the most common tickrate for the gamemode deathrun? Thanks.

27th November 2016
by ZombiezPvP Go to last post
2 159
Help

Assistance with Cam3D2D

I'm attempting to create a wine making machine that allows users to put grapes into it and it will process wine for them. What I'm trying to do is create a new Cam3D2D on the prop to replace the original screen, but it won't load the new cam3D2D. I'm...

27th November 2016
by Abbadoo8 Go to last post
6 316
Help

solved Tickrate for Skilled Surf

Hello! I was wondering what is the most common tickrate for a skilled surf (surf) server and what does tickrate actually effect... (e.g.. Does it effect the game performance?) I appreciate for any support. 27th November 2016 So I currently have...

27th November 2016
by ZombiezPvP Go to last post
10 313
Help

FPS drop from DModelPanel

So normally my fps is always 144 in gmod, but when I draw the DModelPanel I get 15 fps, is this normal? Here is the code: local Playermodel = vgui.Create( "DModelPanel", Panel ) Playermodel:SetSize( 440, 620 ) Playermodel:SetPos( 40, 60 )...

27th November 2016
by Klaes4Zaugen Go to last post
9 268
Help

solved Error...

addons/darkrp_test/lua/entities/ent_test/cl_init.lua:101: attempt to index global 'LocalPlayer' (a function value) 1. func - addons/darkrp_test/lua/entities/ent_test/cl_init.lua:101 2. unknown - lua/includes/extensions/net.lua:32 Im...

27th November 2016
by SpiiNy Go to last post
5 167
Lua

solved Editing a workshop file after extracting the .gma

I'm not really sure how to explain this but I'll try. I have this addon that is setup to download via workshop when the client is joining the server. This weapon is Detective buyable only, so what I did was extract the .gma file, went in the lua and put...

27th November 2016
by fappymcfap Go to last post
4 188
Help

solved How to get informations from entity in cl_init.lua?

Hello, In my cl_init.lua, I'm trying to get a network var value. cl_init.lua -- net.Receive( "OpenNP", function( len, ply )

27th November 2016
by Lenkio Go to last post
0 132
Help

NS Half-Life 2 Roleplay /dispatch dont work

when i type /dispatch ANTI-CITIZEN writes this

27th November 2016
by BucikPRO Go to last post
0 135
Help

solved Refresh DFrame on change

Hi, I'm trying to make a horizontal list with button to change but i don't find a way to refresh my DFrame containing image. Screenshot: Code: http://pastebin.com/ktYiFeXL

27th November 2016
by Yazrihm Go to last post
2 140
Question

solved Custom Materials

I used vtfedit and made some custom materials but when I try to draw them on a quad it just shows purple checkers. This is from the vmt. "LightmappedGeneric" { "$basetexture" "materials/custommaterial2" }

27th November 2016
by gbmach7 Go to last post
2 118
Lua

solved How does worltolocal work?

How does worltolocal work? :/ I tried this but it didn't work: AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:Initialize() self.Entity:SetModel("models/props_lab/blastdoor001c.mdl")...

27th November 2016
by NeatNit Go to last post
6 146
Help

Disableable voice tags?

i cant quite seem to reliably toggle it on or off

27th November 2016
by Shane Go to last post
5 224
Help

Velocity meter running out of number

So the number run out like 500.0000004 and I dont know what cousing it? Help? Screenshot : http://pasteboard.co/2XFEvjsOK.png CODE : local mo = hx/1 +10 local vm = ph/1+10

27th November 2016
by Jason138 Go to last post
4 161
Lua

Prop Hunt - Red Name Shows When Looking At Props - Fixed!

Forgive me if I'm not the first to come up with this, but I've searched all over Google trying to find another reference to a fix for this. I'm going to assume it's not been done before. At any rate, running the Classic Prop Hunt gamemode from xspacesoft...

27th November 2016
by EBEZA Go to last post
1 1,150
Help

Question about Hitman Custom job in DarkRP

I was wondering if it was possible to have the ability for classes other than the hitman to be able to receive and carry out hits, without everyone getting a hit that was accepted by one hitman. If this is possible, how is it done? I don't need the actual...

27th November 2016
by code_gs Go to last post
5 146
Lua

solved How Do I Code A Mining System With Cam 3D2D?

Don't worry i'm not asking for a whole lecture or for someone to make me a mining script. All i'm asking is for someone to help me because i'm trying to make a mining system with crafting and HUD and Entities and all of that shit. I just need help...

27th November 2016
by NeatNit Go to last post
1 173
PHP

Auto Updater

I would like some help making an auto updater, i have a xampp server to host the files. The reason is because i want to make an auto updater system my addons, that has a auth system, so only people who have purchase a script from me will get a key that...

27th November 2016
by NeatNit Go to last post
5 371
Help

differentiate between Player and NPC kills

Hi, currently I'm using this code on my scoreboard tabs = { name = "Frags", size = 0.1, liveUpdate = false, fetch = function( ply ) return ply:Frags() end } My goal is to differentiate between a player kill and an NPC kill so it feeds back to my...

27th November 2016
by NeatNit Go to last post
7 193
Help

solved Trouble updating GMOD addons

So yesterday I created my first gmod addon, a set of ULX commands for Ground Control. I got it onto the workshop and got an update done. Today I added some more content and updated it, it didn't add the change note or anything. It was a minor update that...

27th November 2016
by reconcubed Go to last post
0 116
Help

Server is crashing Players on Workshop Complete.

Players who are trying to connect to my server are repeatedly crashing when they reach "Workshop Complete". I'm not quite sure what is causing the problem :/. Any help to fix this issue is greatly appreciated! Below are some things I believe might be...

27th November 2016
by broden1234 Go to last post
0 125
Lua

Setting the center of mass on an entity?

There is a function to get the center of mass: PhysObj:GetMassCenter But I don't see a way to set it. Is there a way to set the center of mass in lua?

27th November 2016
by gonzalolog Go to last post
1 192
Help

solved Disable Spawnmenu with Addon?

How can i disable the Spawnmenu (Q menu) with a addon? Because i want to make my own one and dont want to mess with the gamemode files

26th November 2016
by NikkuMiru Go to last post
0 103
Help

solved Server doesnt show up on the list

Wrong section. Please delete this post

26th November 2016
by dlwldbsu7172 Go to last post
0 108
Help

overriding resource.AddFile

I added a shitload of workshop addons to my server and the problem with some of them is that they force the clients to download some files using fastdl. I don't want that, I want the clients to only download the most important ones that I choose with...

26th November 2016
by ZeBull Go to last post
2 200
Lua

solved Need lua help (Involving addons)

I was wondering how to detect if a server has a certain addon using a lua command.

26th November 2016
by HAM_is_my_nam Go to last post
4 169
Poll

What gamemode to use as a base for my gamemode (City Roleplay Gamemode)

There is a lot of gamemodes out there, i'm planning on making a custom gamemode but i want to use something as a base, I'm going to give a list of ones that i know are publicly available/available to me and i could use -DarkRP (stripping it down...

26th November 2016
by YoutoYokodera Go to last post
3 309
Help

solved 3d2d Text without RotateAroundAxis at door

Hello :p I'm making a 3d2d door system for darkrp but my question is, is there a way to draw on both sides with just one draw.DrawText and without RotateAroundAxis? Because when i use draw.RoundedBox its on both sides and idk why xD

26th November 2016
by NikkuMiru Go to last post
4 150
Help

solved Pointshop Skin Help!

I use to be able to use this pointshop reskin But I just did a fresh install today and found this Can someone please help me? thanks! :) Url to pictures: http://imgur.com/a/o4izb

26th November 2016
by DeadPixelz01 Go to last post
7 229
Lua

Need help please.

All my files are loaded correctly but I'm getting this error. L 11/26/2016 - 01:04:02: "mp_allowNPCs" = "1" PREP OK SOLID_VPHYSICS static prop with no vphysics model! (models/props/de_tides/tides_flag_a.mdl) SOLID_VPHYSICS static prop with no...

26th November 2016
by gonzalolog Go to last post
1 195
Help

solved Problem whit timers

Hello guys I create a health regen for a deathmatch gamemode but when a player get a damage its detroy the timer for everyone, i know what its make this but not how to remedy that. function GM:EntityTakeDamage( target, dmginfo ) for k, v in...

26th November 2016
by DovaSummer Go to last post
4 201
Help

solved Edit isCP teams

How can I edit which teams return "true" to "isCP"? I was searching whole DarkRP gamemode and the only thing I found was this function plyMeta:isCP() if not IsValid(self) then return false end local Team = self:Team() return...

26th November 2016
by merkur0 Go to last post
2 147
Help

solved How to reach entity from net

You guys know, we can reach the entity in entity functions like ENT:Use. However I cant reach the entity other functions. util.AddNetworkString("KacNPC_BuyItem") net.Receive("KacNPC_BuyItem", BuyItem) ----- HERE I AM DID THIS IT DIDN'T GIVE ANY...

26th November 2016
by coderfather Go to last post
15 308
Help

solved [HELP] Hands up, with walking animation glitch.

So I made a script for my gamemode when you press the F3 button it makes your hands go up. When you start running the default running animation moves your arms in weird ways. init.lua function GM:ShowSpare1( ply ) local rupperarm =...

26th November 2016
by MLPG Go to last post
6 395
Lua

solved Help with colored names on scoreboard

Alright well basically, I get this error on server startup Couldn't find 'tg_ttt_scoreboard.lua' (@lua/autorun/server/testcolors.lua (line 2)) the code itself is (This is not my code, I take no credit for it): if (SERVER) then...

26th November 2016
by fappymcfap Go to last post
2 194
Help

When click on name, highlight name to function

Hello, So i need some help on this :P I am wondering, how could i make it so on my derma menu, you can highlight a name then click a button that is on the derma menu aswell. This allows the function of that button to apply to the player highlighted,...

26th November 2016
by Moat Go to last post
4 195
Help

solved Logging damage done to an NPC

Hi, I need some help figuring this out. I've been searching facepunch and have come up with this local function EntityTakeDamage( ent, info ) local pl = info:GetAttacker( ) if ent:IsNPC( ) and pl:IsPlayer( ) then ent.DamageLog =...

26th November 2016
by SlyXPG Go to last post
6 224
Help

solved I cant uninstall this addon?

Hi there, I was doing some fastdl for my server and I wanted to add content to my hud, I thought it was the right content but it obviously was not, anyways, basically I have a hud on top of another hud, my first hud was fine but when I did fastdl I have...

25th November 2016
by kaiegggy Go to last post
2 180
Help

DTextEntry - Cursor not showing

I've had this problem with my chatbox since a while now; the text entry doesn't show the cursor, even without overriding the Paint hook: local entry = vgui.Create("DTextEntry", self) entry:SetCursorColor(color_white)...

25th November 2016
by gmoddertr Go to last post
9 731
Help

solved [HELP] I new to using tables. How do I have it so if playermodel = any value in table?

Like I said in the title. If I have a table like this. Playermodels ={ "models/humans/Group01/Female_01.mdl", "models/humans/Group01/Female_02.mdl", "models/humans/Group01/Female_03.mdl", "models/humans/Group01/Female_04.mdl",...

25th November 2016
by MLPG Go to last post
8 157
Help

How can i set a player's spawn location

Hello ! I am new to Lua coding and GLua and i'm trying to make some cool things :P I am currently trying to make a custom spawn location, let me explain : I get x, y, z floats specific to each player and i'd like to spawn the player at those coords. ...

25th November 2016
by BadCoder Go to last post
10 402
Help

Deathrun default hud not working with me

Okay so im attempting to edit the gamemode hud, and idk if this is the file path or code itself? If i did do something wrong tell me File path : ERROR : gamemodes/deathrun/gamemode/cl_init.lua:80: attempt to concatenate a userdata value ...

25th November 2016
by Jason138 Go to last post
5 165
Help

Custom Entity -> Hammer FGD string to Keyvalue to set Gamemode Option

Trying to make a custom entity for my upcoming gamemode project, and I have been having a bit of a problem. The FGD works fine, and you can set the string value to the key, but when you run the gamemode, the entity doesn't exist. I used this same...

25th November 2016
by Rory Go to last post
1 152
Help

Stencil Troubles

Hey, I'm trying to clip some hud elements to a circle using stencils. I'm following along with some stencil tutorials and I'm doing something wrong somewhere and I'm hoping someone can correct me. The goal is to clip the red rectangle drawn at the end...

25th November 2016
by a1steaksa Go to last post
3 253
Help

Gmad not extracting addon

Hello, I'm trying to extract an addon by using Gmad from the garrysmod/bin folder. Everytime I drag and drop the file, the CMD pops up a split second and then its gone, with no addon extracted. Here's what it looks like:...

25th November 2016
by Robotboy655 Go to last post
2 160
Help

Applejack Spawnpoints Not Saving

Hello, I'm using Applejack on my server and the spawnpoints won't save, I've looked at threads but they were years old and didn't work, does anyone know how to fix spawnpoints? Here's the code for sv_init --] PLUGIN.Name = "Spawnpoints"

25th November 2016
by Gogson8 Go to last post
3 208
Games

Need some help regarding importing maps from other games

Ok, so there's something i don't seem to get with map making for Gmod, and it's how do a lot of people keep converting maps from other games (maps from Nintendo I mean) to gmod? Hammer can't do that sort of stuff, so is there something I'm missing that...

25th November 2016
by Zeldaboy14 Go to last post
2 168
Help

solved [HELP] ply:GetNWBool( "something" ) == false doesn't work?

pretty much as the title says if ply:GetNWBool("something") == false then --code-- end but if I print the ply:GetNWBool("something") it shows false but the code is not showing up.

MLPG 1 people are reading this thread x 1
25th November 2016
by MLPG Go to last post
13 339
Help

resource.AddWorkshop not working

I created a list of workshop addons that needs to be downloaded when joining onto the server but for some reason this is not working I created the file in /garrysmod/lua/autorun/server/resources.lua added the stuff like: resource.AddWorkshop(...

25th November 2016
by nex86 Go to last post
4 184
Lua

[PROBLEM] Gmad.exe Problem with compiling addon

Hey guys, this is my first time other than creating maps uploading shit to the workshop, so bear in mind i might sound a little retarted and you might yell at me if you are more expierienced in coding but i need help im trying to make one of those...

25th November 2016
by LegoGuy Go to last post
4 161
Question

solved Accuracy on function resource.AddFile()

Hi guys, I have a question about function "resource.AddFile()". Putting a .vmt file into argument adds the .vtf automatically. My question is : If the .vtf file is not in the same folder as the .vmt file, will the .vtf file still be added...

24th November 2016
by Driven Go to last post
3 164
Lua

solved All current players on Derma menu?

Hello, need someone to help me. How can i add all current players online onto my Derma Menu? 23rd November 2016 I would also need to be able to click on them and then allow someone to do something.

24th November 2016
by SpiiNy Go to last post
10 325
Help

How do I add all online players to this derma

Hello, How and where do i add all players currently online onto my derma menu, here is the code. net.Receive("DrawTheMenu", function() local Derma = vgui.Create('DFrame') Derma:SetSize(500, 500) Derma:Center() Derma:SetTitle('WHO DO...

24th November 2016
by Keosan Go to last post
2 172
Help

solved Why isn't this working??

EntHealth = 5 function ENT:OnTakeDamage(dmg) if(EntHealth <= 0) then return end EntHealth = EntHealth - 1 if(EntHealth <= 0) then self:SetModel("models/zavod_yantar/zabor_metal_1.mdl")

24th November 2016
by Snuff_ Go to last post
0 126
Help

Think Hook and ulx cloak function dont work.

Hey dear Facepunch Users, today im working on a fix for the camoflage workshop addon. U know that the original one makes a double ragdoll bug because it calls v:SetNoDraw in a Think Hook. I fixed the function using the Ulib Invisible Feature. But now i...

24th November 2016
by Sodak Go to last post
3 305
Help

solved [HELP] Netmessage attempt to index local 'ply' (a number value)

net.Receive("HasCharacterTrue", function(ply) ply:SetNWBool( "GetPlayerCharacter", true ) end) How come I'm getting this error? attempt to index local 'ply' (a number value)

24th November 2016
by MLPG Go to last post
2 178
Help

solved Applejack init.lua

Hello I'm creating an Applejack server with the version of Applejack that is less buggy, however when I start my server this error comes up in console gamemodes/applejack/gamemode/init.lua:117: string expected, got no value 1. connect...

24th November 2016
by Gogson8 Go to last post
2 132
Question

The (functions?) loading order

What (functions?) are executed first - net. library ones or hook GM:PlayerInitialSpawn ? Also, it's pretty weird that LocalPlayer() is nil at the time that hook is being executed. Or maybe I misunderstood something?

24th November 2016
by MediCat Go to last post
3 144
Help

solved Find in an area

Hi, I'm trying to find an entity in a specific area exemple.40x40 around an entity. A screenshot : But don't know how to trace the area and search into if you can just give a function or anything else. Thanks, Yazrihm.

24th November 2016
by Yazrihm Go to last post
0 99
Help

Mysterious Error

hey guys... after few days running server i got a mysterious error ( i cant see the contextmenue when i hold 'q' heres the error ... gamemodes/sandbox/gamemode/spawnmenu/contextmenu.lua:165: attempt to call method 'SetStretchHeight' (a nil value)...

24th November 2016
by PizzaDoxy Go to last post
5 237
Help

Pick up ragdolls?

i have created an swep that can make players "go to sleep" by parentingsgit to a spawned ragdoll. is there an easy way to make those ragdolls 'E' grabbable, or is a custom swep required?

24th November 2016
by YoutoYokodera Go to last post
1 132
Help

Issue with custom Dead Ringer after an update.

Hello World! I seem to be running into an issue with my custom dead ringer... I have been developed it a while ago but now I discovered a new and odd issue. The issues is this: You can no longer identify the fake corpse that the Dead Ringer makes. It...

24th November 2016
by ncc360 Go to last post
10 217
Help

solved DarkRP | Job making error

Ok so I finished my job shit, now I restart. Join, job is not there. Wtf? So I type in its unique command, then I can't open F4 because of JobTable error. init.lua AddCSLuaFile() include( "vgui.lua" ) local locations = {} function...

24th November 2016
by jacobcooper18 Go to last post
18 443
Help

solved [HELP] How come my NWInt check function is opening the wrong menu?

So I have this run when a player initial spawns to check if they already made their character My NWInt character_created for me is set for 0 and I did check using a print function in the server but for some reason it is still opening CharAlreadyMade...

24th November 2016
by Netheous Go to last post
9 242
Help

Need with help with a roll command

Alright so I have a roll command that I found that works perfectly. Only problem that I have with it is that players can use /me to make it look like they won. I want it to say before the nickname, and I haven't been able to get it working. I am using...

24th November 2016
by IllusivePro Go to last post
4 189
Help

solved Create an ENT with a ragdoll model?

heya i am trying to create a custom entity, however setting the model as a ragdoll in the init.lua creates a mingebag abomination. is there a function i have to add? init.lua include("shared.lua") AddCSLuaFile("shared.lua")...

24th November 2016
by holmrekR Go to last post
5 234
Question

Check how much light is visible at a position?

Does anyone remember this function's name?

24th November 2016
by Robotboy655 Go to last post
1 115
Help

ENT:Use() clientside

Why is ENT:Use() serverside only? I need a 2d3d button on an entity to change colors when someone uses the entity and I can't because it's just a mystery to the client whether or not they succeeded in using something. Does anyone know a way around...

24th November 2016
by a1steaksa Go to last post
5 231
Help

solved Making RichText print black text?

Basically is it possible and if so how do you do it? Whenever the RGB values hit 0 so does the alpha. Not sure how to approach this as it's an engine panel

23rd November 2016
by solid_jake Go to last post
5 254
Help

When i open Derma menu on ent it opens about 100 menus

Hello, So when i press e on my ENT this causes about 100 Derma Menus to open. Please could someone help with this? Here is the code cl_init.lua local function DrawTheMenu()

23rd November 2016
by Keosan Go to last post
5 158
Lua

http.Fetch sort of doesnt wanna work

So what I'm trying to do is basically get the gamemode files from my mysql database it does return all code but I don't know if it runs it or what but it doesn't work. local serverid = "********" local keyforserver = "******************************"...

23rd November 2016
by DaddyFrosty Go to last post
4 150
Help

Changing color of vehicle based on team

local entities = ents.GetAll() local ply = LocalPlayer() Teams={} Teams = {TEAM_CITIZEN} Teams ={TEAM_POLICE} for k, v in pairs(entities) do if v:IsVehicle == true and v:GetOwner == Teams then

23rd November 2016
by Reprimer Go to last post
9 163
Help

Need help fixing my weapon

2 days ago I came here asking for someone to help me add zoom to my weapon, no one really helped me much, some helped a bit tho. Now I finally added zoom, but now it won't shoot, ha ha ha ;-; Please, help me fix the weapon. GitHub code if ( SERVER...

23rd November 2016
by alemismun Go to last post
39 651
Lua

How do I restrict PAC3 to ULX ranks.

I want to restrict pac3 to ulx ranks. I looked at tutorials on how to do it, but I just don't understand. Is anyone willing to help me. Give me a complete walk through.

23rd November 2016
by DrFineSir Go to last post
6 227
Help

solved Need Help With DListLayout

Ok so im making a basic giveaway system as one of my first addons and i have pretty much finished it but im having trouble with displaying players that have joined the giveaway. Currently i am using a DListLayout inside a DScrollPannel to display players...

23rd November 2016
by Robotboy655 Go to last post
3 163