Title / Thread Starter Last Post ByReverse Sort Order Replies Views
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 1,866
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? http://facepunch.com/showthread.php?t=1250283

garry Winner x 38
3rd September 2014
by NiandraLades Go to last post
2 21,056
Politics

My role in the future of DarkRP ( 2 3 4 5 .. 7 8 9 10 Last )

The idea of how DarkRP is to be played has changed over the years. I very strongly disagree with the current set of rules, admin to player ratio and interventionist approach servers generally have nowadays. I have tried to influence this culture through...

FPtje Thread has images 9 people are reading this thread x 9 Winner x 28
18 Minutes Ago
by Arc Nova Go to last post
363 12,610
Lua

Attach models to a bone

I am trying to make my player have a model/prop located on his right upperarm. I have found 2 ways of doing this but It will give the model on every one on the server. If there is a way of using ply for just that one player(me) that uses the script.

Hamstie 2 people are reading this thread x 2
30 Minutes Ago
by Hamstie Go to last post
0 10
Beta

GMod - What are you working on? January 2017 (#65) ( 2 3 4 Last )

Happy new year! Highlights from the previous thread

57 Minutes Ago
by Tenrys Go to last post
156 11,686
Lua

How does the pp/rt works ?

hey i'm trying to make a camera and i need to render it in a derma, with Paint() if i do a render.renderview, the renderview isn't "parented" to the derma, i want a real material... i've seen pp/rt, some codes, but i can't fucking understand how...

1 Hour Ago
by thejjokerr Go to last post
3 80
Lua

Tyler Wearings ForMal Speech Script

After Studying Tyler Wearings Smash Hit Number One Best Selling Novel How To Speak ForMal Speech And Get Ahead In The ToDays Fast Paced World I Have MasTered The Art Of ForMal Speech And Have Seen How Ugly NorMal EngLish Is So I Have CreaTed This Script...

HeraMoney 1 people are reading this thread x 1
1 Hour Ago
by MadParakeet Go to last post
5 222
Lua

Chat Message with Color and Username

Itīs me again. How can I do a Chat Message with a different Color and with a Username ? Thatīs what I mean: If The Traitor do a Primary Attack, Everybody on the Server shall get a ChatMessage (In another Color than White) like that:...

1 Hour Ago
by thejjokerr Go to last post
5 68
Lua

Jailbreak vapes

Im trying to add vapes to my jailbreak server pointshop but they dont work. Basically there is one thing where the vape slot is 1 which is where fists are, anyway to change the vape slot? It is an addon so im not sure. also every weapon is based as...

x8DAVE8x 1 people are reading this thread x 1
1 Hour Ago
by x8DAVE8x Go to last post
0 19
Help

Cant add back wpn_select?

For some odd reason for my sound pack im working on to add old gmod sounds back I cant seem to add back the old wpn_select sound... I have the folder created it goes sound > hl2 > sound > common > wpn_select.wav, I also have tried hl2 > sound > common >...

HenryK 1 people are reading this thread x 1
1 Hour Ago
by HenryK Go to last post
7 128
Lua

Derma Window

I am not seeking for help but rather someone who could invest some of his time showing me how to make this derma window for my nutscript server: I have basic knowledge of lua by watching almost all of Code Blues tutorials but I want to make...

MGFear Thread has images 1 people are reading this thread x 1
1 Hour Ago
by MGFear Go to last post
5 101
Help
2 Hours Ago
by moderatorondu Go to last post
0 33
Help

SetMaterial Issue

Right now I'm trying to use a custom icon for a darkrp HUD, but I can't seem to get the directory right or somthing. I'm completely stumped, I've tried to change the directory to a bunch of things. Here is my code: This is a shortened version of the...

2 Hours Ago
by [FSG] ToXiiC Go to last post
0 28
Lua

RP Framework

Hello, I have a question.. What is the best framework for GMod out there. I have tested these: DarkRP: Full of Kids Cider/Applejack: Dead

3 Hours Ago
by gonzalolog Go to last post
3 149
Lua

solved Lua TTT - Traitor Item - Modding help

Hi there. I am scritping a Traitor weapon for the Garryīs Mod Gamemode TTT and I am "almost" finished. The function (Primary Attack) is missing. But I cannot find help in the GMod Wiki, so I want to try to find help in this forum. This is want I need: ...

4 Hours Ago
by OwnedbyCube Go to last post
2 111
Lua

solved Thirdperson world collide

havent really touched third person scripts before, got one working pretty nice, using lerp etc but i was just wondering how i could make the camera collide with the world so users couldnt see through the walls etc

4 Hours Ago
by StickmanJohn Go to last post
2 48
Help

solved Spawnicon update bodygroups

Hi, I am trying to update bodygroups of spawnicons, but it isn't getting updated. Please help, what am I doing wrong? Code I'm using below: helm=vgui.Create("SpawnIcon", invpanel) helm:SetPos(Sw(200),Sh(37.5)) helm:SetSize(Sw(100),Sh(100))...

6 Hours Ago
by papi Go to last post
1 89
Post Your

Problems That Don't Need Their Own Thread v5 ( 2 3 Last )

Welcome to Problems That Don't Need Their Own Thread v5! Have a small problem in your Lua code that keeps nagging you, but you feel like it's not worth making a thread for? Well then you've come to the right place! Reply to this thread with your...

8 Hours Ago
by mijyuoon Go to last post
82 2,662
Request

Developer

Here is what I've been working on lately. https://gyazo.com/c7c3f7be71fcb4a02eef25277b5d62c6 I got help from Orbitei to get rid of a bunch of useless code in LmaoLlamas basewars code. I was wondering if any developer was willing to help with any of...

8 Hours Ago
by mijyuoon Go to last post
16 320
Help

solved Need help making a CreateClientConvar Boolean

I'm trying to get a checkbox to turn something true or false, but I can't figure out what checking it does. When I set ischecked to true, it says that it was expecting a string, not a boolean, but checking a box linked to a string does nothing. Any...

9 Hours Ago
by jcl1234 Go to last post
1 65
Lua

(TTT) Script may be crashing server

Can anyone check this script over for me, see if anything looks funny. if SERVER then hook.Add("TTTEndRound", "PRDM", function() -- Initializing/default values PRDM winner vars prdmWinner = "" prdmWinnerKC = 0

13 Hours Ago
by Windwhistle Go to last post
10 252
Help

Spawning NextBot via Script, Help!

I've been trying to create a spawner using an entity and a ents.Create("nz_risen") function. Upon creating the entity, it gives me nav mesh error, even after when I do nav_generate and I am able to spawn in by spawn menu. I have no idea how to make a...

13 Hours Ago
by StickmanJohn Go to last post
4 124
Lua

solved Help with debugging lua errors in console

I'm doing some code refactoring in gamemode and I get too much lua errors when trying to debug it. Maybe it's not the right way to do this but for now I want to solve a problem with console lua errors. There are to many of them (as expected) and some of...

16 Hours Ago
by Phyksar Go to last post
2 117
Help

Player in distance help.

So I want my cam3D2D to only show up when a player in in the set distance. My current code is not working and I don't know why. Please help. Current Code: local ply = LocalPlayer() local DrawDistance = 250 local dist = ply:GetPos():Distance(...

17 Hours Ago
by MPan1 Go to last post
10 113
Help

Broken Job, need help fixing this up

Okay so to start, I do know why my job in question is broken, but I just dont know how I would fix it. Here is my job: TEAM_SS = DarkRP.createJob("Secret Service", { color = Color(100, 20, 20, 255), model = { ...

17 Hours Ago
by JoeyJohn Go to last post
0 62
Help

Variable Name in Timer Callback

Why can't I pass a variable name into a timer callback? local timer_name = "MyTimer" print(timer_name) -- exists timer.Create( timer_name, 1, 10, function( timer_name ) print(timer_name) -- doesn't exist - this prints nil ...

20 Hours Ago
by Semajnad Go to last post
11 217
Help

Help with customcheck

local vipRanks = { = true, = true, = true, = true, = true, = true, = true }

21 Hours Ago
by code_gs Go to last post
4 99
Help

[DarkRP] How can I remove this?

Hello, I'm owner of a DarkRP server, and I want to remove these things or do not see the names (for all the users) (red rectangles) I hope someone can help me, I would appreciate it very much Thx!

22 Hours Ago
by MeepDarknessM Go to last post
5 145
Help

solved Need help with this code!!

So i'm making an entity and when a medic uses it, he can set a value everything is working except this cl_init.lua function DermaNumSlider:OnValueChanged( value ) print(value) net.Start("price555") net.WriteUInt( value, 32...

23 Hours Ago
by ShameOnYou Go to last post
1 77
Help

Make entity fly like a missile

So I'm trying to make a missile but I can't get this code to work. I copied the code from the GMod thruster code. function ENT:Initialize() self:SetModel("models/props_phx/ww2bomb.mdl") self:PhysicsInit(SOLID_VPHYSICS)...

1 Day Ago
by OutlawReaper Go to last post
0 105
Lua

World model material crashes game

Im fixing some things on my CS:S MP5 airsoft but i have now ran into a problem. I added the w_model and w_model materials, hexed it, saved it and uploaded it for testing. Now whenever i click on the spawn icon the games crashes with no errors and a soon...

1 Day Ago
by PhantasmGhost Go to last post
14 378
Help

solved Make the top of an entity face player.

So as the title describes I need a way to make an entity change the angles so it has the top facing a player or vector. But I have absolutely no idea on how I would make this. So if someone could point me in the right direction that would be wonderful.

1 Day Ago
by OutlawReaper Go to last post
2 84
Lua

Murder gamemode footsteps

Hello, How do i disable footstep sound if you are crouching. or when we press ALT in murder gamemode.

1 Day Ago
by doomolol Go to last post
15 356
Help

help with this code please?

local function ToAdmins(ply, cmd, args) if not args then return false end local text = table.concat(args, " ") local send = {} if ply ~= game.GetWorld() then table.insert(send, ply) end for k,v in pairs(player.GetAll()) do ...

1 Day Ago
by moderatorondu Go to last post
4 180
Lua

NextBot Coding and Discussion Thread ( 2 3 4 5 .. 10 11 12 13 Last )

This thread will be for anything related to the new NextBot system, I'll keep the OP updated with useful information to help anyone who has questions or needs help. Update 160 added bindings to the nextbot system, which is what CSS, TF2 and L4D bots...

1 Day Ago
by xaviergmail Go to last post
503 59,242
Help

EntityDisplay Showing All the Time.

So right now with the code I have now I can see a EntityDisplay across the map. I want to make it so it only shows up when you close and looking directly at the entity. Here is my current code: function DrawName( ply ) if !ply:Alive() then...

1 Day Ago
by [FSG] ToXiiC Go to last post
3 152
Lua

DarkRP Categorys not working.

I have categories set up on my DarkRP server "like most people" But for some reason now everything's category won't work here is a example. There is 1 Lua problem! Please check your console for more information! A runtime error has occurred in...

1 Day Ago
by Bear1ySane Go to last post
0 66
Lua

Too many indices to buffer

Hi, I am getting this appear in my servers console on my TTT server, as this appears everyone crashes from the server with a dialog box saying that there is too many indices to buffer - https://gyazo.com/0e7044d7c027952091d8d3e0c7ec1921 ...

1 Day Ago
by YourStalker Go to last post
1 129
Help

help with darkrpmodifcation

How can i make a module for fadmin adminchat? should u just copy the fadmin adminchat cl and sv and then edit my stufF?

1 Day Ago
by moderatorondu Go to last post
0 73
Help

solved Need help with DNumSlider

Okay, so what i want is when a player uses an entity a numslider shows up and he can set a value from 1-50 now i know how to that but what i want is whatever this player chooses for example 23 to become a networkvar or whatever so i can do self:GetPrice...

1 Day Ago
by ShameOnYou Go to last post
17 226
Lua

Using SetNWInt() vs Networking the var yourself?

Which one is better, and why? (SetNWInt vs. Manually networking the var)

1 Day Ago
by _Chewgum Go to last post
1 174
Help

solved TTT Hud Disable

Im having a problem disabling the default TTT hud function ttt_draw() -- Just to make sure this is running draw.RoundedBox(0, 0,0, ScrW(), ScrH() / 2, Color(255,255,255,255) ) end local hide = { = true, = true,

1 Day Ago
by pineappleplay Go to last post
5 177
Help

solved attempt to call method 'GetEyeTrace' (a nil value)

So im getting this error on my server and its flooding my console. Im wondering how i could fix it here is my code: function GM.Property:PaintDoorText() local door = LocalPlayer():GetEyeTrace().Entity if not IsValid( door ) or not...

1 Day Ago
by Aloha Go to last post
8 143
Help

solved UTime Job timer with ranks

Hi, so I need help with setting up utime with jobs. Basically I want to set up my police job that has a requirement of 6 hours of play time. I want utime to track the amount of hours a user has, and will not let them join the police until they have 6...

1 Day Ago
by code_gs Go to last post
9 141
Lua

How to make all timer.Create into one simplify way

function SWEP:Reload() if ( self.Weapon:Clip1() == 30 ) then end self.Weapon:DefaultReload( ACT_VM_RELOAD ); timer.Create( "reload_bump1", 0.5, 1, function() self.Owner:ViewPunch( Angle( 2, 1, 1 ) ) end ) timer.Create(...

1 Day Ago
by Apickx Go to last post
2 147
Help

help with a admin chat

in darkrp if you type /// its a admin chat but how would i make this and also not allow non-staff to talk in admin chat? (rank) (name) message ??

1 Day Ago
by Unknown Gamer Go to last post
4 208
Lua

My game mode is crashing when I make NPCs run, help?

Hello, short introduction: I just signed up on these forums about 5 minutes ago and just started trying to script GMod about 2 days ago, so I'm a bit of a noob. I have been trying to make a custom game mode for me and my friend to play, and for the most...

1 Day Ago
by derpy54320 Go to last post
1 133
Help

solved Need help with Cam3d2d

So I made a tool that creates an entity at your Crosshair, but I can't create a Cam3D2D on the entity. Any help would be appreciated. function TOOL:LeftClick( trace ) ply = self:GetOwner() ent = ents.Create("base_gmodentity")...

1 Day Ago
by jcl1234 Go to last post
6 128
Help

EntityDisplay Health error

So I when trying to put health on my entity display panel it kept giving me errors. Error: lua/includes/extensions/math.lua:160: attempt to perform arithmetic on local 'num' (a table value) 1. Round - lua/includes/extensions/math.lua:160 2....

1 Day Ago
by [FSG] ToXiiC Go to last post
9 154
Lua

Freeze player in air.

Hello, i tried to freeze a player when i drag he with my physgun in the air and then i right click in the air (like the props) but that he can moove his head. Someone can help me please ? Thank's

1 Day Ago
by code_gs Go to last post
5 142
Lua

Error in my code, simple fix

Hello all, Can you help me with my code ? I have a error vector2x return 3 why the problem ? i know it's a simple fix but i can't fix

1 Day Ago
by garryjunior Go to last post
8 163
Help

Best way to give admin inside script

Can you give me advice about how to give any ulx permissions from entity's script safety? It little bit scares me to doing it throw console like this: function OnUse() RunConsoleCommand("ulx adduser ".. self:GetOwner():Nick() .." vip") end ...

1 Day Ago
by Dezigl Go to last post
4 137
Lua
1 Day Ago
by Pink_Elephant Go to last post
0 102
Help

Help with simple shit script i made? swep giving prop

Okay, so this is the first ever script i made. Its an prop that gives out a swep. I currently have it done, but i want to add that if the player has less than its price they get an error message and the function is abandoned. ...

1 Day Ago
by code_gs Go to last post
3 105
Lua

solved Custom spawn icon not working

For some reason i cant get my spawn icons working, i've followed this tutorial: https://facepunch.com/showthread.php?t=768724 but i just cant get it working it just shows as the default CSS spawn icons?

1 Day Ago
by Robotboy655 Go to last post
2 83
Help

solved How do you reset uTime?

Hello! So I've been trying to find out how to reset uTime however I've tried several things and all have ended up unsuccessful. I would appreciate if someone could please help me find out how to accomplish this action. Thank you.

1 Day Ago
by ZombiezPvP Go to last post
9 137
Help

Get an entity's owner

Hello! I've just started coding in lua and i have a few questions, first of all how do i get an entity's owner? I've tried some things with set and getOwner but then i just get a null error also how do i read the input in the Derma_StringRequest...

1 Day Ago
by ShameOnYou Go to last post
5 114
Lua

Wearing a hat/model how?

I really wanna wear a model on my head. So i saw this little thread. Where they said that you can't use parent, is that true? (Wondering because of this thread) And if that is true, what so? Basically, I just wanna know, what would you guys say is...

1 Day Ago
by Melonos Go to last post
2 118
Stupid

solved GMOD Sql question

Using this tutorial (https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexdef9.html) I've managed to get a stat save/load setup working. My question now is, where can I view the saved stats? I have MySQL, but I can't find where gmod actually...

1 Day Ago
by rtm516 Go to last post
5 247
Lua

solved Removing bulletholes/ impact particles from specific weapon?

Is it in anyway possible to remove the particel effect and bulletholes when you shoot on any surface when using a specific weapon. I have seen sweps with driffrente impact particel effects so i thought that i might be something that can be done?

1 Day Ago
by Plaster422 Go to last post
4 174
Link

help where the fuck is gmad extractor

its gone now lmao i'm wondering if anyone has a download link they can send me of GMad extractor ty ty

ofeo 1 people are reading this thread x 1
1 Day Ago
by -NCBA- Go to last post
5 725
Lua

Cider Debugging

Hey, I have tried to fix the original Cider gamemode a couple of times. It never worked. If someone could help me out here, very much appriciated.

1 Day Ago
by s4sek Go to last post
4 246
Lua

HUD Health Bar Issue

So Ive recently been working on my first HUD, and its pretty much complete except for the health bar. Its working fine until you go past 100 hp where the bar will just keep expanding right across the screen. Please help

2 Days Ago
by HassanCohmdan Go to last post
15 306
Help

Applejack/Cider server help request

I have followed the available instructions for setting up an applejack server, this post is not about the jump to rejoin problem. ---Main Issue ---Money and inventory reset on rejoin. I have libmysql in the same folder as srcds. I have...

2 Days Ago
by HassanCohmdan Go to last post
11 240
Help

!IsValidGamemode Issue

My friend gave me a santosrp gamemode file about a month back, He borght it as far as I am aware, But his server wasnt successful and I told him I was buying one soon. I have now borght a server and tryed to install the gamemode. I set the gamemode to it...

2 Days Ago
by HassanCohmdan Go to last post
4 96
Lua

ScriptFodder - The Garry's Mod Marketplace ( 2 3 4 5 .. 83 84 85 86 Last )

ScriptFodder - The Garry's Mod Marketplace ScriptFodder is tailored towards two types of people, if you're a Garry's Mod server owner, ScriptFodder can offer a variety of premium content for your server, or if you're looking for something a little more...

Handsome Matt Thread has images 1 people are reading this thread x 1 Dumb x 30
2 Days Ago
by Handsome Matt Go to last post
3,402 5,694,118
Help

solved Deformation on viewmodel after compile

When I compile the viewmodel with Crowbar, the arms get deform. If I compile arms and weapon with two QC's they look fine. Need help to find the problem. Here is a picture of what happends. https://postimg.org/image/h9gezocpj/ Here is QC:

2 Days Ago
by TheRavn Go to last post
0 145
Shitpost

solved Different drawing behaviour when looking at entity.

I would have been somewhat satisfied with this code: function ENT:Draw() local Pos = self:GetPos() local Ang = self:GetAngles() local rotAng = Angle(Ang) self.rotationOffset = (self.rotationOffset + self.rotationSpeed *...

2 Days Ago
by FPtje Go to last post
4 154
Lua

ULX

I am having issues with my ULX. I have the newest version from the Steam workshop and everything. When using commands it doesn't check for if the player is dead, frozen, or in a vehicle. A good example of this is the ignite command. It clearly has the...

2 Days Ago
by RoggerDogger Go to last post
15 450
Help

How do you rotate DrawSphere?

Simply put, there is no function to set the angle of the sphere you are drawing, so how do you rotate it?

2 Days Ago
by RileyGuy1000 Go to last post
3 222
Post Your

Useful Code Snippets ( 2 3 4 Last )

I've got quite a few pieces of code which I've figured out and would've been very helpful to me like 2 months ago, so I made a place for people to post snippets of code for others to learn from. Whether it be like an undocumented or poorly documented wiki...

Exho Thread has images Lua Helper x 21
2 Days Ago
by MGFear Go to last post
158 16,551
Lua

Third person only

Is it possible to make a murder gamemode thirdperson only for Bystanders .

2 Days Ago
by doomolol Go to last post
2 192
Help

solved Help w/ CPanels

So I'm making an stool that displays 3d text with cam3d2d, but I can't figure out how to store text from a cpanel textbox. I assumed that the text entered would be put in "Command", but when I print the variable it comes out as nil. I...

2 Days Ago
by jcl1234 Go to last post
3 224
Help

Way to Spawn in NextBot Zombies with ents.Create (Gmod)

Whenever I use then it gives me nav mesh error, even after when I do nav_generate and I am able to spawn in by spawn menu. I have no idea how to make a spawner. Please Help Here the entire Code Blessings,

2 Days Ago
by BrianMJK Go to last post
0 109
Question

solved RP Framework

So, me and a buddy had an idea for an RP gamemode, nothing really like darkrp but we can easily turn it into that with a ton of modules, so my question is should i use darkrp as a framework or develop my own? the main reason i want to use darkrp is...

2 Days Ago
by StickmanJohn Go to last post
20 411
Question

Disabling Player gravity in a brush volume

I'm trying to make a brush entity which disables gravity for all objects that come into it. I've been using physobj:IsGravityEnabled() for physics objects, but players and ragdolls are unaffected by it. So, I decided to try and make a special case for...

2 Days Ago
by pacguy64 Go to last post
2 132
Help

agenda hud help

Hello, I am working on an agenda hud and I was wondering how I would have the draw.simpletext() func start on a new line once it were to hit a certain length. I was thinking an if statement with surface.gettextsize(), I played around with it a bit but I...

2 Days Ago
by Potatofactory Go to last post
1 104
Help

solved Disable /drop

Hey, so simple question here. I want users not be able to use /drop for anything. I want this command completely removed. The reason for this is I have an inventory system installed that handles dropping items in its own way, so having the /drop command...

2 Days Ago
by JoeyJohn Go to last post
7 320
Help

(Gmod loading screen) function SetFilesNeeded not called when first joining.

Hello, I'm currently working on a custom loading screen but the function: function SetFilesNeeded does not seem to get called when you first lounch your gmod and join the server. It does work when you then join a second time. This for instance,...

2 Days Ago
by CabbageHunter Go to last post
3 275
Lua

solved Jailbreak vapes and 5th weapon slot

So basically I am trying to add vapes to my jailbreak server pointshop but they don't work. Also I added a 5th weapon slot for the vapes to go into but i get this error: lua/includes/util.lua:217: attempt to perform arithmetic on local 'from' (a nil...

2 Days Ago
by x8DAVE8x Go to last post
6 164
Lua

Crash Client on disconnect

Hello all, Why this code make my players crash when it click on disconnect or retry ? Context : When i connect to my server and look at the emitter no problem, i play etc ... but when i click disconnect button later or i type retry command on the...

2 Days Ago
by killerrichard Go to last post
4 211
Help

Help with walking

So i'm making server for gmod and i can't make script. So basically what i want is when the player has "models/player/police.mdl" this model when he walks he will make this 3 sound effects randomly: npc/metropolice/gear1.wav npc/metropolice/gear2.wav...

3 Days Ago
by iJohnny Go to last post
1 136