Title / Thread Starter Last Post ByReverse Sort Order Replies Views
Link
 
Winner x 31

NEED A CODER? DON'T MAKE A THREAD - LAST UPDATED 25 OCTOBER 2013 - READ THIS

We are not interested in threads that state you are looking for a coder for your server/addon/gamemode. Please instead use this website. http://coderhire.com/

7th May 2013
by Gran PC Go to last post
1 7,909
Garry
 

MODDING HELP - READ ME FIRST

This forum is for help modding Garry's Mod. This includes everything from scripting to mapping. Your first port of call should be the Garry's Mod Wiki. If you don't find what you need - please post a thread in this forum asking for the information to...

27th February 2013
by Sethxi Go to last post
6 8,114
Stupid
 

Uploading my first addon

I am trying to upload my first addon. I have already uploaded it but when I start up a single player game it says "Addon Gravity Minimizer Is Creating Script Errors." I have looked all over the internet for a detailed a thorough way to make a SWEP and...

Praesdynamite 2 reading
6 Minutes Ago
by Chimpanzee Go to last post
9 234
Lua scripting
 

Post Your: First Lua Project ( 2 Last ) This thread has images

Everyone has to start somewhere, some people (including me) start with hacks, other people start with derma while others start with simple gamemodes.. Regardless of how you started, this it a thread where you can post your ridiculously crappy first...

Netheous 5 reading
7 Minutes Ago
by BFG9000 Go to last post
57 1,390
Release
 
Winner x 47

Next Update ( 2 3 4 5 .. 80 81 82 83 Last ) This thread has images

Latest changelog This is a thread for discussing upcoming Garry's Mod updates. All changes in the latest changelog should be already in the dev branch, so if anyone here is running on that branch, please test those changes and report any issues on...

_Kilburn 6 reading
15 Minutes Ago
by Icejjfish Go to last post
3,318 173,345
Request
 

Background image for chatbox?

Hello all! I was wondering if there was any way to change the chatbox so that the background of it would be an image. Basically what I'm asking is "is there a way to remove the defult chatbox and simply keep the text aspect of it, but replace the...

Its Waffles 2 reading
20 Minutes Ago
by Chimpanzee Go to last post
5 131
Help
 

No Custom Reloading Sound with SWEP

Here is my code: if SERVER then AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "RazorShared.lua" ) end SWEP.HoldType = "ar2"

COM.WILSON 1 reading
46 Minutes Ago
by COM.WILSON Go to last post
7 108
Help
 

Gmod Chat in color

Quick question? Whats the command to add color to a message in chat (serverside - Gmod)

alex578344 1 reading
1 Hour Ago
by Robotboy655 Go to last post
7 90
Lua scripting
 

Speed Bar

I currently have this code: draw.RoundedBox(0, 320, ScrH()- 70, math.Clamp(velocity, 0, 250), 40, Color(0,130,130)) *250 being the width of the background* I would like to make it so that as your speed increases the bar increases with it but as...

1 Hour Ago
by circuitbawx Go to last post
14 291
Help
 

Missing map.

I set up FastDL and it works just fine with everything, but first time i join a server without that map i get kicked because map is missing, and if i connect again without restarting game it will be fine. Is there any way to fix this? I have also tried...

2 Hours Ago
by Belly136 Go to last post
12 225
Help
 

Testing Gamemode

I have started to create a gmod gamemode and have made all the essential files eg. init , cl_init, shared. I want to test this gamemode out but when I launch garry's mod I cannot start a game with this gamemode. Would I have to create a dedicated server...

alex578344 1 reading
3 Hours Ago
by Robotboy655 Go to last post
7 166
Lua scripting
 

halo.Add not changing on ENT:Think() function.

Hello. I'm trying to have my Entity glow different colors depending on it's health. But It doesn't seem to want to do that. I start the Initialize function by adding this: self.hp = 500 self.MyColor = Color( 0, 255, 0, 255 )

3 Hours Ago
by Robotboy655 Go to last post
4 147
Link
 
Winner x 70

CoderHire ( 2 3 4 5 .. 119 120 121 122 Last ) This thread has images

After some drama and downtime, CoderHire is officially back. The site now has community moderators to help it run much more smoothly. CoderHire was made to accommodate people looking for some custom work done for their Garry's Mod server, and for...

_Undefined 3 reading
3 Hours Ago
by Netheous Go to last post
4,849 194,945
Help
 

