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 9,378
Link
 
Winner x 35

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 these websites. http://coderflow.co.uk/ https://scriptfodder.com/

3rd September 2014
by NiandraLades Go to last post
2 9,573
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 638
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 607
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,113
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 640
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 777
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 512
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 896
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 395
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 435
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 664
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 698
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 930
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 396
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 558
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 695
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 712
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 468
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 429
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 453
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 752
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 312
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 482
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 359
Request
 

Old noclip?

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

9th July 2009
by Lap Go to last post
21 984
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 651
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 401
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 594
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 415
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 553
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 456
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 485
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 839
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 636
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,211
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 403
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 921
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 352
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 565
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,524
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 526
Help
 

Canceling a timer

Is there a way to cancel a timer once it has been created? I have a timer set on a Ply.KeyDown, and I want it to cancel on my Ply.KeyUp Also as a side note, are you able to set a +(func) button as a keydown/up, eg. +use, or +walk

10th July 2009
by Mandalore777 Go to last post
7 575
Request
 

A stash system for hunting.

This would be good for an half-life 2 map in gmod. Disable noclip and you're on your way. This is my layout that I did in an old game. lmd_stashzone ***(L) A zone to define an area for stashes. Also controls how many stashes can be spawned per...

10th July 2009
by Unreliable Go to last post
0 362
Request
 

Module to supress engine erorrs.

PLEASE can someone make a module to suppress those fucking red engine errors! It's REALLY annoying to go into developer mode to work on something using the overlays and without having to keep hitting ` and then you get flooded with a fuckton of pointless...

10th July 2009
by Lexic Go to last post
0 375
Help
 

unresolved external symbol

When I try to compile a GMod module I get (only) this error. error LNK2001: unresolved external symbol "void * (__cdecl*__cdecl Sys_GetFactory(char const *))(char const *,int *)" (?Sys_GetFactory@@YAP6APAXPBDPAH@Z0@Z) Any ideas why? Thanks.

10th July 2009
by Skondra Go to last post
8 970
Lua scripting
 

Derma problem.

