Title / Thread Starter Last Post ByReverse Sort Order Replies Views
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!

3 Weeks Ago
by Acecool Go to last post
18 695
Lua scripting
 

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;

3 Weeks Ago
by Acecool Go to last post
5 264
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...

3 Weeks Ago
by AK to Spray Go to last post
7 227
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?

3 Weeks Ago
by code_gs Go to last post
3 178
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()

3 Weeks Ago
by Chokitu Go to last post
2 146
Lua scripting
 

Join Leave This thread has images

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...

3 Weeks Ago
by Acecool Go to last post
18 302
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...

3 Weeks Ago
by Acecool Go to last post
33 554
Help
 

Add a "money" counter to BF HUD This thread has images

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...

3 Weeks Ago
by sifly_04 Go to last post
11 461
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

3 Weeks Ago
by Exploderguy Go to last post
1 113
Request
 

Warhammer 40k Roleplay Script, SWEPs, and Entities

Hi, I am working with my friend in creating a Warhammer 40k Roleplay server on Gmod. However we are in need of a Lua coder for gmod to create scripts, SWEPs, and Entities along with whatever else we may need. There will be payment for services based off...

3 Weeks Ago
by Apple_Bloom Go to last post
4 199
Lua scripting
 

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 =...

3 Weeks Ago
by TheCodingBoss Go to last post
2 143
Help
 

Making a Shield Weapon This thread has images

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...

3 Weeks Ago
by zerf Go to last post
2 237
Lua scripting
 

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

3 Weeks Ago
by Fillipuster Go to last post
2 126
QUESTION
 

solved "Refreshing" Client-side code? This thread has images

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...

3 Weeks Ago
by Neat-Nit Go to last post
6 213
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...

3 Weeks Ago
by ragegriffith Go to last post
6 169
Lua scripting
 

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(...

3 Weeks Ago
by GreyGeist Go to last post
0 94
Lua scripting
 

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...

3 Weeks Ago
by thefreeman193 Go to last post
6 184
Lua scripting
 

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

3 Weeks Ago
by Invule Go to last post
5 167
Lua scripting
 

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!!!

3 Weeks Ago
by VINTproYKT Go to last post
4 196
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",

3 Weeks Ago
by [CLRP]extra Go to last post
6 142
Lua scripting
 

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...

3 Weeks Ago
by Borris_Squad Go to last post
3 135
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....

3 Weeks Ago
by galactikUser Go to last post
2 249
Lua scripting
 

solved DarkRP - Can't switch to custom jobs. This thread has images

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:...

3 Weeks Ago
by Marooca Go to last post
3 139
Lua scripting
 

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...

3 Weeks Ago
by D3NNYM41C01M Go to last post
2 112
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()) ...

3 Weeks Ago
by Acecool Go to last post
4 238
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...

4 Weeks Ago
by Acecool Go to last post
3 170
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...

4 Weeks Ago
by zerf Go to last post
1 175
Lua scripting
 

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?

4 Weeks Ago
by zerf Go to last post
3 138
Lua scripting
 

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...

4 Weeks Ago
by Maurdekye Go to last post
11 203
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...

4 Weeks Ago
by Jerpy Go to last post
4 153
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!

4 Weeks Ago
by Author. Go to last post
2 160
Gross
 

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

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

4 Weeks Ago
by Mors Quaedam Go to last post
806 49,858
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. ...

4 Weeks Ago
by Robotboy655 Go to last post
3 130
Lua scripting
 

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...

4 Weeks Ago
by J3r0 Go to last post
8 345
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...

4 Weeks Ago
by Acecool Go to last post
1 108
Help
 

Kill notification for garry' s mod

Hi facepunch ! I need some help cause i' m curently working on a server and i found this on the work shop : http://steamcommunity.com/sharedfiles/filedetails/?id=296385367 This is a basic Hitmaker code : if (CLIENT) then hit = false W =...

4 Weeks Ago
by sifly_04 Go to last post
2 253
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.

4 Weeks Ago
by zerf Go to last post
5 184
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.

4 Weeks Ago
by Acecool Go to last post
1 100
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.

4 Weeks Ago
by Acecool Go to last post
5 182
Shitpost
 

Darkrp - People spawning with no jobs/money | Coffee inventory stopped working

In Darkrp, people spawn with no money or job. THERE IS NO ERROR. I tried reinstalling darkrp to the server. It did not work All of the addons i have, have been used before and are unedited. I put the server down for some time. Started it back up...

