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

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 resources: https://scriptfodder.com/ Want to learn to code? https://facepunch.com/showthread.php?t=1541007

garry Winner x 39
3rd September 2014
by NiandraLades Go to last post
2 24,284
Lua

MODDING HELP - READ ME FIRST - LAST UPDATED 9 NOV 2016

This forum is for help with modding Garry's Mod. This does NOT include Mapping or Modelling. Please use the following forums for help with those topics: Mapping: http://facepunch.com/forums/40 Modelling: http://facepunch.com/forums/38 Your...

9th November 2016
by Robotboy655 Go to last post
0 5,364
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 464
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 1,044
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 497
Help

Can't Remove Green Crosshair.

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,691
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,997
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 810
Help

DarkRP chat commands

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 2,694
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 910
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 586
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,545
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,240
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,816
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 1,123
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 644
Help

Some Scripting error at dedicated server start up

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 624
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 489
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 840
Question

Emitting Streaming Sound

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

11th July 2009
by Skapocalypse Go to last post
8 1,091
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 613
Help

Limit AUX

For my Gamemode I'm creating, i was wondering if there's a function or command that i could use to limit sprint, or AUX. Power or w/e so that it could be semi-realistic? I need help because i'm fairly new to this stuff. Please Respond.

12th July 2009
by TheGreatVax Go to last post
1 611
Request

Kewl shitz

My graphics card runs Lua really good. Can someone make me an AK47 that shoots babies? 02:14AM Don't ban me for that. You told me to post it in here. 02:15AM Fuck it. Just delete this thread please.

12th July 2009
by TheGreatVax Go to last post
4 513
Question

Admins get certain player models

I was wondering how I would be able to make to so that when a player is an admin on my server, they use a custom "admin" player model?

12th July 2009
by Waffler Go to last post
13 2,927
Help

Making a custome sprite

Hello, i am currently trying to learn more about rendering sprites with lua. i want to create my own sprite to be used in a gamemode i am creating with a friend, as a test i have created a sort of slashing texture i want to render when i attack with a...

12th July 2009
by meka/sniper Go to last post
1 621
Help

Parentheses Help

