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

solved Getting door state in GLua

Is it possible to get the door's (func_door and prop_door_rotating) current state (opened or closed)? I've tried GetSaveTable, GetKeyValues and GetTable but I can't find whether or not my door is opened. I need that to make my bots open the doors...

4th March 2015
by SkitZz Go to last post
3 312
Lua

solved Head Angles a little wonky

Hi. Trying to make the head of a ragdoll (male_09) look in a specific direction, but I can't seem to get the angles right. The head points to the object with the top of the head, while the face is tilted 90° and looking to the left. This is the code I'm...

4th March 2015
by Edward256 Go to last post
4 223
Question

Team Fortress 2 "push away" collision group?

COLLISION_GROUP_PUSHAWAY has no effect, does anybody know how to implement this? 3rd March 2015 Ultimately, I want to make sure the player is never inside a certain nocollided prop.

Ott
4th March 2015
by Acecool Go to last post
6 395
Help

solved Play Music on Owner Join to Server

How would I even do this? I'm clueless. And also, i'm not too smart, but if I get tips on this, that would be great!

4th March 2015
by Acecool Go to last post
1 242
Help

Client-Server dialog

Hi guys, I'm still on my new gamemode based on Acecool DevBase and a problem appeared to me when i finally made my external database work. When a player join my server, SERVER(il but in caps to means that it's server side function) will check...

4th March 2015
by Acecool Go to last post
4 316
Lua

solved Simple code snippet returns error

function PlayerJoinedSendName( ply, ip ) local name = ply:Nick() print( "Player " .. name .. " is connecting to the server" ) util.AddNetworkString( "PlayerNameSend" ) net.Start( "PlayerNameSend" ) net.WriteString( name )

4th March 2015
by Austin1346 Go to last post
5 252
Lua

Gmod Basewars Hud and Doors not working.

Hello, Im trying to set up a basewars server but i'm currently encountering problems with being able to rip off doors and no hud. If someone could help that would be great. =D

4th March 2015
by code_gs Go to last post
1 217
Help

PhysicsFromMesh Help

So a while ago I released this on the workshop, but I'm not entirely satisfied. My original inspiration to create these was from playing HL2RP, and I've never been able to learn how HL2RP forcefields (namely in NutScript) make custom-sized fields. I saw...

4th March 2015
by Z0mb1n3 Go to last post
3 285
Lua

solved How do I properly make a config for my simple workshop addon?

Hey, I'm making a small workshop addon called "Cuztomizable player join/leave messages". I attempted to make a config for my addon that's easily accessible for server owners. Here is my config, it is only serverside: joinleaveMsgs.config = {} ...

3rd March 2015
by thefreeman193 Go to last post
6 309
Question

Logging net messages

How would i log all of the net messages on the server in a way so i can see how many of them are being sent and received, and what they actually are? I know it's possible but i wouldn't know how to actually do it.

3rd March 2015
by wh1t3rabbit Go to last post
27 1,314
Question

Gesture Menu (All Gamemodes)

I would like to ask, if there is any way to make a simple menu, where you can bind a certain key, to open a Gesture Menu. Number 0 can close the menu, 9 to change page, the rest is the "Act" commands. There was already a thread about it, but the...

3rd March 2015
by BlueCultist Go to last post
8 590
Help

solved Checking Cvars of player while they join?

Is it even possible to check the Cvars of players while they join a server. I want to know because with the current outbreak of files from server being stolen using GDaap(Lua Stealer). I'm trying to make an anti-hack/anti-stealer.

3rd March 2015
by BobbyD Go to last post
3 312
Help

solved GMod Lua- How to use 'self' outside a function (in a STool)?

Okay, so I'm trying to make a fairly basic STool, except when I try to use the variable 'self' to sample a ClientNumber (and make it a bool) to determine an 'if' sequence, a very painful error keeps popping up (self is a nil value). How can I use the...

3rd March 2015
by Mista Tea Go to last post
5 918
Lua

[BUG] physenv.AddSurfaceData is broken