4 Weeks Ago
by tomis13lack2 Go to last post
0 136
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,...

4 Weeks Ago
by Acecool Go to last post
2 125
Help
 

Animation Problems This thread has images

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...

4 Weeks Ago
by GreyGeist Go to last post
8 205
Tutorial
 

Guide: Vectors for dummies! This thread has images

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

4 Weeks Ago
by ollie Go to last post
10 391
Help
 

Pill Job Darkrp

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

4 Weeks Ago
by LieutExcalibu Go to last post
1 138
Love
 

solved Gmod Collaborators Group This thread has images

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...

4 Weeks Ago
by RaptorJGW Go to last post
0 115
Lua scripting
 

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...

4 Weeks Ago
by Oblivion123 Go to last post
0 160
Lua scripting
 

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...

4 Weeks Ago
by Exploderguy Go to last post
6 205
Help
 

solved Spamscript help

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

4 Weeks Ago
by VenomCruster Go to last post
5 149
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...

4 Weeks Ago
by sifly_04 Go to last post
2 168
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...

4 Weeks Ago
by adamdburton Go to last post
2 108
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" .....

4 Weeks Ago
by VenomCruster Go to last post
20 558
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...

4 Weeks Ago
by Acecool Go to last post
10 217
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)....

4 Weeks Ago
by Acecool Go to last post
1 128
Lua scripting
 

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,...

4 Weeks Ago
by Acecool Go to last post
1 125
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...

4 Weeks Ago
by Jeezy Go to last post
3 138
Lua scripting
 

NPC look at - Drawing info This thread has images

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.

4 Weeks Ago
by TreeBek Go to last post
8 269
Lua scripting
 

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...

4 Weeks Ago
by Gamerzcrafted Go to last post
0 136
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. ...

4 Weeks Ago
by Exho Go to last post
4 189
Lua scripting
 

Crow playermodel

Hello all, I tried to fixup the crow NPC model to be fully function as playermodel, but I haven't take any step in the right position. I don't want to use the PillPack or something since that is too much for the script I'm putting it in. Can...

4 Weeks Ago
by Darrell Go to last post
9 269
Stupid
 

solved cam.Start3D2D keeps moving randomily

AddCSLuaFile("proconfig.lua") include("shared.lua") function ENT:Draw() self:DrawModel() local amount = self:GetNWInt("Armor") local Pos = self:GetPos() local Ang = self:GetAngles()

4 Weeks Ago
by S3nior Go to last post
2 121
Help
 

LUA Refresh not working ( DarkRP )

Ever since the new darkrp update, the lua refresh on updating jobs doesn't work. Here is the error that is placed in console when I try to refresh. Unhandled Lua Refresh:

4 Weeks Ago
by Exploderguy Go to last post
2 234
Lua scripting
 

solved Update checker?

Is there a way to make a update checker? I've seen somewhere in a addon one, it used net library(which I dont understand yet :x) I dont remember which it was, nor did I understand the check function..?

4 Weeks Ago
by whitestar Go to last post
5 252
Request
 

TTT Bots

You know how in TF2 The bots do lots of stuff like Capture the points and Kill eachother so you can Practice Your Skills? Well why can't you do the same for TTT? I actually tried to put bots in a TTT gamemode private server, but It just didn't work...

4 Weeks Ago
by Author. Go to last post
22 10,414
Computers
 

solved Hey guys what should i use to make gmod script?

What programming language should i use to make garry's mod Script?.What is the easiest one?

4 Weeks Ago
by JGamersZone Go to last post
5 219
Help
 

solved Money System: Overwriting Unwanted Values!!

I will try and explain this as best as possible so I have created a money system, very simple when a player joins it checks if they have money if not create a file to store there money, currently money can be added and taken. There is two money forms...

4 Weeks Ago
by Hoodiecraft Go to last post
4 175
Lua scripting
 

Multiple skins on one model with $texturegroup skinfamilies

Hey, I'm trying to create a new weapon based on a model that already has 3 different skins (which are all working fine and used for 3 different weapons). I created a 4th skin that I want to use with the new weapon. This is how the skinfamilies part of...

4 Weeks Ago
by Pamppupoika Go to last post
6 264
Lua scripting
 

Putting a players steam avatar in a hud?

Hey, im trying to grab the LocalPlayer's steam avatar when PlayerAuthed gets ran. But it just puts a question mark for their avatar. I think it's because the player entity doesn't exist yet when PlayerAuthed gets run, so it doesn't know their avatar yet....

