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,913
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,096
Lua

Traitoritem is missing

Hey there. I finished th work on a Traitoritem. I wanted to test it and put the File into the Servers addonfile. My Problem: The Script is missing in the Traitorshop. But the Console doesn't show up any issues. What did I wrong. It's my first Lua Script.

14 Minutes Ago
by Nak Go to last post
6 193
Help

Darkrp help

people can delete own cars in button c, how fix it.

1 Hour Ago
by BucikPRO Go to last post
2 114
Help

solved Help with HasGunLicense [DarkRP]

I have an error with HasGunLicense. What's the problem, I'm just a beginner in programming in Lua. Example if LocalPlayer():getDarkRPVar("HasGunLicense") then draw.SimpleText("text",TargetID,0,0,Color(255,255,255,255),0, 2) end

starw11 3 people are reading this thread x 3
2 Hours Ago
by starw11 Go to last post
9 110
Lua

ulx help

Could someone help me out with this custom ulx command ive been trying to make? It won't appear in my ulx menu after restarts so I assume I'm overlooking something important. I referenced the preexisting ulx commands but still no luck. Thanks for your...

2 Hours Ago
by rtm516 Go to last post
1 91
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...

2 Hours Ago
by YoutoYokodera Go to last post
111 3,381
Help

need help with my wine script

so im new to lua im making a wine mod and got this code from a user on facepunch i want to do so you have to add honey then water and alchol yes this how alchohol is spelled in my entitiy and then i get wine after timer budt i dont know what to write or...

cpl.cross 2 people are reading this thread x 2
7 Hours Ago
by ilovereno99 Go to last post
18 349
Politics