This has been a longstanding issue for me but I feel it's worth one last attempt to get a fix. I should point out that this bug occurs on both the standard "live" version of Gmod and the Dev branch on steam. Basically the lua function...

3rd March 2015
by Master Chris Go to last post
3 429
Lua

Lua player list how to kick selected player

I made a little lua script to open a Dframe and list the current players on the server and I have tried to get the player name to kick him but I stuck there. function OpenPlayerList() local list_window = vgui.Create( "DFrame" ) list_window:SetPos(...

3rd March 2015
by GreyGeist Go to last post
6 567
Help

Some problems on making a gma work

I've been trying to compile a simple gamemode for now, just to make sure it works. However, when I compile it, it doesn't appear in the menu and it isn't switchable from the console command gamemode. The structure of the whole thing follows the format...

3rd March 2015
by Robotboy655 Go to last post
1 195
Lua

solved Stop a callback?

Hi. I've added a callback to a ragdoll entity to test for PhysicsCollide. However, this function that is hooked to the ragdoll is now called every time any part of the ragdoll hits something. Is there a way to unhook this function on the first collision?...

3rd March 2015
by Edward256 Go to last post
5 327
Question

GMA file without addon.json

Many open source code addons such as gmod stranded, darkrp, and cinema don't have a file named addon.json, which is essential to compiling with GMAD. How do they make it into a GMA file without the addon.json?

3rd March 2015
by geferon Go to last post
14 956
Help

Server Getting Index Buffer Error, crashing most clients

too many indices for index buffer.. tell a programmer (62220>32768) Getting this error on my server, most clients are crashing Not sure what's up. TTT Server with NFO Servers WorkshopDL

3rd March 2015
by xthenarwhalx Go to last post
5 367
Help

solved What causes a high var with net_graph 4

first of all, I don't know what the Var stands for but it is ridiculously high. My server has been crashing for a quite some time. I have spent hours upon hours for days trying to figure out what was causing the crashing and I just now noticed that the...

3rd March 2015
by Nick78111 Go to last post
1 282
Lua

Influence CalcView based on weapon muzzle angle

Hi, I was just wondering if it would be possible to influence the player's view angles based on the muzzle of the weapon. I'm not sure how to make it so that sprinting/other viewmodel position modifiers don't affect the attachment angle I'm reading,...

3rd March 2015
by GreyGeist Go to last post
0 231
Question

solved Converting bodygroup name to ID?

Any possible way of converting a bodygroup name to an ID, using nothing but a name? Would make my life all the much easier if anyone has a way :)

2nd March 2015
by [CLRP]extra Go to last post
2 280
Help

GM points give

Hello :) Plz, help me. It not work. function GM:EndRound(winner, nextmap) if self.RoundEnded then return end self.RoundEnded = true ROUNDWINNER = winner for k,v in pairs(player.GetAll()) do

2nd March 2015
by godred2 Go to last post
12 477
Lua

Need help with playermodel in DModelPanel

I need help getting the idle animation for every player. This is what I came up with and I hope theres a better solution. local anims = { = "idle_unarmed"} --table to manually define the idle animation for every model self.preview:SetModel(model)...

Uke
2nd March 2015
by Uke Go to last post
1 228
Help

solved Implement spam function into vgui