4 Weeks Ago
by Willox Go to last post
12 333
Help
 

Death screen | NEED HELP

Hi facepunch I NEED a Basic death screen for gmod serveur... It look like this: http://i.ytimg.com/vi/gTUx5UkFjO4/maxresdefault.jpg Ive already work on this and ill show you what ive done in a few hour but until this i NEED some of your work to...

4 Weeks Ago
by sifly_04 Go to last post
3 160
Help
 

Error with adding images to fastdl

I made a derma with a picture on it and i need to add the images to fastdl. I converted it to vmt and vtf files for it, but it still doesn't work. I probably converted into vmt and vtf wrong because i wasn't sure about the settings. Can anybody help me if...

4 Weeks Ago
by Exploderguy Go to last post
6 158
Love
 

solved TTT - Fetching score externally

Straight to the point. I rarely play with TTT, but this time I feel like working with it so, I need a way to fetch score from TTT but the whole VGUI thing is messy and I can't seem to find the fetching function inside it. There's ScoreGroup(),...

4 Weeks Ago
by Netheous Go to last post
1 156
Lua scripting
 

Override default connection messages w/ script This thread has images

How do I override the default "Player xyz has joined the game" message? This is the code I have currently; function connect(name, ip) PrintMessage(3, name .. " has connected to the server.") return true end hook.Add("PlayerConnect",...

4 Weeks Ago
by Hoodiecraft Go to last post
3 186
QUESTION
 

solved Server chat hopper not working This thread has images

What I'm trying to get is a server hopper that can be done by chat. I already have an interactive hopper, but this is just for an extra feature for the people that are lazy. What it does is by typing the server's shortened gamemode name, it would redirect...

4 Weeks Ago
by Jerpy Go to last post
5 148
Lua scripting
 

DarkRP Hud Test Issue This thread has images

Okay so when I put my money above 500 it goes to far over to the right. Is there anyway I can make the text move to the left instead of the right? Before: After: Code:

4 Weeks Ago
by tripps41 Go to last post
3 161
QUESTION
 

Change SWEP.Primary.DefaultClip on the fly?

Hey, I've run into another issue that I can't find any documentation on. I'm trying to change it so that a weapon only gives out its ammo once, but I'd like to keep the default variable name for compatibility reasons. Is it possible to turn off the...

4 Weeks Ago
by GreyGeist Go to last post
0 92
Repeat
 

solved Giving ammo on weapon spawn

I'm trying to give ammo on weapon spawn as ti doesn't seem to work with the weapons I'm using. I have this in my SWEP but it errors. function SWEP:Initialize() if SERVER then self.Owner:GiveAmmo(90,self.Primary.Ammo) end end

4 Weeks Ago
by LUModder Go to last post
2 91
Help
 

solved DarkRP - Change position of Lockdown HUDi

I looked all over the darkrp gamemode files, but I cannot figure out how to move the lockdown hud. I'm just looking for the file and line. Once I find it, I can change it myself. If you know please give me the trail like gamemode/darkrp/____...

4 Weeks Ago
by McSniper12 Go to last post
5 137
Lua scripting
 

solved attempt to call field 'AddNetworkString' (a nil value)

Hello, sorry for my bad english, i'm French :p First, clientside hooks StartChat. After that, the function PlayerStartChat precache, prepare and transfer the name of the player (ply) to the server. After that, the server do that he would do. Or, to...

4 Weeks Ago
by Neat-Nit Go to last post
3 195
QUESTION
 

Question about my HUD This thread has images

I am wondering if there is a more efficient way to get the text in my health and armor bars to always be in the middle. hook.Add( "HUDPaint", "firstHUD", function() local ply = LocalPlayer() local screenX = 1600 local screenY = 900 local xMult =...

4 Weeks Ago
by imMrAnarchy Go to last post
3 178
Art
 

Light-weight Chat Box Framework This thread has images

This chat box framework is made for developers. If you came here looking for a complete solution you are probably in the wrong place. Garry's Mod Chat Mod -all api features will be listed on github!- This mod will allow modification of the way...

4 Weeks Ago
by MeepDarknessM Go to last post
15 915
Lua scripting
 

solved Simple Sandbox PvP Controller Plugin

First of all, I'm not requesting anybody else make this gamemode extension. I fully intend to make this on my own. I have the experience with both Lua and programming in general, but one thing I am very much lacking in is documentation on garrysmod's...

4 Weeks Ago
by Maurdekye Go to last post
9 332