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,905
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,111
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
3 Minutes Ago
by Blasphemy Go to last post
47 1,091
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 4 reading
47 Minutes Ago
by adamdburton Go to last post
4,846 194,641
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 3 reading
52 Minutes Ago
by COM.WILSON Go to last post
3 31
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 2 reading
58 Minutes Ago
by ShadowRanger Go to last post
846 18,880
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 1 reading
1 Hour Ago
by Nookyava Go to last post
4 91
Stupid
 

Fast stupid question about uniqueID

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

1 Hour Ago
by Noi Go to last post
15 190
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 )

1 Hour Ago
by selfdestruk1 Go to last post
2 67
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...

2 Hours Ago
by Vizik Go to last post
5 97
QUESTION
3 Hours Ago
by bluebull107 Go to last post
3 98
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"},...

3 Hours Ago
by bluebull107 Go to last post
4 122
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

4 Hours Ago
by CapsAdmin Go to last post
15 256
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 1 reading
4 Hours Ago
by Reyjr43 Go to last post
3,303 172,901
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?

6 Hours Ago
by Judd Go to last post
2 80
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?

7 Hours Ago
by Koji6ac9H Go to last post
5 71
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()...

7 Hours Ago
by Rtyan Go to last post
2 58
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.

8 Hours Ago
by Koji6ac9H Go to last post
6 168
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...

8 Hours Ago
by Tomvdr Go to last post
9 172
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,...

Frank Taglian 1 reading
8 Hours Ago
by CallMePyro Go to last post
13 249
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...

8 Hours Ago
by Acecool Go to last post
2 92
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...

Koji6ac9H 1 reading
8 Hours Ago
by Koji6ac9H Go to last post
3 157
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....

9 Hours Ago
by Krown420 Go to last post
8 149
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...

9 Hours Ago
by vrej Go to last post
1 120
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...

10 Hours Ago
by Loveasparagus Go to last post
12 243
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)

10 Hours Ago
by Snowpaw Go to last post
32 427
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)

11 Hours Ago
by DaRkWoRlD1337 Go to last post
12 246
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,...

11 Hours Ago
by Chimpanzee Go to last post
1 65
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?

12 Hours Ago
by gonzalolog Go to last post
1 63
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",...

12 Hours Ago
by Invule Go to last post
53 990
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...

13 Hours Ago
by Robotboy655 Go to last post
1 58
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 )

16 Hours Ago
by buu342 Go to last post
2 103
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 -...

17 Hours Ago
by okkeh96 Go to last post
1 69
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()

17 Hours Ago
by MDave Go to last post
1 94
html
 

Models not downloading.

Im using wamp server as web host. Im using mafia models for my job(s) But no one can download it. i tried resource.Add but it didn't worked http://78.165.155.187/garrysmod/ here's my fastdl link My server.cfg: sv_downloadurl...

18 Hours Ago
by DaRkWoRlD1337 Go to last post
5 97
Help
 

Lua Error TTT Server (Golden Deagle/Damageinfo)

Hello =) I have a TTT Server and I am trying to solve some lua errors. Maybe you guys can help me by this problem. I solved a few errors by my own but I dont know what I should do here. If players shoot with the golden deagle I get this lua error on my...

18 Hours Ago
by Nessaj1 Go to last post
12 336
Help
 

Contact between a GMod server and a website?

Hey again everyone. I was wondering how to tackle something like connecting between a GMod server and a Website. I got this idea from an addon that can manage a server live from a website. I don't remember the name of the addon. The only way I see,...

19 Hours Ago
by kibble Go to last post
4 189
Lua scripting
 

Darkrp Searchable Dumpster Timer issue This thread has images

So, I used a workshop searchable dumpster, its timer is broken, it will work sometimes, but will either get stuck on its first second or last second of the timer. Here' what I have so far. cl_init.lua include("shared.lua") function...

21 Hours Ago
by Netheous Go to last post
1 61
Lua scripting
 

Help me with darkRP This thread has images

In general, I need to save textscreen and other nps,prop map.To restart after the map\ server he remained. How to do it?

21 Hours Ago
by Praesdynamite Go to last post
11 276
QUESTION
 

Kinect player animations?!

Hello, I was playing around with SWEP Construction kit, I love it, but the only downside is there's no way to make animations (without parenting to viewmodel).. Anyway, I was thinking. Would it be possible to hook up a kinect to my computer, move myself,...

22 Hours Ago
by gonzalolog Go to last post
1 83
Help
 

Chinese text can't change fonts This thread has images

Chinese - Microsoft JhengHei Chinese - Arial English - Microsoft JhengHei

22 Hours Ago
by weixin0914 Go to last post
8 327
Shitpost
 

How do i extract this addon

I want to extract the mystery box entity addon but i do not know how

22 Hours Ago
by Praesdynamite Go to last post
9 165