disabling chat doesn't stop it grabbing the mouse

hi all I have this code to disable the default chat: --Disable default chat local function hidechat( isTeamChat ) return true end hook.Add( "StartChat", "startchat", hidechat )

3 Hours Ago
by Tenrys Go to last post
5 142
Help
 

Pointshop | Can't make the model unequip when joining a new team

Hey, My issue I think is pretty simple, I haven't really been able to figure it out though as I can't really lua code. What I want to do is make it so that when you change from one team to another, your model holsters. (This is on a jailbreak...

4 Hours Ago
by HumbleTH Go to last post
4 121
POST YOUR
 

Problems That Don't Need Their Own Thread v2.0 ( 2 3 4 5 .. 19 20 21 22 Last ) This thread has images

Welcome to the PTDNT page ! Have a small problem and need help with it , but you don't want to start a new thread and ask about your problem then you've came to the right thread ! To keep it clean -Post your problem ("Variable returns nil at some...

sm69baller 1 reading
6 Hours Ago
by Internet1001 Go to last post
857 19,031
Help
 

Whitelist Addon?

Looking for a working Whitelist addon to use instead of using sv_password. Had found this (but no download exist anymore): http://facepunch.com/showthread.php?t=1122559 Would be nice to even have an sql version with a nice command like !whitelist...

7 Hours Ago
by zeaga Go to last post
12 204
Lua scripting
 

Team seat up on each different map

Hey guys. So i really need help with setting up the teams for my gamemode. So for some maps i want to be just one team like free for all(just 1 team), and for other maps 2 teams like team deathmatch. If anybody could help me with this. It would be great. ...

HumulusLupulu 1 reading
8 Hours Ago
by Jarva Go to last post
8 117
Help
 

ZS Gamemode Errors and Glitching

Ok so I download the Zombie Survival SVN (114MBs For me) and I put it in my gamemodes folder on my server. Now I am getting a ton of errors and there are a lot of glitches like players spawning under the map, wave 1 does not start, humans can't nail...

8 Hours Ago
by natiscool Go to last post
17 404
QUESTION
8 Hours Ago
by DaRkWoRlD1337 Go to last post
4 134
Help
 

solved How to add passive items to TTT?

I've found that adding custom weapons to TTT is pretty easy, but can someone tell me how to add items like the bullet vest?

9 Hours Ago
by Nornan12 Go to last post
2 71
Stupid
 

Fast stupid question about uniqueID

UniqueID will be different on different servers, or if you go with a another IP?

12 Hours Ago
by Noi Go to last post
15 225
Help
 

solved Derma Help!

Hey guys, ive decided to code my very own gamemode for garrymod that has never been made before :) Thankfully it shouldnt be that hard. :) Now im having a bit of trouble getting to my menu to open up by typing "!class" . It works but when i tried adding...

13 Hours Ago
by Vizik Go to last post
5 109
QUESTION
 

A General Restriction For Server Addons