includes\util.lua:127: attempt to index local 'self' (a number value) And the script: local PANEL = {} AccessorFunc( PANEL, "RectColor", "RectColor" ) AccessorFunc( PANEL, "BoxColor", "BoxColor" ) AccessorFunc( PANEL,...

10th July 2009
by conman420 Go to last post
2 619
Help
 

Sweps Dissaper After Editing

Whenever I make or edit a Swep, it no longer shows up in game, the latest was when I added a function Swep:Think, It no longer shows up in game and I can't get it in console, the same thing happens if I make one using Swep Makers, even if I put them in...

10th July 2009
by cercerd Go to last post
2 457
Help
 

Where are gmod's chair / vehicle lua files

My banned friend wants me to ask dumb questions for him. Answer this one

10th July 2009
by Lexic Go to last post
2 1,414
Release
10th July 2009
by Exo |POW| Go to last post
4 949
Lua scripting
 

String library extensions This thread has images

I've recently been working on several small and large projects that were using a lot of operations with strings. Somewhere in the middle I found that I was using the same code over and over again, and that the standard functions supplied with lua and the...

10th July 2009
by ChewGum Go to last post
2 901
Help
 

Scripted NPCs Dying

i'm trying to make a scripted NPC and when it dies it should turn into a ragdoll and fall to the ground i pulled this from the wiki function ENT:OnTakeDamage(dmg) self:SetHealth(self:Health() - dmg:GetDamage()) if self:Health() <= 0 then //run...

10th July 2009
by enjia2000 Go to last post
0 378
Help
 

Interacting with html panel contents

It's me... again :) I have html panel with some things which controlled via javascript, is there any way to interact with it's contents? I tried openurl with something like javascript:blablabla but it doesn't work.

10th July 2009
by Megalan Go to last post
2 509
Help
 

Problem with saving derma cords

Hello i am making a basic game mode with a friend. What i am currently tying to do is save the coordinates of a derma frame on the client. this is what i have so far. function save() file.Write("Basemod/saves/data.txt", frame:GetPos()) end ...

10th July 2009
by meka/sniper Go to last post
2 394
Help
 

Qmenu again

Anyone care to help me, I am making a gamemode but I want the normal qmenu only I want to insert only models that I specify and Tools I specify. The gamemode is derived from base I read some stuff and found this : concommand.Add( "+menu",...

10th July 2009
by quincy18 Go to last post
2 647
Lua scripting
 

Effects list

Anyone got a nice list of all the effects to use in our LUA coding? Like ""HelicopterMegaBomb"" and so on. (Ps. if anyone know a nice smoke effect, please post it)

10th July 2009
by Yobdren Go to last post
5 1,569
QUESTION
 

breakable doors?

like L4d. but not from l4d. is it possible?

10th July 2009
by kevkev Go to last post
4 644
Request
 

[REQ] Particle Maker v2.x update?

There's this awesome Tool called the Particle Maker, it's current probable final version is v2.0. But there are some annoying bugs in it, can somebody fix it please? or can the real developer of that addon please fix it? I got screwed up after the...

10th July 2009
by Shadow909 Go to last post
0 320
QUESTION
 

Lua and Dll

I was wondering, how hard/time consuming would it be to link two separate servers so that people may join and have their items on one server, and on the other server.

10th July 2009
by Noobulater Go to last post
2 488
Help
 

Slow Walk speed/run speed and Realistic Falling Damage.

Alright, I've recently compiled a lot of mods for Garry's mod that I've collect over about the past year. I've found my favorite ones and blah blah blah. What i did though is 7-Zip'd them all into one folder, all 6.52 GB's then installed them all into...

10th July 2009
by X e r o Go to last post
4 2,824
Request
 

[REQ] HL2 Ep1 The Core as AR2's Charged Bolt in MP This thread has images

Wow, I don't know how I came up with it but... Could someone mod the AR2 to make it shoot out the Core (Dematerializing Sphere) from Episode one, as the right mouse click weapon fire feature. And don't let it fly exactly just like the original AR2 bolt...

10th July 2009
by Shadow909 Go to last post
0 651
QUESTION
 

MY code won't work, but it's much shorter...

(i AM attempting to make a SWEP) If you could just tel me of it's missing something, that's be great. if you actually FIX it, i will be happy beyond belief, and i guess I'll give you credits in the information and stuff... 10:12PM if (...

10th July 2009
by Marine123 Go to last post
38 1,492
Lua scripting
 

Rewind Tool

can some one make a tool based off of the rewinding time from the time grenade?

10th July 2009
by jadestone Go to last post
0 391
Request
 

Stone Gargoyle Swep

Using the fast Zombie Swep, add these peramiters. Make the Fast Zombie 2x as weak as the Classic Zombie, and just as slow. Primary: Zombie kneels down, puts its head down, and covers itself with it's arms (use scripted animations from other npcs)....

11th July 2009
by Obi-Trev Go to last post
0 281
QUESTION
 

Where to learn to make npc seller by using lua?

Is there anywhere that I can find a tutorial about making npc seller? Like, a players able buy something from npc seller, I saw some of them on some server, so I thought I would make myself for my server. Thank you if your helping, and if you saying...

11th July 2009
by Unrealomega Go to last post
3 852
QUESTION
 

Dynamic DOF

Is there somone that already made or someone that can make a dynamic Depth of Field so that what ever you are looking at with your crosshair is focused but everything else is blurred within a tolerance (10ft + or - what you are looking at is un blurred or...

11th July 2009
by Xenos Go to last post
0 330
Help
 

Can't Remove Green Crosshair. This thread has images

Okay, so I made a Swep from a Desert eagle skin and I can't figure out how to remove the original crosshair.

11th July 2009
by Averice Go to last post
8 1,376
Request
 

Smashball Grapple Hook

Would it be possible to make a grapple hook that works exactly or close to exactly like the grapple hook in the mod Smashball? The grapple hook in that mod is excellent, and putting it into Gmod would be awesome.

11th July 2009
by awatemonosan Go to last post
8 1,343
Request
 

Swep Pack

I'm making a Swep Pack from CSS skins right now and I'm up to 6. I want your requests. Rules : No shitty skins that just change the color of the weapon. No Shotguns. (They are annoying to code.) I'm going to release the pack when I get up to 30...

11th July 2009
by mescool15 Go to last post
5 605
Help
 

DarkRP chat commands This thread has images

Hey, tell me if this is wrong section, I wanted to know. Anyways if someone could help me make/edit chat commands for Darkrp, I was trying to make a /me that would be locally displayed around the player like ** Joe throws an apple and a /event like,...

11th July 2009
by Jamie932 Go to last post
5 1,638
QUESTION
 

Steam Avatar texture

Is there anyway to get the texture of someone's avatar without having to use the AvatarImage vui element?

11th July 2009
by SteveUK Go to last post
4 684
Help
 

Draw or Surface?

Hi, I am trying to create a custom hud. On the Wiki i found these classes: Draw and Surface So my question is, what class should i use for creating my hud and what is the best way of creating it?

11th July 2009
by w00ty Go to last post
4 465
Help
 

GM:ShowHelp Customization

Hello, I am trying to customize the F1 menu. I created my own index.html, and made it into a website. I have 4 html files I was to use, and all controlled by a CSS that switches between them. How can I do that server side? So when a client presses F1,...

11th July 2009
by Odahilys Go to last post
9 1,128
Help
 

/ready Lua Help

I have had help creating something that where people type /ready they're basically voting that they're ready to start the round and when 3/4ths of the server type /ready, it will turn on player damage, etc... I have it how I'd like it, but it's not really...

11th July 2009
by Entoros Go to last post
22 1,023
Help
 

Offer for Scripters

I need someone that knows Lua and Garrysmod very well and will do work for me (Im not planning on doing something super serious, I just want you to edit and add somethings). The catch is I can't pay you but I can offer you admin on the server *shrugs*...

11th July 2009
by Apophis 1 Go to last post
39 1,365
QUESTION
 

How to stream MP3.

What is the most effective method to stream MP3 files in game?

11th July 2009
by maurits150 Go to last post
9 943
Help
 

Usable NPC

Hey guys, Needing help with a use-able NPC that'll bring up a derma on use. Any ideas where I should start? :D

11th July 2009
by MattGunter Go to last post
2 496
Help
 

Some Scripting error at dedicated server start up This thread has images

Someone know what this error means and how can i reapair thanks :D! z_lib and ZeikJT file not found

11th July 2009
by kevkev Go to last post
1 479
Help
 

Custom Effects

I'm having a hard time making my own effects. The wiki doesn't have much info on them...so, where do I start?

11th July 2009
by braxus Go to last post
0 363
Help
 

Help parenting volumetric light to light?

I'd like to have it so that when you spawn the industrial lamp, one of the volumetric light objects (64x128) will spawn with it, and move with it, this all works but the industrial lamp does not spawn where I'd like it to. The problem is the industrial...

11th July 2009
by nater Go to last post
0 563
QUESTION
 

Emitting Streaming Sound

Is it possible to Emit Streaming Sounds/music? Using lua?

11th July 2009
by Skapocalypse Go to last post
8 803
Help
 

SWEP not in correct category.

My SWEP is basically functional, except that its not apearing in the correct category. My other SWEP doesn't appear at all. I know the category is fine because a 3rd SWEP DOES appear.

12th July 2009
by mescool15 Go to last post
1 400