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 7,697
Link
 
Winner x 30

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,440
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 574
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 545
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 1,026
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 593
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 738
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 484
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 846
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 354
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 413
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 621
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 651
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 869
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 369
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 537
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 652
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 679
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 446
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 413
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 434
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 721
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 285
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 459
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 332
Request
 

Old noclip?

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

9th July 2009
by Lap Go to last post
21 960
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 631
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 379
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 559
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 396
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 514
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 433
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 456
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 791
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 570
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 1,149
Request
 

Easy Weapon Start Tool?

Could someone make a lua so you only start with a select few weapons. Another nice feature would be to change that in the settings tab. Because Ive been using a lua (http://www.fpsbanana.com/threads/134561) that takes all weapons away then i have a...

9th July 2009
by pauld1217 Go to last post
2 382
Lua scripting
 

Simple script that disables thruster sounds when players join

Tired of noobs filling your server with thruster sounds? I am at least, so i decided to try making a lua script to disable the sounds. This script disables sounds for both normal and wire thrusters. Put the code in the lua/autorun folder Here is the...

9th July 2009
by TehBigA Go to last post
6 896
Lua scripting
 

HELP! Crap sweps, need helpz!

Help! my sweps are all crap. Ive been messing around with a lua gun for 2 weeks now and i cant figure out a couple things: How to get css based sweps working, Making my own sweps model and the differnt things i can do with the swep. please help! i could...

10th July 2009
by Blobman21 Go to last post
1 332
Request
 

more powerfull thrusters?

I was wondering if anyone knows how to make my thrusters more powerful, or if anyone has already coded something like this? I set the force to 99999999999 but I think it limits it at some point so I can't get the kind of 'from one side of gm_flatgrass to...

10th July 2009
by TehBigA Go to last post
6 549
Lua scripting
 

Mirrors in Gmod is it possible? This thread has images

Is it possible to code a mirror in gmod?

10th July 2009
by Skapocalypse Go to last post
16 4,219
Request
 

Ammo supply crates

I've been wanting to get an Ammo supply crate like the ones from the Half Life 2 campaign... I always liked the green crates/trunks full of ammo. I couldn't find what I'm looking for, but I could have been wrong on how I worded my searches. I was...

10th July 2009
by Entoros Go to last post
1 474