Im wondering how to restrict certain functions of addons like the Advanced Duplicator to certain player groups...would something like this work? customCheck = function(ply) return table.HasValue({"Moderator", "admin", "superadmin", "Supporter"},...

14 Hours Ago
by bluebull107 Go to last post
4 137
Lua scripting
 

solved PAC3 Hide outifts on death

I just want it so that you dont have floating outfits from dead people. Pretty simple but I dont know much about pac3

14 Hours Ago
by CapsAdmin Go to last post
15 268
Help
 

Possible to show current date and time in gmod?

Was wondering if there is a way for users to display there current real world time and date? I was looking at this: http://www.lua.org/pil/22.1.html Would there be a way to use this some how?

17 Hours Ago
by Judd Go to last post
2 95
Shitpost
 

solved gsub in php OR how to get UniqueID from SteamID in PHP?

gsub in php OR how to get UniqueID from SteamID in PHP? Any ideas?

18 Hours Ago
by Koji6ac9H Go to last post
5 77
Lua scripting
 

solved Lua error

Bine trying to make a simple HUD then I started getting lua/hud2.lua:9: function arguments expected near 'surface' 1. unknown - lua/hud2.lua:0 Tryed to fix it and cant function myhud( ) local client = LocalPlayer() if not client:Alive()...

18 Hours Ago
by Rtyan Go to last post
2 65
Love
 

solved Possible to make server query like: GetPlayers( )? (PHP-Source-Query-Class)

Possible to make server query like: GetPlayers( )? (PHP-Source-Query-Class) For example it should return some information like roles of players or current number of round.

18 Hours Ago
by Koji6ac9H Go to last post
6 178
Lua scripting
 

Function only acts if players are connected.

function yepthing() if player connected >10 then --This isn't real code, I need to know what would go here. PrintMessage( HUD_PRINTTALK, "yep" ) else PrintMessage( HUD_PRINTTALK, "nope" ) end timer.Create("yepthingEmit", 1880, 0,...

18 Hours Ago
by CallMePyro Go to last post
13 260
Help
 

Scoreboard updating

Hi all, I am making a scoreboard and have got the layout and panels all done, but there is one thing I don't know how to do. I need to insert all the players into the DIconLayout I have ( I know how to do this ) but then it doesn't update. So how...

18 Hours Ago
by Acecool Go to last post
2 103
Politics
 

solved UniqueID() function is very expensive?

Here http://wiki.garrysmod.com/page/Player/UniqueID writen: UniqueID is very expensive function, but if it's right why this function used everywhere? ULX, TTT, etc? Does it make sense to use cache of this method or other ID (my community ID, primary key...

19 Hours Ago
by Koji6ac9H Go to last post
3 167
Stupid
 

Playing Custom .wav

hi facepunch. i have made a sound that i want to play on my server and i have put it in garrysmod/sound/customfolder and added an addresource script and when i joined my server i was able to play the sound for myself, but it was missing for other people....

20 Hours Ago
by Krown420 Go to last post
8 160
Help
 

Client and Server problem

Recently I made a tab in the creator menu. I got everything working, the player can spawn whatever is on the menu. But I ran into a problem in mulitplayer. In multiplayer only the server owner is able to spawn the items on the menu. If a regular player...

20 Hours Ago
by vrej Go to last post
1 125
Help
 

solved Lua Error

OK, here is the original code: concommand.Add( "amg_start", function( ply, cmd, args, string ) if AMG.UseTimer then print( "AMG.UseTimer must be set to false." ) else StartMinigame( args, args ) end end)

21 Hours Ago
by Snowpaw Go to last post
32 432
Lua scripting
 

DarkRP Name Changer This thread has images

Hi guys, im trying to change player's name automaticly when player spawns. i coded this but it won't work: AddCSLuaFile( "autorun/client/cl_init.lua" ) names = { "name01", "name02", "name03" } name = table.Random(names)

22 Hours Ago
by DaRkWoRlD1337 Go to last post
12 261
Help
 

I need help with Prop hunt Gamemode vote

The prop hunt server I am on is having troubles with there gamemode voting system, when no one is on the sever and the gamemode vote comes up if nothing is voted for it crashes and the server gets frozen on the last map just hovering around in spectate,...

22 Hours Ago
by Chimpanzee Go to last post
1 70
Help
 

help with chat command

How do i make it so if they type !ban STEAM_IDASDASD how would i make a chat command target the steam id i put in chat?

22 Hours Ago
by gonzalolog Go to last post
1 68
Lua scripting
 

Donator ( 2 Last )

I want to make some jobs Donator only //Created using DeaDeye's Classmaker TEAM_SWAT = AddExtraTeam("S.W.A.T", Color(23, 23, 23, 255), "models/player/riot.mdl", ], {"bb_ump45_alt","bb_usp_alt","handcuffs","riotshield", "handcuffs", "arrest_stick",...

23 Hours Ago
by Invule Go to last post
53 996
QUESTION
 

Adding an overlay material to a zoom function?

I'm making a rifle scripted weapon, and I have added a zoom function. However, I'm not sure how to add an overlay material to it (for the scope) Here's the zoom code: local zoomed = false function SWEP:SecondaryAttack() if zoomed == false then...

23 Hours Ago
by Robotboy655 Go to last post
1 66
QUESTION
 

DarkRP prop error

whenever someone spawns a prop and grabs it with a physgun I see this error in console: lua/includes/util.lua:173: attempt to index local 'object' (a number value) 1. IsValid - lua/includes/util.lua:173 2. entGetTouchReason -...

1 Day Ago
by okkeh96 Go to last post
1 75
Lua scripting
 

solved GetVelocity() Specific Axis

Is there a way to make this code: math.Round(ply:GetVelocity():Length() Display the velocity only on the x and z axis? EDIT: CHANGED LENGTH() TO LENGTH2D()

1 Day Ago
by MDave Go to last post
1 101