Where do I need my parentheses here because this is not working: v:ChatPrint(math.Round(#players*0.75)-#ready "more votes required to begin the round.") and yes, #ready and #players exists, it all works except when I add the text.

12th July 2009
by MakeR Go to last post
2 508
Lua

Getting the screen pos of a vgui component.

Hi all. I want to do a OnMouseIn (and OnMouseOut) function, so I need where the mouse is, and where the vgui component is. The mouse is easy, just a function. The problem is to get the screen (or window if windowed mode) relative pos of vgui component. I...

12th July 2009
by lilezek Go to last post
5 769
Help

Download files

Could someone please explain how to use resource.AddFile and sv_downloadurl, I've used them before but I've forgot how to use them in a script.

12th July 2009
by hal2929 Go to last post
3 660
Help

Allowing entities to be 'used'.

I am trying to make various physics props have a menu appear on them when 'use' is pressed while looking at them. To this end, I have run 'entity:SetUseType(SIMPLE_USE)' on all of them. However, only some of them are usable, and they were usable before....

12th July 2009
by Yobdren Go to last post
4 785
Help

Particles

I need to make a gun fire particles. Could someone point me in the right direction, i havent worked with particles yet.

12th July 2009
by almost cool Go to last post
3 656
Help

My character is without a head...

I'm been trying to get my player in thirdperson for a while now, and i've finally accomplished it, without having cheats on (yay me), but he doesn't have a head, or arms... I'm guessing it's because he isn't supposed to be seen from this view or...

12th July 2009
by avwos Go to last post
0 484
Help

For loops failing: "in" expected near "do"

My player_extension.lua won't run properly and will return the error graverobber\gamemode\player_extension.lua:20: 'in' expected near 'do'. I'm not using a table to run the for loop, I just want to execute the code 'n' times. function meta:DropBones(...

12th July 2009
by MakeR Go to last post
3 1,551
Stupid

Scope for a swep?

Well I'm making a swep that needs a scope and I have no clue how to make it. Can someone help me?

12th July 2009
by avwos Go to last post
3 649
Stupid

How do i import the surface and draw libraries in lua

Ok, so my friend is making a scanner welder swep, and gets this error : weapons\scanner_welder\shared.lua:108: attempt to index global 'draw' (a nil value) I dont know a thing about what that means, i donk know lua. Just answer the question in the...

12th July 2009
by Yobdren Go to last post
19 1,274
Request

Combine Over Watch Hunter-Chopper (Attack Heli) Smart Npc.

Hey i was wondering if anyone could pull off an npc such as xystus's Apache helicopter npc that would follow you even if their were no Nodes on a map. It would also drop the bombs,shoot and be able to be killed and have the model of the Hunter Chopper....

12th July 2009
by awatemonosan Go to last post
1 789
Help

Timer.Simple Help

This seems to run the command immediately after it is "triggered", but I would like to have it run 5 secons after it's "triggered". What am I doing wrong. timer.Simple(5, game.ConsoleCommand("changelevel gm_flatgrass\n"))

12th July 2009
by Kogitsune Go to last post
1 570
Help

Help with list like panels.

Ok i'm working on a project code name project dorris. ATM i cant reveal what the project is about so i cant tell you really what i'm trying to make so ill ask a similar question that will return an answer i can make use of. Ok what im trying to do...

12th July 2009
by goluch Go to last post
4 661
Repeat

Gamemode not working when changing folder names.

Dunno what Garry did, but nor GM.Name or Gamemode.Name work as actual ways of changing my gamemode's name on a server, it always has the folder name. And whenever I change the folder name, the gamemode ceases to load. Help?

12th July 2009
by Kogitsune Go to last post
1 591
Question

player.IsWeapon( ) ???!!!??!!

I was looking through the wiki and stumbled across this hilarious piece of a function. Why would we ever need to know if a player is a weapon? Even the wiki says it allways returns false since a player cant be a weapon? Why? Who created this? What...

12th July 2009
by bromvlieg Go to last post
31 1,867
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...

12th July 2009
by nater Go to last post
4 841
Help

help ( 2 Last )

ok i been working on this help menu for darkrp just like the help menu for cop and and mobboss it works and stuff but im not sure where to add the command /x to be able to close the help menu and also the /help.... so all i need is some1 to tell me what...

12th July 2009
by CombineGuru Go to last post
46 2,272
Help

DCollapsibleCategory Problem...

Let's say I have a set of DCollapsibleCategories - does anyone know of a way of making only one of them be maximised at a time? My attempt is shown below, but it doesn't work. Basically, a way of causing clicking any of the categories to make them all...

12th July 2009
by Hysteria100 Go to last post
1 549
Request

more than one weld.

a script that allows for more than one weld between 2 props. currently, the maximum number is 1.

13th July 2009
by urbanmonkey Go to last post
4 518
Request

Atlantis Shield

Okay, I am building a Atlantis base but the normal shield is WAY too small, so could you guys make a atlantis shield that can 1: only burn out if it runs out of power 2: is way bigger the normal shield to fit big bases, and ships

13th July 2009
by Pi-Batt Go to last post
0 652
Help

DModelPanel failing randomly

God, second one today...? Anyway, I've got an issue on my server with people randomly getting vgui/DModelPanel.lua:69: bad argument #1 to 'ClientsideModel' (string expected, got nil) And some not getting it. I originally thought it was an addon,...

13th July 2009
by Big Bang Go to last post
0 621
Help

Can you make Vehicle SNPCs?

I'm wondering if it's possible to make a vehicle SNPCs so this one would drive around like an NPC. ( Think about the APCs from HL2's singleplayer ) Thanks.

13th July 2009
by awatemonosan Go to last post
2 625
Request

Advance Prop Spawner

hey i know the prop spawner was cool, but i think it would be much awesome if it can spawn props with entities on it, just like a guided missile, so i can push a button and it can spawn a guided missile, my apologies if i'm in the wrong forum section

13th July 2009
by DanielPinoy Go to last post
1 540
Lua

COD4 Javelin? ( 2 Last )

Is it possible to make that Javelin with that tracking system? http://youtube.com/watch?v=DC_zKBJhz4w And sorry for going off topic but how do I use the fly by wire and aaraam addon? Also I will try and port these cod4 models once I learn the art of...

13th July 2009
by ray243 Go to last post
68 6,246
Help

Alternates to Network Variables

I'm currently working on a few gamemodes one of which being a roleplay gamemode and was wondering if there were any alternative methods of storing data other than using network variables as they tend to slow down server performance. I've experimented with...

13th July 2009
by Lexic Go to last post
4 666
Request

Poke The Cop gamemode

OK im new to FP so if i did something wrong, tell me. Anyway i once played a game called Poke The Angry Ogre on Warcraft 3 and loved it! The idea of the game was to get points by poking the ogre and not get smashed. The ogers speed rose the more you...

13th July 2009
by Zombie Strider Go to last post
2 620
Question

sbox_max makes me worried :/

Hey Guys. I want a Sbox_Max Function in my Script, its a Swep I created: if (SERVER) then CreateConVar('sbox_max_popcans', 20) end and if !CheckLimit("popcans") then return end

13th July 2009
by m0nst3rkill3r Go to last post
14 1,942
Question

Custom Chatbox (Like in Darkland, perp, etc..)

Does anyone know how to make a custom chat box? I want one sort of like Darklands, with OOC, Local, PM's, and /me commands. I have no idea how to do this. Where could I get started? I could really use help, as I am trying to make a gamemode myself.

13th July 2009
by Limee Go to last post
12 2,033
Love

Scripted NPC (i don't know what they're called)

I need an NPC, that can give missions, trade and give general information, much like the barmen in STALKER. I'm new to LUA, and don't know where to start. ANY help would be much appresiated. Thanks in advance :)

13th July 2009
by avwos Go to last post
2 627
Stupid

My team menu is accessibly with a simple console command

I'm currently making a gamemode, and the team menu is an incredibly simple menu shown in the gameode tutorials on wiki. The team menu is available at any time by typing team_menu in the console. I either want to make the console unavailable (this...

13th July 2009
by Yobdren Go to last post
3 552
Question

Custom loading screen

http://code.garrysmod.com/?into=garrysmod/lua/menu/loading I see it's all lua. So couldn't we just design our own loading screens? Or is that code compiled with garrysmod? or in the GCF? Edit: So if we create a different file in one of their places,...

13th July 2009
by Yobdren Go to last post
18 4,508
Lua

P5 Glove interface.

Any one know of the P5 Glove? It's a VR glove that lets you do this- http://www.youtube.com/watch?v=Cj21S3cLPYk&feature=related And this- http://www.youtube.com/watch?v=288z9K60J3Y&feature=related Could some one make a hand swep that has an...

13th July 2009
by awatemonosan Go to last post
4 567
Help

player_extension.lua:65: attempt to index global 'server_settings'=nil.

Hey Guys. I get that lua error sandbox\gamemode\player_extension.lua:65: attempt to index global 'server_settings'a nil value I cannot find the part of my script who makes that error // The Concommands for Easily Settings local Can_Trail =...

13th July 2009
by m0nst3rkill3r Go to last post
5 1,695
Help

Gamemode help

I want to create a really simple gamemode but i need some basic information first. 1. How can I make a system that adds, say 5 seconds to a variable every 20 seconds? 2. How can I make a system that runs a console command when you press a button, and...

13th July 2009
by laptopman Go to last post
8 837
Lua

Sql error.

Hi everyone. sql.LastError() is retrieving me "column name is not unique". Which kind of error is this? How I should fix it?

13th July 2009
by lilezek Go to last post
3 763
Help

Dark rp problems with coding

Thank you for reading. Hopefully you can help me. I edit my addshipments lua. file ( the file is located in C:\Program Files\Steam\steamapps\User name\garrysmod\garrysmod\gamemodes\DarkRP\gamemode ) in Dark Rp to make shipments for a job called...

13th July 2009
by spazar Go to last post
2 767
Help

Cl_init.lua isn't loading

I keep getting this error when players join my multiplayer server. I get it to. There was a problem opening the gamemode file 'CakeScript/gamemode/cl_init.lua'

13th July 2009
by conor1123 Go to last post
8 1,129
Help

Open Nexus Doors (Cake)

Is there any file that i can put on my server so that CPs can open nexus doors? I reallly need this please help.

13th July 2009
by conor1123 Go to last post
1 469
Lua

Reseting the map

How would i make a script that resets the map? Making the weapons placed on the map respawn, togheter with the players and their stats? I've searched the Wiki but i can't seem to find anything... Anyone got any ideas? (Yes, I'm making a gamemode)....

13th July 2009
by GoatR Go to last post
10 766
Request

Could someone fix the Joystick mod?

It probably would be a lot of work since it needs to be updated to be compatible with Adv. Dupe and saving, and various prop protection systems. Link to the current version auto flagged for the .dll in it http://www.garrysmod.org/downloads/?a=view&id=72896

13th July 2009
by Airdoo Go to last post
0 439
Help

Running a function on the server via client?

If i have a server function, how do i get the client to run the function? In my example, i have the GUI set up on the clients side, then in the DButton.DoClick = function() part, what should i put? I tried putting RunConsoleCommand("os_checkuser") but...

14th July 2009
by Overv Go to last post
12 987
Help

Help with rendering sprites after certain distance away

I am trying to make a system when the player is X distance away from an entity it disapears and a sprite replaces it. this is what i have so far: function ENT:Think( ply ) self.Entity:SetNoDraw( true ) hook.Add( "HUDPaint", "paintsprites",...

14th July 2009
by Kogitsune Go to last post
4 680
Question

Is there a vehicle flat bed truck?

Is there? can someone give me a link?

14th July 2009
by funnymuffin Go to last post
0 636
Help

How would I get info on what a player spawns?

I need to know how to get prop name and player name when they spawn a prop. 02:47AM Noone? To help. This is what I want it to do. function SpawnedProp(ply, model, ent)

14th July 2009
by cloudwolf Go to last post
1 534
Help

gcombat help

hi i really don't use wire or gcombat and just installed wire i got the svn link for the gcombat where do i check it out? in the gmod/gmod folder or in the addons folder

14th July 2009
by kraizer793 Go to last post
2 995
Request

prop infator.

like the ragdoll infator.

14th July 2009
by Jvs Go to last post
3 591
Question

Dll equals ultimate performance?

So I've been making a computer in Gmod, another universal turing machine, first in low level wire, then in E2, and I thought "E2 is good, cause everyone has it. But if I want my reduced instruction set CPU to compete with Black Phoenix's ZCPU, I must make...

14th July 2009
by Turd92 Go to last post
7 1,433
Request

Throwable Manhack

Basically a weapon that you hold like a grenade. instead of a grenade, its a man hack. you use the grenade tossing animation, then a green lighted man hack flies out and follows you. it will attack anything you want by aiming and clicking. you can also...

14th July 2009
by lasersweps Go to last post
14 1,309
Request

Tool tracer hide

Please make this. I need it for making Machinima.

14th July 2009
by Robbis_1 Go to last post
1 483
Love

ALT - wtf?

I have problem with my SWEP. http://img217.imageshack.us/img217/49/swepprob.jpg I want to get rid of this "ALT 28". What shall I do? Help!

14th July 2009
by kubos Go to last post
4 722
Lua

RP gamemode question

This is my problem: SWEP.ViewModel = "models/Weapons/V_hands.mdl" SWEP.WorldModel = For the world model, what is the full name of when you just stand normally? (Poorly explained.. You know when your citizen has no weapons? I want that as a world...

14th July 2009
by Jamie932 Go to last post
7 782
Help

Checking a string for non-alphanumeric chars?

I have been trying to figure this out for way too long now, can somebody give me a tip? I have tried using the string.find with a list of alphanumeric chars, but i cant find a way to say 'if the string contains a char that is not in this list..' I...

14th July 2009
by GTom89 Go to last post
7 1,657
Help

Half The Derma Section Of Gmod wiki missing!

As titles says, why am I getting 404 errors for almost all the Derma controls on the wiki? Is anyone aware of this and if so will it be brought back up shortly as I need them at the moment. While Im here, does anyone know the control to add a line of...

14th July 2009
by conman420 Go to last post
9 1,317
Lua

2 questions in one thread.

Hi everyone. I need to ask 2 questions: ¿Is there anyway to override the status function on my server? Second question: ¿Is there anyway to limit the spin speed? I want to do a gamemode with realism, and I think nobody can turn 180º degress on a...

14th July 2009
by lilezek Go to last post
4 650
Help

GetNWBool

What's the difference between 'GetNWInt' and 'GetNWBool', and which one is the best to use? (User was banned for this post ("Wrong forum" - mahalis))

14th July 2009
by Averice Go to last post
1 561
Request

I dont know how to lua script but i need help

I have Dark Rp and can add jobs and stuff like that. I just want one thing that is if some one die i want him/her to turn back into a citizen again so that it would be like real life. Well i dont know how to do it and would really appreciate it if some...

14th July 2009
by Max.Powers Go to last post
5 583
Help

Problem with F1 menu?

I've been making an F1 menu for people that join the game and have no idea what to do, but When I press F1 to close it it pops up again. So I tried making it so that it has an 'x' button, and it does, but people don't really seem to see it and just click...

14th July 2009
by GTom89 Go to last post
6 840
Request
14th July 2009
by hellguy Go to last post
11 1,040