Title / Thread Starter Last Post ByReverse Sort Order Replies Views
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 2,389
Link
 

NEED A CODER? DON'T MAKE A THREAD - LAST UPDATED 7 MAY 2013 - READ THIS

We are not interested in threads that state you are looking for a coder for your server/addon/gamemode.

7th May 2013
by Gran PC Go to last post
1 2,051
Request
 

I need a modeler

I need someone to model me a world and view model of the hand in bioshock, with the hornets. I couldnt find a decent picture but anyone who played should know. I plan on using it for a swep.

7th July 2009
by Jamie932 Go to last post
1 344
Help
 

Player.GetInfo returning empty string.

Here's my debug script: me = player.GetByID(1) print(me:GetInfo("test_stuff_here").." blah") Before you ask; yes, I added "test_stuff_here" in gmod_cvars_cl.txt In the console I do:test_stuff_here test and I execute the script. It prints in...

7th July 2009
by TheFoxz Go to last post
3 454
Request
 

Unusual Swep Request.

I would really like to see what can be done with this idea. Make a Gyrojet pistol and rifle. http://en.wikipedia.org/wiki/Gyrojet I'm thinking by the sound of the way it fires it can't have normal programming. It obviously needs needs to fire like a...

7th July 2009
by Deoxyribonucleic Acid Go to last post
7 529
beta
 

Making a sent boat move like a boat

well my problem is that the gravity is fucked on it and if you move the mouse up in the air the ship flys also if you aim down the ship will go under that water here is my code ddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" )...

7th July 2009
by Im bring sexy back Go to last post
0 374
Help
 

Yaw aimging only.

I was testing out a birds-eye-veiw code when i suddenly got this idea to make the players i a birds-eye-veiw gamemode only be able to aim in the yaw angle. Are there any way to disable the pitch and roll aim so the players are only able to aim with yaw?

7th July 2009
by GoatR Go to last post
0 262
Stupid
 

Iron Sights for a Swep This thread has images

Just how exactly would I make iron sights for a swep? Searching is disabled by the way so i can't search.

7th July 2009
by MakeR Go to last post
5 671
Stupid
 

Making a chat command?

Hey guys. Well to skip to the point, I need to know how to make chat commands. Such as the AddChatCommand feature in DarkRP. I looked at the DarkRP code but couldn't figure out how it's done. I also searched but found nothing. So can someone tell me...

7th July 2009
by Saint Devil Go to last post
3 666
Lua scripting
 

Geting an entity, and moving it in a swep

I have this swep code, and i get no errors, it just does absolutely nothing. Can someone tell me why it does absolutely nothing? if (SERVER) then --the init.lua stuff goes in here AddCSLuaFile ("shared.lua");

7th July 2009
by Nevec Go to last post
3 463
QUESTION
 

Custom Scoreboard Structure (in gamemode)

In my gamemode I use sandbox as a base but I would like to make a new scoreboard in place of sandbox's. What is the file structure of a scoreboard in terms of files and folders so that I may create my own, and how would I disable the default scoreboard?...

7th July 2009
by Vamp Go to last post
0 651
QUESTION
 

Calculate day, month and year from os.time()

Hi everyone. How can I calculate the day, month and year from os.time() ? I know it returns the seconds, but I've tryied by 2 forms and I never got it. Thanks.

7th July 2009
by lilezek Go to last post
7 632
Repeat
 

NPC Swep control?

I need somebody to link me a list of commands for telling NPCs how to use a SWEP (Delay, ammo, reload+reloadtime etc.)

8th July 2009
by Entoros Go to last post
2 395
Help
 

Cannot create Custom Dark RP classes

Hi, so I try to make custom classes for the SVN Dark rp and I would show you with screen shots but, I dont know how.. Anyways, I join single player to test it, and it says Job: and then theres nothing there, none of the commands work like /mobboss...

8th July 2009
by Doritos_Man Go to last post
2 690
Help
 

Teacher? For me please?