Hey, I am trying to implement my spam script concommand.Add("spamchat", function(ply, argStr) local spam = argStr MsgC(Color( 46, 204, 113 ), ( prefix ) ) MsgC(Color(236, 240, 241), ("spamming chat with: " .. spam ) ) timer.Create(...

2nd March 2015
by VenomCruster Go to last post
12 586
Help

Ulx Thirdperson Command

Hey! I was wondering... How would I make a command that would make you go into third person view? Example of command: "!thirdperson" or "ulx thirdperson", etc.? :/ Thanks!

2nd March 2015
by Acecool Go to last post
18 3,094
Lua

when a player on red team dies it dose this

how would i make it if a player on the red team dies this happens like local red = 1 when player on red team dies red = red - 1;

2nd March 2015
by Acecool Go to last post
5 410
Question

How to make All vs. 1 gamemode teams?

I'm trying to make a gamemode where one person is trying to kill everyone on the opposite team, think the 1 vs. 3 mini games from Mario Party! I'm going to refer to this one-man team as "Bowser", and the rest of the people as "Mario" for clarity and...

2nd March 2015
by AK to Spray Go to last post
7 360
Question

See all commands added by server

Is there a way to see all the commands that are added by a server? For example, you could see the ulx command and other things added by addons?

2nd March 2015
by code_gs Go to last post
3 256
Help

solved Help Me With this derma error!

I asked for help doing this bind system and this guy helped me but its not working When you write !bind it should open the bind system I made this file called cl_init and put on autorun/derma local binds = {} net.Receive("Binder", function()

2nd March 2015
by Chokitu Go to last post
2 226
Lua

Join Leave

I was trying to make a lua plugin that tells you when a player joins, and the Name and steam-ID of the player when they leave. It doesn't work for some reason function GM:PlayerDisconnected( ply ) PrintMessage( HUD_PRINTTALK, ply:Name().. " has left...

1st March 2015
by Acecool Go to last post
18 478
Help

how to get team by TEAM_ name?

i have been messing around with this for almost 4 hours trying different ways and i cant seem to figure it out, for example i would like to get the number of TEAM_SPECTATOR (1002 is returned by ply:Team() ) i want to look for a team by its name not...

1st March 2015
by Acecool Go to last post
33 823
Help

Add a "money" counter to BF HUD

Hi facepunch So i' m working on a military RP and i' m using the Battlefield 4 HUD for garry' s mod . The only problem with this is that you can not know how many money you have ... So if any one could help me it would be kind ! I' ve done this...

1st March 2015
by sifly_04 Go to last post
11 672
Question

Having an issue switching gamemodes with permaprops

My friend owns a TTT server on GM_construct and me and him were building stuff in it and we left clicked all our props with permaprop but then when he switches the gamemode to TTT it isnt there

1st March 2015
by Exploderguy Go to last post
1 191
Lua

solved Derma Help!

Ok im making a To-Do List and i want some way to add and remove to do items, i have only attempted to add the adding item but it isnt working?!?! any help guys for both? heres my code concommand.Add( "todo", function() local menu =...

1st March 2015
by TheCodingBoss Go to last post
2 223
Help

Making a Shield Weapon

Hi Guys ! I' m making a shield weapon and i 've finished almost every thing , but i have a problem ... I' ve my share.lua file and inside it i' m putting fonction . But i need a fonction witch said : If the player is scoping the weapon , then he will...

1st March 2015
by zerf Go to last post
2 325
Lua

solved LUA: Testing for multiple strings?

I have an if-statement where I want to test if x is equal to a string. The string however can be anything beginning with "m9k_" (meaning "m9k_gun1" would return true as well as "m9k_horsefarts") How would I do that? Any help is appreciated :D

1st March 2015
by Fillipuster Go to last post
2 196
Question

solved "Refreshing" Client-side code?

I have been doing a lot of client-side HUD related work recently. Whenever I make changes to the code and save it, I have to save it 2-15 times for the game to register the change, and update the information. Is there any console command or way to force...

1st March 2015
by NeatNit Go to last post
6 317
Help

Point Shop bug?

I have the most updated Pointshop addon located here. For some reason my players lose their points in game. My points (as the owner) have never vanished. I haven't seen any error in my server, just my players complaining. I tried to look up the issue but...

1st March 2015
by ragegriffith Go to last post
6 297
Lua

How should I get the muzzle position of a SWEP's viewmodel?

I've made this function: function SWEP:GetMuzzlePos() if !IsValid(self) then return nil end if !IsValid(self.Owner) then return nil end local ply=self.Owner local vm = ply:GetViewModel() local obj = vm:LookupAttachment(...

1st March 2015
by GreyGeist Go to last post
0 156
Lua

PlayerFootstep HELP!!

So basically, i'm doing a mod that replaces the footsteps sounds, but as the "sprinting" sound assumes the same sound file as the "walking" sound and i want them to be different, i got this hook, but the problem is, it replaces every single kind of...

1st March 2015
by thefreeman193 Go to last post
6 273
Lua

DarkRPHud

How do i make it so it displays Name, Job, Money and Sallary? I have this draw.SimpleText("Name:", "TargetID", ScrW() - 2000 - -100, ScrH() - 120 - 12, Color(255,255,255,255)) I would like it to be next to the name ect

1st March 2015
by Invule Go to last post
5 297
Lua

HUD Icons

I have made a hud, ads of people like it but their one criticism is it lacks icons. How can add icons into a hud and also make them not missing textures. Thanks!!!

1st March 2015
by VINTproYKT Go to last post
4 298
Help

solved Table error

Any idea where I've gone wrong in this table? --Table layout --Job Layout CWRP_Jobs = { JobName = "Police Chief", JobSalary = 55, JobTeam = "TEAM_CHIEF",

1st March 2015
by [CLRP]extra Go to last post
6 234
Lua

Hud Script Error

So i made a hud for my rp server and i get this annoying error plus i see the Sandbox hud over the top :/ addons/darkrpmodification-master/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:164: attempt to perform arithmetic on upvalue...

1st March 2015
by Borris_Squad Go to last post
3 233
Help

I am a simple coder for DarkRP

Hello guys i'm a little coder but a good coder for darkrp. I made some things like an HUD, i create a darkrp server... but if someone need me, i can create a good hud. Yous tell me what you want and i'll do it. I'm french but i speak well english....

1st March 2015
by galactikUser Go to last post
2 325
Lua

solved DarkRP - Can't switch to custom jobs.

Hi there. I've been using the DarkRP mod tool for a while to make my own jobs and stuff. However, when I'm in game and I actually try to switch to my custome job, it will output the job's command in chat, but won't switch it, like this: MrMarooca:...

1st March 2015
by nulls Go to last post
3 439
Lua

Server not recognizing addon NPC's as regular NPC's.

Just as the title says. I downloaded NextBot Zombies 2.0 And everything works fine, it's just the server won't recognize them as regular NPC's so they don't drop anything. Tried using if victim:GetClass == "nz_crazies" then function...

1st March 2015
by D3NNYM41C01M Go to last post
2 188
Question

Shorten Code

Is there any way to shorten code like this? Feels so repetitive and makes code a jumbled mess. closeB.Paint = function(self) surface.SetDrawColor(Color(0,0,0,100)) surface.DrawRect(0, 0, self:GetWide(), self:GetTall()) ...

1st March 2015
by Acecool Go to last post
4 340
Beta

solved Int getting lost between functions

I am trying to make a buy menu for a project I'm working. I had a friend do the clientside stuff but the serverside is breaking for some reason. For some reason the Int I'm sending is getting "lost" after my if statement or is the incorrect value and...

1st March 2015
by Acecool Go to last post
3 255
Help

Spawn Menu

Hi guys, Ive started learning lua to make gmod gamemodes for me and my friends to play. Currently Im stuck with trying to make a derma spawn menu, I can get the menu to open with the buttons and everything but whenever I click the button I get a server...

1st March 2015
by zerf Go to last post
1 275
Lua

Override serverside join / leave messages

I've asked this question before, and was told to use the hook ChatText to override the messages. However, it's a clientside-only hook. Is there a serverside hook I can use to override the messages?

1st March 2015
by zerf Go to last post
3 233
Lua

solved Can't add hooks using GM

I made a script that's supposed to override the default join/leave chat messages and display my own. This is the hook that's supposed to override the messages; function GM:ChatText(_, __, text, type) if type == "joinleave" then return true end end...

1st March 2015
by Maurdekye Go to last post
11 373
Question

Changing TTT's default karma-ban to use sourcebans

I am just triple checking if this would be a correct way to do it. In ttt's karma.lua, this is what the entire function is: local reason = "Karma too low" function KARMA.CheckAutoKick(ply) if ply:GetBaseKarma() <= config.kicklevel:GetInt() then...

1st March 2015
by Jerpy Go to last post
4 440
Request

Need help adding custom jobs, shipments, weapons and stuff like that for my new DarkRP server.

Yeah... Pretty much that. I'm not really good at the LUA coding side of the servers; I've attempted it and all but I just can't get my head around it. Thanks very much!

1st March 2015
by Author. Go to last post
2 250
Gross

solved GMod - What are you working on? February 2015 (#42) ( 2 3 4 5 .. 18 19 20 21 Last )

Lots of good content in last month's WAYWO, so I'll make this OP a bit bigger for you all! Highlights from the previous thread

1st March 2015
by Mors Quaedam Go to last post
806 58,911
Help

Object Context Problem.

Hello, I'm currently owning my own flood server. I'm running the fm_buildaboatcanal map. If you're unfamilliar with the map there is a roof placed at round start, That roof should not be able to be moved, Hell, not even i can move it with me physgun. ...

28th February 2015
by Robotboy655 Go to last post
3 235
Lua

solved Lua errors 170 and 239

Hi guys, i got a problem with the dans snpcs pack, the facehuggers alien ect don't attack the player anymore, is there anyone over here who knows a script for this so it can be fixed? the error it gives are 170 and 239 i have asked the uploader...

28th February 2015
by J3r0 Go to last post
8 537
Question

How to make player move

How do I make a player move? Before you say something like "Wow you're stupid stop playing gmod" I searched it up and the only one I found was moving a player to a specific position. I want to just want to, for example, move a player up slowly if they...

28th February 2015
by Acecool Go to last post
1 182
Help

How to make persistent props not removing when cleanup?

When i start server there are some entities and screens that spawn... When i do server cleanup they dissapier... how to make not to dissapier when cleanup ? Sorry about bad english skills.. Hope you understand what i mean.

28th February 2015
by zerf Go to last post
5 298
Question

Shooting a prop on someone

So, I'm coding something for a server's pointshop, for this example, I'm going to say it's a shield. If someone shot the shield, it wouldn't damage the player at all, but would affect the shield's health. Simple question, but I don't know how to do it.

28th February 2015
by Acecool Go to last post
1 171
Help

solved Server Autorestart

What does facepunch think that the best autorestart system for a crashed server is? I've tried a few altered .bat scripts but none of them worked. I also tried SeDirector but that seemed to just crash every minute.

28th February 2015
by Acecool Go to last post
5 278
Games

End Round Sounds?

Hello, im a Gmod Server owner and i'd like to have some sound when the round ends like when the innocents win, everyoen listens "Innocents win" and when traitors win play "Traitors win" (i would record those sounds). (Im not talking about End Round Music,...

28th February 2015
by Acecool Go to last post
2 291
Help

Animation Problems

So im making a class for the Zombie Survival Gamemode and I have this code to run the animations. The problem is it dosent wanna run the anmations and the sequence names are correct help would be much appreciated. Also it does run some animations like...

28th February 2015
by GreyGeist Go to last post
8 301
Tutorial

Guide: Vectors for dummies!

PDF: http://puu.sh/gfhXm/dd70b5481d.pdf All comments and critiques are appreciated, hopefully this booklet helps someone! Update 27/2/2015: Added cross product

28th February 2015
by ollie Go to last post
10 567
Help

Pill Job Darkrp

Hello, I how look for to make job with Paraket Pill Pack

28th February 2015
by LieutExcalibu Go to last post
1 355
Love

solved Gmod Collaborators Group

Hello, I hope this isn't seen as a petty group advertisement, because this isn't about playing games or no-scoping in a CoD Clan. I made a group where many Facepunchers and creators who aren't active on this board have already joined. If you check the...

28th February 2015
by RaptorJGW Go to last post
0 198
Lua

Script error which is bugging my server please may someone actually help

gamemodes/terrortown/gamemode/vgui/sb_team.lua:81: attempt to perform arithmetic on field 'Width' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/vgui/sb_team.lua:81 That ^^^^ keeps appearing in my console while on my server. ---- Unlike...

28th February 2015
by Oblivion123 Go to last post
0 378
Lua

Please help me , script error bugging my server

gamemodes/terrortown/gamemode/vgui/sb_team.lua:81: attempt to perform arithmetic on field 'Width' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/vgui/sb_team.lua:81 That ^^^^ keeps appearing in my console while on my server. ---- Unlike...

28th February 2015
by Exploderguy Go to last post
6 389
Help

solved Spamscript help

/* Spam Script Coded by VenomCruster */ local prefix = "" concommand.Add("spamchat", function(ply, args)

28th February 2015
by VenomCruster Go to last post
5 249
Post Your

Garry' s mod destructible map

Hi Guys ! I just saw a vidéo on facepunch where a player was detroying was and house with a tank ! I was wondering if any one could send other map like this one on this thread just for me to know more and / or a download link cause i' ll realy...

28th February 2015
by sifly_04 Go to last post
2 255
Request

Pointshop Dilemma

So, I've trying to figure out how to add weapons to my pointshop, simple right? Not exactly, what my goal is: To make it so the weapon is just a skin for the guns on the map, such as the m16, mac10, shotgun etc. To do this, I'd need to add the skin to the...

28th February 2015
by adamdburton Go to last post
2 199
Help

solved Why does this not work?

Could someone please tell my why this won't work? MsgC(Color( 255, 255, 255 ,255 ), " What would you like to spam?\n" ) user_input = io.read() MsgC(Color( 255, 255, 255, 255 ), "You will now spam: " .. user_input ) RunConsoleCommand("say" .....

28th February 2015
by VenomCruster Go to last post
20 770
Help

Targeting system

I try to set up the targeting system with my server. I have, in order: User, respected, t-mod, moderator, admin, superadmin, Co-Owner, Owner I don't know how to make it so that they can only taget themselves and people below. I have tried putting admin...

28th February 2015
by Acecool Go to last post
10 347
Help

Changing Map Problem

So I own 2 Garry's mod servers. A murder server and a TTT server. I only set up the ttt server last night and I am having a problem with the map change (This is happening on my murder server but it does not matter on there since it is a 24/7 cs_office)....

28th February 2015
by Acecool Go to last post
1 257
Lua

solved How do I grab a value from a table?

I'm making a custom HUD for my server and I'm trying to figure out how to grab a value from this table and set it equal to another variable. The value I'm trying to take from it is the "color" variable. It's not global so I can't just put color obviously,...

28th February 2015
by Acecool Go to last post
1 224
Work In Progress

solved Resident Evil -ish Gamemode

So , I'm currently in the midst of trying to create a such gamemode/server either with extreme gamemode editing , or using a basic rp base like nutscript to do such , Here's a quick video preview of the walking around/camera view /tiny bit's a combat...

28th February 2015
by Jeezy Go to last post
3 237
Lua

NPC look at - Drawing info

Hi. So today. I had created this. But I want to only the info from the current NPC's around me. Not every other NPC. (Same type NPC) Any help would be greatly appreciated. :) Thank you. There's my code.

28th February 2015
by TreeBek Go to last post
8 432
Lua

solved Help, Learning LUA

So im learning GLua and Im just doing the best way I know which is reverse engineering and Im creating a basic script that does stupid but kinda cool stuff. I dont want just a solution but why its a solution so I can understand on better improve upon...

28th February 2015
by Gamerzcrafted Go to last post
0 236
Question

Making a lens

How would I make a gun have a lens for ttt? When I say lens, I mean like on the Aug for example, you could be looking through the lens, but all you would see is black. I want it to be like looking through the scope, but not fullscreen a full view. ...

27th February 2015
by Exho Go to last post
4 267