My role in the future of DarkRP ( 2 3 4 5 .. 8 9 10 11 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 1 people are reading this thread x 1 Winner x 28
7 Hours Ago
by FPtje Go to last post
404 13,907
Help

solved Weapon:GetSlot() returning 0?

Made a dandy little perma wep for PointShop... ITEM.Name = 'PERMA TEST' ITEM.Price = 0 ITEM.Model = 'models/weapons/w_pist_deagle.mdl' ITEM.WeaponClass = 'weapon_zm_revolver_perm' ITEM.SingleUse = false ITEM.AllowedUserGroups = { "owner" }

10 Hours Ago
by Windwhistle Go to last post
2 160
Beta

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

Happy new year! Highlights from the previous thread

11 Hours Ago
by Zeh Matt Go to last post
173 13,706
Help

solved Lerp

I'm trying to get my box to lerp smoothly when dismissing. This is very basic so I'm just trying to get lerp setup, then actually getting position setup. Anyway, lerp isn't working. Was wondering if someone could find what I'm doing wrong. (I've only...

12 Hours Ago
by Unknown Gamer Go to last post
6 141
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...

15 Hours Ago
by YoutoYokodera Go to last post
7 169
Help

Name too long. string.len not working.

So I want it that if a players name is too long then cut it off and add some 3 dots. Right now this is my current code: local function drawName() local DrawName = LocalPlayer():Nick() or "" draw.DrawText(DrawName, "NameFont", 85, ScrH() - 90,...

15 Hours Ago
by Derek_SM Go to last post
9 174
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...

16 Hours Ago
by [FSG] ToXiiC Go to last post
13 195
NSFW

NutScript - Doors and Vendors not saving?

I've been developing a lovely Nutscript server, and once I transferred from a local host to a dedicated host, things started getting complicated... I cannot be for sure, but after testing a lot of possibilities, I'm almost sure host is not letting...

16 Hours Ago
by orc Go to last post
1 143
Request

[Prop Hunt] Disable names and fix damage.

Hi, i'm currently playing Prop Hunt with some friends on my server, but i want to disable the names while aiming a prop. I've been looking for this a while now but i've founded nothing. I'm instructed, so you can throw codes at me with no problem. ...

Ropx 1 people are reading this thread x 1
17 Hours Ago
by Ropx Go to last post
0 107
Question

SWEP - How to have entity projectile report back hitgroup

If I have a SWEP that creates an entity as it's 'bullet' for want of a better word - how would I have this report back the HitGroup when it touches the player?

18 Hours Ago
by Semajnad Go to last post
3 87
Help

Need help with killicon!

Hi! The killicon doesn't appear on the screen, I have it installed the .vmt and .vtf in the right location. (the folder is called: choke_beta/weapons/forcechoke_beta so that shouldn't be a problem?) Any ideas? Code: if SERVER then // This is...

18 Hours Ago
by PIXX Go to last post
4 102
Help

ENT:OnTakeDamage does nothing?

Hello, humans. Here is my code: if redbase == nil then redbase = ents.Create ("prop_physics") end redbase:SetPos (Vector(-2070, -535, -465)) redbase:SetAngles (Angle(0, -90, 0)) redbase:SetModel ("models/props_interiors/VendingMachineSoda01a.mdl")...

20 Hours Ago
by MediCat Go to last post
4 98
Lua

Tryed using null entity error, even with isValid checks

Well, i'm having a really weird error over here. i'm trying to make a entity to use another entity ( like wire user for example ) the issue here is that it will always flag the entity as null. It doesnt matters which entity i use, since i've tryed doing...

20 Hours Ago
by locko1997 Go to last post
4 164
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...

20 Hours Ago
by MGFear Go to last post
9 246
Lua

util.BlastDamage: Props and Ragdolls

Hi. I script a Traitoritem. For now, with the script , A random player will explode. For this I used util.BlastDamage. Now I want to add Ragdolls (Corpses) and Props (Barrels etc.) to let them explode, too. Can I use for Ragdolls and Props...

21 Hours Ago
by Robotboy655 Go to last post
3 89
Help

Entity wont draw out of PVS

Hello facepunch, I have a problem im making an entity using a mesh and when the root of the entity is outside the PVS it hides the mesh. I have tried adding the entities position to the PVS but it isn't working. This isn't the full code the only bit...

21 Hours Ago
by rtm516 Go to last post
0 103
Lua

solved Bad Timers ?

Hey guys ! I have a pretty important question that could interest others. Do you know how i could find a bad timer ? Like a lua script or something ? Thanks ! :D Best regard,

21 Hours Ago
by JeanForet Go to last post
5 153
Lua

solved 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...

22 Hours Ago
by x8DAVE8x Go to last post
2 139
Lua

Giving players an entity script

There is a command in ULX that can be used to give an entity. !give {player} {entity} I tried to edit so that when the player types !{command} it will give the caller the entity but I am so inexperienced in this I really don't know what I am doing...and...

1 Day Ago
by RoggerDogger Go to last post
2 128
Help

solved Pointshop Question

I want to prevent the that team from using it when people are on a particular team. I've tried many ways but i cannot solve this problem. please help me Gamemodes are minigames and murder. # This is code ITEM.Name = 'undo' ITEM.Price = 20000...

1 Day Ago
by code_gs Go to last post
1 89
Help

server.cfg not working properly?

Each time I restart my server it ignores the server.cfg and sets "sbox_maxsents" and "sbox_maxvehicles" to 0. Tried looking it up but there is only 2 dead threads with no answers. Here is my server.cfg: sbox_maxsents 15 sbox_maxvehicles 5 ...

1 Day Ago
by code_gs Go to last post
1 117
Lua

Low gravity and ladders

I've yet to solve this issue and I've got no idea on how to do it. Whenever you have low gravity equipped in the pointshop and go on a ladder, low gravity stops working. This is the current code I've been using. ITEM.Name = 'Low Gravity' ITEM.Price...

1 Day Ago
by fappymcfap Go to last post
0 96
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

1 Day Ago
by YoutoYokodera Go to last post
8 310
Lua

solved Searched the entire Pointshop DOCUMENT, How do you ORGANISE what order your player models are in?

-I have read the entire Pointshop official document with all its commands functions hooks ect. ------------ QUESTION: ------------ How do you ORGANISE what order your player models are DISPLAYED IN? Example: Pointshop currently displays this...

1 Day Ago
by Windwhistle Go to last post
3 174
Help

Script will, out of nowhere, stop my server

So, I made this script with my blood, sweat, and tears. I think it's a very cool and neat addition to my TTT server. Unfortunately, the script will continuously crash/stop my server. What the script does is it respawns everyone on the server two times....

1 Day Ago
by Windwhistle Go to last post
0 129
Help

gui.OpenURL Help

Hello! I am having a little trouble with making HTML full screen in string context. for k,v in pairs(player.GetAll()) do v:SendLua(]) end I've tried adding v:Dock( FILL ) which doesn't work I want to make it so that the whole page is border...

1 Day Ago
by TLZ_Goz Go to last post
0 112
Help
1 Day Ago
by broden1234 Go to last post
1 107
Lua

TTT Unlimited Punchometer

I had a script I found from somewhere that created a list like so: local exempt "xgroup1", "xgroup2" in prop_spec.lua - but after updating my server files this one was lost. It worked really well and was easy to update and I was wondering if...

1 Day Ago
by Brendon Go to last post
1 97
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.

1 Day Ago
by Hamstie Go to last post
5 131
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 Day Ago
by thejjokerr Go to last post
3 126
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...

1 Day Ago
by MadParakeet Go to last post
5 275
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 Day Ago
by thejjokerr Go to last post
5 129
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 >...

1 Day Ago
by HenryK Go to last post
7 472
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: ...

2 Days Ago
by OwnedbyCube Go to last post
2 136
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

2 Days Ago
by StickmanJohn Go to last post
2 75
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))...