Hi everyone! I am a 2 year atleast, Garrys Mod Player and I love the game. For me thats enough to start coding LUA so I can start my own server especially with all my experience with the games out there. I have friends that can code but so far they have...

8th July 2009
by Shankney Go to last post
1 267
Help
 

Getting Values from custom hammer entities?

How would I do so, is it using ent:GetVar()?

8th July 2009
by awatemonosan Go to last post
3 328
Help
 

entity 'AI' not working

Not sure if it is AI but anyway. I am making an entity that moves from checkpoint to checkpoint. If a player is near it will go to then, else if a creep it will go to them, else if a tower ect... all the way to base. If there is nothing near it it will...

8th July 2009
by Unrealomega Go to last post
1 494
Stupid
 

Chat Text

Can someone tell me why the hook isnt running when i say something? Msg("Running") function chatText( playerindex, playername, text, messagetype ) Msg(playername) Msg(text) if( playername == LocalPlayer():Nick() ) then Msg("You said:...

8th July 2009
by MakeR Go to last post
8 560
Help
 

ply:IsSuperadmin() nil value?? Help please.

So I need to check if a player is superadmin for something so to test it out i directly copied this code from the gmod wiki. However whenever i run the console command i get told ply:IsSuperadmin is a nil value by the lua errors in console? Whats...

8th July 2009
by MakeR Go to last post
3 588
Help
 

Script Problem

If you know anything about lua, you should know what I'm trying to do. I have it in autorun/server and it doesn't download it to the client. Help would be appreciated. Thanks! local ready = {} hook.Add("PlayerChat","War",function(ply,text,toall) ...

8th July 2009
by Entoros Go to last post
2 290
Help
 

KD ratio rounding fail

This question definitely belongs here, but for my scoreboard I have a KD ratio and I need it to round after .00 and not 1.0090880, etc. math.Round, rounds it to a int and that doesnt please me. Help please? Thank you.

8th July 2009
by Kalik 911 Go to last post
4 452
Request
 

Drive-By SENT

Hey guys. I'm sure this has probably been asked for before now, but i really want a decent (AND WORKING) drive-by chair for gmod 10! I found "seatshot" on gmod.org (http://www.garrysmod.org/downloads/?a=view&id=23168) but it's so buggy... It spazzes in...

8th July 2009
by Joofl Go to last post
0 486
Request
 

Lua Scripting for Garry's Mod 10

I have had the latest version of Garry's mod for about a year and I wanted to try out some E2 scripting or lua scripting. I havent scripted before but it looks hard. Is there any one with the E2 Cube that changes your colors? And would be willing to share...

8th July 2009
by M3RC_244 Go to last post
3 566
Help
 

Swep not firing silenced anims

Ok, I'm trying to make this swep permanently silenced, and its made some progress, but the deploy animations are bugged and the firing animations arent running at all. Here's my code, what do I have to do to run the animation correctly ? Please help me...

8th July 2009
by smallfry Go to last post
2 359
Help
 

Finding current weapon...

Somehow this code only gives a positive reaction if the current weaon isn't a SMG. function GM:HUDPaint() self.BaseClass:HUDPaint() local person = LocalPlayer() if !person:Alive() then return end

8th July 2009
by GoatR Go to last post
3 287
Stupid
8th July 2009
by elitestrider Go to last post
4 1,035
Request
 

Ready Vote System

I'm requesting assistance on creating something that calculates how many people are on the server and when 3/4 of the people type /ready, it changes plpldamage to 1. After it is set to 1, it resets the votes back to 0. When the "war (I'm currently...

8th July 2009
by jeff223 Go to last post
7 344
Lua scripting
 

Get Client Ip

How could i get the clients IP address...? It seems simple enough.. but lua dose not appear to have any way to do this?

8th July 2009
by Overv Go to last post
5 567
Request
 

persistent zombie

I was thinking it would be cool if the zombies you initialy had in gmod would break down doors if its in there way and they could detect enemy and know where they are on the level. about the door one if it is posible would it be doors initialy on the...

EMH
8th July 2009
by EMH Go to last post
0 199
Request
 

Could someone help me with my swep?

I did the lua file and everything, but the problem is that when I did weapon_zm_base, gmod says its from an non existent base. When I do weapon_cs_base, it wont appear in the list. What did I do wronge? P.S. Its a zombie master weapon. What is the...

8th July 2009
by Marine123 Go to last post
5 363
Shitpost
 

skin problem

Hi. I made SWEP, and hexed pistol model to it. I also added new skin direction to this model and renamed it like pistol model. That's how it looks: http://img403.imageshack.us/img403/49/swepprob.jpg what should I do to make skin looks normal. I...

9th July 2009
by kubos Go to last post
1 235
Request
 

Old noclip?

Because the new fucking sucks, you cant even pose correctly.

9th July 2009
by Lap Go to last post
21 857
Request
 

Dev Team looking for a Lua Coder

I USANoob (Delta) am in the process of puting togeather a DEV team for a new game mode and custom server menus, huds, map and more. For now we have a "test" server for the Dev team to test there stuff on and so forth. When some porgress is made we will...

9th July 2009
by awatemonosan Go to last post
5 529
Help
 

Problem with all .lua addons....

If you cant tell ima noob at gmod. Any addon that I have used that has anything to do with lua doesnt work! how do i use .lua addons? is it like any other addon? do i have to do something special for it to work? i'm asking this because i recently tried...

9th July 2009
by MegaJohnny Go to last post
1 315
Lua scripting
 

SWEP Model Changing

I'm making a SWEP as to answer one of the requests in the section (Zangetsu) but I am having trouble getting it to switch on a live basis. Basically I want to be able to change the view model of a swep and then it actually changes it on the screen, not...

9th July 2009
by Tracker Go to last post
0 454
Help
 

Method of driving a sent like a boat

I have been trying to make a sent drivable like a boat im new to sents this is my first one so i know that i should be using ENT:PhysicsSimulate and i have tryed so many codes and they all fail can anyone give me a bit of help function...

9th July 2009
by Im bring sexy back Go to last post
0 313
Help
 

GetTable()?

Is there a better and more efficeint way instead of using GetNWInt? I've heard there was one like SetTable( "name" ) and GetTable( "shfs", true ) If so, can someone give me a simple example an an explanation of this method?

9th July 2009
by Entoros Go to last post
2 410
Lua scripting
 

A "round" script

I'm making a fun minigame, but im struggeling with the game rounds. Anyone have a nice script to make everyone respawn and have their frags reset in a specified sequence?

9th July 2009
by GoatR Go to last post
0 326
Help
 

Creating a gamemode

I've made a game on Roblox (Roblox Lua is very simple, no special client & server stuff really(I think?)). It's a very simple and fun minigames place. http://www.roblox.com/Item.aspx?ID=102505 How would I make this into a gamemode for Garrysmod? I can...

9th July 2009
by Costest Go to last post
3 376
Lua scripting
 

SupermanV2 + Ragmod/Feign Death Script?

Superman V2 is a script that lets you fly around when you die. Ragmod/Feign Death are scripts that let you d turn into ragdoll with the press of a key or under certain circumstances, I have more experience with ragmod, it has more features, is maintained,...

9th July 2009
by pauld1217 Go to last post
2 667
Help
 

TOOL.BuildCPanel Question

Whilst working on an STool, I was researching the CPanel:AddControl stuff, and found this: http://code.garrysmod.com/?show=/garrysmod/gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua As I understand, the panel object in BuildCPanel now works as...

9th July 2009
by Hysteria100 Go to last post
4 365
QUESTION
 

Can 2 Reload Animations Be Used?

In a dod sweps pack im making, some of the v_models have multiple reload animations like the c96 mauser, the colt 45 and the tokarev with colt 45 animins. am i able to use both relaod animations , one while the pistol has some ammo and one when the pistol...

9th July 2009
by Siminov Go to last post
10 904