2 Days Ago
by papi Go to last post
1 110
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...

2 Days Ago
by mijyuoon Go to last post
16 373
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...

2 Days Ago
by jcl1234 Go to last post
1 91
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

2 Days Ago
by Windwhistle Go to last post
10 273
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...

2 Days Ago
by StickmanJohn Go to last post
4 144
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...

2 Days Ago
by Phyksar Go to last post
2 137
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(...

2 Days Ago
by MPan1 Go to last post
10 138
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 = { ...

2 Days Ago
by JoeyJohn Go to last post
0 86
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 ...

2 Days Ago
by Semajnad Go to last post
11 241
Help

Help with customcheck

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

2 Days Ago
by code_gs Go to last post
4 119
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!

2 Days Ago
by MeepDarknessM Go to last post
5 166
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...

2 Days Ago
by ShameOnYou Go to last post
1 94
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)...

2 Days Ago
by OutlawReaper Go to last post
0 127
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...

2 Days Ago
by PhantasmGhost Go to last post
14 401
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.

2 Days Ago
by OutlawReaper Go to last post
2 98
Lua

Murder gamemode footsteps

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

2 Days Ago
by doomolol Go to last post
15 378
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 ...

3 Days Ago
by moderatorondu Go to last post
4 199
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...

3 Days Ago
by xaviergmail Go to last post
503 59,447
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...

3 Days Ago
by [FSG] ToXiiC Go to last post
3 168
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...

3 Days Ago
by Bear1ySane Go to last post
0 82
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 ...

3 Days Ago
by YourStalker Go to last post
1 150
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?

3 Days Ago
by moderatorondu Go to last post
0 91
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...

3 Days Ago
by ShameOnYou Go to last post
17 242
Lua

solved Using SetNWInt() vs Networking the var yourself?

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

3 Days Ago
by _Chewgum Go to last post
1 195
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,

3 Days Ago
by pineappleplay Go to last post
5 193
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...

3 Days Ago
by Aloha Go to last post
8 159
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...

3 Days Ago
by code_gs Go to last post
9 158
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(...

3 Days Ago
by Apickx Go to last post
2 164
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 ??

3 Days Ago
by Unknown Gamer Go to last post
4 226
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...

3 Days Ago
by derpy54320 Go to last post
1 148
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")...

3 Days Ago
by jcl1234 Go to last post
6 142
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....

3 Days Ago
by [FSG] ToXiiC Go to last post
9 168
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

3 Days Ago
by code_gs Go to last post
5 157
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

3 Days Ago
by garryjunior Go to last post
8 178
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 ...

3 Days Ago
by Dezigl Go to last post
4 158
Lua
3 Days Ago
by Pink_Elephant Go to last post
0 119
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. ...

3 Days Ago
by code_gs Go to last post
3 121
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?

3 Days Ago
by Robotboy655 Go to last post
2 99
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.

3 Days Ago
by ZombiezPvP Go to last post
9 151