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 4,204
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 39
3rd September 2014
by NiandraLades Go to last post
2 23,283
Help

bought weapons go into weapon slot?

im wondering how can i make a bought weapon not spawn on the floor but spawn into player weapon slot?

55 Minutes Ago
by streetkilln Go to last post
9 168
Lua
1 Hour Ago
by Flamingsword Go to last post
3,610 13,802,624
Post Your

Problems That Don't Need Their Own Thread v5 ( 2 3 4 5 .. 26 27 28 29 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...

4 Hours Ago
by Derek_SM Go to last post
1,133 40,737
Lua

Half Life 2 Hold Types

I am making a Half Life 2 Dark RP server and would like to use the Half Life 2 hold types. They looked like this: I asked this question before a while ago, but now the links are broken. Thank you in advance. There is an addon that I want...

4 Hours Ago
by Von Steiner Go to last post
12 300
Photos

GMod - What are you working on? April 2017 (#68) ( 2 3 4 5 6 7 Last )

Highlights from the previous thread

5 Hours Ago
by NootNootEh Go to last post
250 19,155
Question

Good UI Libraries?

Does anybody know of/willing to share a good looking UI library? Thanks in advance.

6 Hours Ago
by Apickx Go to last post
10 273
Help

solved Help with logic

Hello! So im drawing blanks on how i can make this work... Let me explain what im trying to do.. I have 2 teams.. I need a way to have set a player to a random team EVERY time BUT keep the teams even.. Heres my code for k, v in...

7 Hours Ago
by XxLMM13xXx Go to last post
5 256
Question

Addon like this.

Hello. I'm looking for an addon like this: https://www.gmodstore.com/scripts/view/1048/permanent-remover, I would buy this but I can't for obvious reasons. I looked on the workshop and could not find an addon similar. And personally, I don't want to...

8 Hours Ago
by Fruitwesp Go to last post
4 175
Garry

Next Update v7 - April 2017 ( 2 3 4 5 Last )

http://cdn.akamai.steamstatic.com/steam/apps/4000/header.jpg?t=1421333577 Changelog Main repository Pull requests Latest update is out: http://www.garrysmod.com/2017/04/17/april-2017-update/

Willox Thread has images 1 people are reading this thread x 1 Winner x 20
9 Hours Ago
by NootNootEh Go to last post
166 11,429
Question

Check Server Tick Rate

Is there a way to check the tick rate of the server? What I mean by this is if say the default tick rate is 66 and something is causing it to lag and drop to say, 2 for an extended period of time? Could I compare CurTime and Tick? Just need some advice on...

TheVac Thread has images 1 people are reading this thread x 1
11 Hours Ago
by TheVac Go to last post
11 227
Help

How to add Grappling Hook (hats hook) to Pointshop?

How to correctly add hats hook to Pointshop? (https://www.gmodstore.com/scripts/view/26/hats-hook) Also I would like to know how to make it so that it was in slot 7 and at the same time did not take up space for a traitor's weapon and did not fall at...

inikonik 1 people are reading this thread x 1
12 Hours Ago
by inikonik Go to last post
0 48
Help

ItemStore

Hello, how to create armor, weapon for inventory "ItemStore?" My Prifole (add pls) - http://steamcommunity.com/id/kr4mpus/

15 Hours Ago
by victi Go to last post
1 77
Help

solved Addon doesn't initialize on some clients?

Hello there. I've recently published an addon (http://steamcommunity.com/sharedfiles/filedetails/?id=906581550) and it doesn't work for some clients. After a little research I found out, that addonname/lua/autorun/autorun.lua doesn't run at all (for some...

MediCat 1 people are reading this thread x 1
15 Hours Ago
by MediCat Go to last post
9 162
Help

DarkRP/StarwarsRP Name Tags/ Name above head

So I'm trying to get our starwarsRP built and, were almost done but yet there is still this one promblem that keeps persisting to happen, I cant get the player info above the players, I checked the settings in darkrpmodification and modules hud...

16 Hours Ago
by awolDocBrown Go to last post
3 90
Question

solved Lerping A HUD Health Bar?

Hey everyone. After having worked with Glua for quite a while now, I've only recently gone in to making proper HUDs. Therefore, I was wondering how one would go about lerping the health bar? - as seen on many HUDs. I've tried a bunch of different...

21 Hours Ago
by Fillipuster Go to last post
4 85
Question

How to set a skin to a job?

Hello, I want to know how I can let a job spawn with the right skin. The playermodel got 2 skins, I want the job spawn with the second skin, but I dont know how.

21 Hours Ago
by bloodmasked Go to last post
4 193
Help

how to change weapon selection hud?

im looking for examples of addons that change it so i can edit and make my own... i can only find the gta type one which i do not want

1 Day Ago
by bloodmasked Go to last post
2 65
Help

Map is not a valid BSP, Cant load non sandbox map on RP Server

So I changed the map on my RP server for an event, and the server crashed. Then, the server crashed. So, I tried to reboot the server 2 hours later, and it wouldn't load any of my RP maps. I have them in the maps folder. I am running my server off a...

1 Day Ago
by bloodmasked Go to last post
5 170
Help

How to calculate others player screens to position something?

How to calculate others player screens to position something? Is there like an easy way to do it and not a very complicated way? People told me that I have to use ScrW() and ScrH() to devide or multiply it trough something but I am not actually...

1 Day Ago
by bloodmasked Go to last post
14 306
Help

ULX Custom command for DarkRP

I am looking for a guy that can make custom ULX commands for DarkRP. What the ULX command would do is: Changing a players job to models/player/combine_super_soldier.mdl (Admin On Duty), Setting someone as God-Mode, Setting someones health and armor on...

1 Day Ago
by bloodmasked Go to last post
2 103
Help

I can't get my jobs to show up in F4 Menu. Help!

Hey so I can not get myjobs into F4 i dont know what I am doing wrong this should b coded fine. My Lua: TEAM_ADMIN = DarkRP.createJob("Admin On Duty", { color = Color(170, 0, 0, 255), model = "models/player/combine_soldier.mdl", ...

1 Day Ago
by bloodmasked Go to last post
3 96
Question

Any HTML/Awesomium-related changes in the past month or so?

I have an HTML panel that used to visit my Discourse-powered forums but after testing it recently, it is no longer working and throwing the following errors: http://curiumgaming.com/assets/vendor-52ed1f7ea87a692ca7ec8f3b75...:1: Uncaught TypeError:...

1 Day Ago
by serfma Go to last post
4 291
Help

SWEP Help (Automatically begin expanding winch on creation)

Into: So I've decided to try to learn some LUA, so for a project, I've decided to come up with my own grappling hook. None of the grapples on the workshop seem realistic at all/fit my taste, so I've decided making my own that I think will be good. ...

1 Day Ago
by SinkableSea Go to last post
0 42
Help

Help With SteamCMD For A Gmod Server

I get this error when doing everything right and starting Start.Bat --> "The procedure entry point SteamInternal_CreateInterface could not be located in the dynamic link library C:\MyServerNameHere\garrysmod\bin\server.dll. Name of the error is -->...

1 Day Ago
by Crustikk Go to last post
0 54
Question

How would you go about adding custom mods into gamemodes?

How would you go about adding custom mods into gamemodes? Trying to put a weapon in.

1 Day Ago
by LambadaCorez Go to last post
4 85
Help

Creating a Custom Entity with ents.Create

I'm having problem figuring out how to spawn in a entity with ents.Create all I want to do is spawn in a custom entity I made called "item_box". This is in autorun so that is not the problem. function spawnentsb() local button21 = ents.Create(...

1 Day Ago
by Ms.Bean Go to last post
6 153
Help

solved Force players to join another server?

Hello! I am trying to make some special events weekly for my community, however, I am trying to find a way to force all of the players in-game to join another server (possibly by the IP) via the server console, is this possible? Thanks for your...

1 Day Ago
by ZombiezPvP Go to last post
35 396
Help

DarkRP: Play sound on job change?

Alright so I have a custom job set up like so; TEAM_CHEMIST = DarkRP.createJob("Chemist", { color = Color(141, 0, 141, 255), model = "models/bloocobalt/splinter cell/chemsuit_cod.mdl", wardrobe = false, description = ], weapons...

1 Day Ago
by LOT Go to last post
20 345
Question

Right Click function in gamemode?

Just started in LUA, making a gamemode, trying to figure out how to add an action to the right click. Anyone have any ideas?

1 Day Ago
by JamesScott Go to last post
3 91
Lua

SQL Support...

Keep getting this error: nil UNIQUE constraint failed: modelinfo.name From this code:

1 Day Ago
by yoloman707 Go to last post
6 197
Question

Uniquely identify Gmod server

What are ways to get some sort of unique id of a server in a addon. One example for a server-sided solution would be the ip. Does someone know other solutions that work either on client or on server? It is not necessary for the code to work on both...

1 Day Ago
by bigdogmat Go to last post
10 242
Help

Server Data Help pls!

Hello friends, help me. The essence of my problem is. That generating these values all works, but it is synchronized in sv.db How do I make it so that the values are stored in the folder data Thank you in advance;) if SERVER then

1 Day Ago
by krampuspublic Go to last post
1 65
Help

Trying to install a Gmod Server

I get this error after doing login anonymous Then force_install_dir C:\Users\****\Desktop\GmodServer Then app_update 4020 validate I get this Error! App '4020' state is 0x602 after update job. I have 713 GB out of 931 GB

1 Day Ago
by yoloman707 Go to last post
1 88
Help

Help with DarkRP and TacInsert addon.

Tactical Insertion Addon - http://steamcommunity.com/sharedfiles/filedetails/?id=322038989 So I'm developing a starwarsrp server, and I'm using darkrp as the base gamemode. We're experiencing an issue with players being arrested when they have a...

2 Days Ago
by TheVac Go to last post
3 109
Art

Your Idea of 'Pretty' Code? ( 2 3 Last )

An example of beautiful code in my opinion: hook.Add("Init", "PrintIdiot", function() local idiot = LocalPlayer() if idiot:Name() == "Wavie" then print(idiot:Name() .. " is an idiot.") else print(idiot:Name() .. " is cool.") end

Wavie Thread has images 1 people are reading this thread x 1
2 Days Ago
by Wavie Go to last post
101 4,094
Help

3rd Person on one team, 1st person on another

Hello! I am brand new to LUA and the whole coding scene in Garry's Mod, and I need some help. I need to make 1 team have a 3rd person camera perspective, and the other team have a 1st person perspective. I have no idea where to put anything, or how to...

2 Days Ago
by LambadaCorez Go to last post
12 170
Shitpost

Completely disabling Context Menu

Hello. I'm not sure which hook takes care of top bar in opened context menu. I'm using pretty simple code to prevent CMenu from showing up but things on screenshot (http://imgur.com/a/UAJKz) keep popping up and I want to remove them. hook.Add(...

2 Days Ago
by Mista Tea Go to last post
4 175
Help

solved Need help with Fixing T-pose.

Hello! I am having some trouble with the link below. Basically, it has a Playermodel and a NPC, when I set myself to the playermodel, it creates a T-pose when I stop moving only. Is there a way I can edit something to fix that? This is the...

2 Days Ago
by ZombiezPvP Go to last post
5 200
Help

[TTT] Tool to change Weapon/Player spawn

Just like in the title, do you know any tool that would help me? I know "TTT Weapon Placer" but it doesn't work :( i do everything like here: http://ttt.badking.net/rearm-guide but when i get on map i still have the same spawnpoints and weapon.

2 Days Ago
by Gr0m3r Go to last post
5 155
Lua

Attaching a medal onto clientside playermodel

Hiya all, I need a bit of advice as to where to start (not asking you to do it for me, but just point me in the right direction). I'm wondering how I should create a model/entity that can be attached to the playermodel of a client to be viewed by...

2 Days Ago
by victi Go to last post
3 112
Help

Panel IG to add grade

Hello, I would like to make a panel in game to rename the name of a player when he goes into a job and remove it when he goes out, for example Jean is a policeman then his name changes Jean, I would also like Be able to choose who at what grade, I do not...

2 Days Ago
by Fruitwesp Go to last post
2 109
Lua

Creating Messages like Blocked Models

I have created this small script that blocks models or the spawning of models and currently i use a in-chat message saying "Sorry, this model is blocked" so they know, but i wish to use the regular "The model of this entity is in the black list!" message...

3 Days Ago
by Lucifer1 Go to last post
7 212
Help

solved How do you find what is being shot by a SWEP?

Pretty much what the title says. I was wondering how you would find (or if it's possible to find) what is being shot by a SWEP so, for example, if someone were shot by a certain SWEP, they would be set on fire even if the person shooting wasn't looking...

3 Days Ago
by code_gs Go to last post
1 77
Lua

solved Lua Error! My SWEP won't even show up :(

I want to make a SWEP that lowers the gravity of the target, sends them upwards, and then explodes them. The problem could be that ExplodeSubject is not being called right. In that case I could do timer.Simple( 2, function(ento) blah blah end ) but I am...

3 Days Ago
by Lavacoal123 Go to last post
10 262
Lua

Mapping. Lua_run sbox_godmode "0"

I'm creating a map for Garry's mod. Is it possible to use the entity lua_run to make sure that sbox_godmode was always 0 and the player could not even include it through the console? Here's an example of how to make sure that a player can not use noclip:...

3 Days Ago
by wh1t3rabbit Go to last post
5 159
Help

ULX Freeze Player VIA Physgun Script

Okay, so. I have this script installed on my server: lua/autorun/physgun_ply_freeze.lua It allows anyone who has "ulx physgunplayer" enabled on their ULX Group to Freeze & Unfreeze players like as if they were a prop. Here's the code: local...

3 Days Ago
by LOT Go to last post
5 133
Lua

Scripted Entity Duplication

Good day everyone! I've recently started creating my own addon for Garry's Mod and I've encountered the following problem: If I have some variable which is created inside an entity function which is called from a tool like this: function...

3 Days Ago
by Danksa Go to last post
0 104
Help

solved Darkrp respawn job selection glitch

Hey, first thread I need your help so bad, i created a DarkRP server, for now it's not having any lua error or anything, but i have a problem. I set the respawntime to 60 seconds so player don't kill other players for no reason. When somebody die ,...

3 Days Ago
by Mashy Go to last post
7 143
Help

Function only works on one player!

Hello, I have been making an entity that allows you to purchase either Health or Armour. Everything works fine apart from: the code gets executed on the first player that first joins and not the player using the entity. I really need the armour and health...

3 Days Ago
by iGuNZZzz Go to last post
2 125
Lua

solved [LUA] Making a colored "DrawModel()".

So I have this code below and I can't make the "DrawModel()" colored. My conclusion is that the prop changes color but the "DrawModel()" doesn't and it overlaps the prop. test_color = Color(255,255,0,255) hook.Add("HUDPaint", "test_hudpaint",...

3 Days Ago
by matik04 Go to last post
3 292
Help

Missing maps- Players cant join?

Sometimes, players get the missing maps error and cannot join. Does anybody know how to fix this? I put the map that I use in the example.lua and it is added to the workshop, and players should be forcedownloading the workshop... it's weird, or I'm just...

3 Days Ago
by davicyyo Go to last post
2 107
Question

Gmod 13 HUD

I've seen a few lua tutorials for garrys mod 12, but i was wondering if there where any lua tutorials for making HUD's that will work with garrys mod 13. And before people say it.. yes i have checked google, from what i could see all the ones i...

4 Days Ago
by [.xyz]Cas-Nam Go to last post
5 8,537
Help

Error tmysql callback failure (tmysql)

Hello everyone! Sometimes i have this problem in my console i dont know whats is the problem "tmysql callback failure" could someone help me please? Thanks

4 Days Ago
by legol4ss Go to last post
2 87
Help

solved Problem with my script :(

Hi Guys i make a food system and i have a problem with "addMoney" Command. I Make a simple button, I call the ply action. local ply = LocalPlayer() Then in my Button.DoClick if ply:canAfford(DCFood_BeerMasterPrice) then

4 Days Ago
by davicyyo Go to last post
8 186
Lua

Disabling pointshop for certain teams

I am attempting to disable the pointshop (Pointshop 3 by _Undefined) and holster all items if a player is on a specific team. I am running a Zombie Survival server, and the team ID for the zombies is TEAM_ZOMBIE with an id of 3. I have attempted the...

4 Days Ago
by hankster112 Go to last post
8 216
Help

Displaying Timer on HUD

Hello, I am trying to make a timer, from my addon, display on my darkrp hud. The timer code is: if ( text == "/squidditch" ) and ply:IsAdmin() then timer.Create("ClassTime", 500, 1, function() end ) Then, in my HUD, I inserted the code local...

etc2002 1 people are reading this thread x 1
4 Days Ago
by etc2002 Go to last post
6 181
Lua

Need help manipulating data in SQL!

Hiya SQL gurus, I'm wanting to manipulate the data that i pull out of a database so that it can be added onto the same line of a DListView. In this case to explain more, i want the medal value and reason value to go onto the same line. However,...

4 Days Ago
by yoloman707 Go to last post
5 536
Help

server startup errors

I have a local server that I do all my coding on, but recently I've ran into an issue. Anything I put into lua/autorun/client or server isn't being loaded. I do get an error in the server console: for client side files - Couldn't find...

4 Days Ago
by MrRalgoman Go to last post
10 141
Question

Does anybody know a template for the sanic nextbot NPCS?

I've been looking through the internet for either a Template or a Video tutorial on how to make the Sanic NPC nextbots.

4 Days Ago
by TheVac Go to last post
1 105
Request

What happened to the old derma designers?

Hey everyone. So back when I was still new to scripting for GMod, I came across DermaDesigner. However, it seemed to be deprecated, and I continued to "manually" create my menus. Faster forward to today, where I resumed my search. I came across a few...

4 Days Ago
by Richtofen Go to last post
13 596
Question

Need help with coding...

Hey, I've been trying to find out the Pos for the left hand corner of the screen where I'd like to put my logo. Does anyone have the Pos for the top left hand corner? Kind Regards, Adrick

4 Days Ago
by gonzalolog Go to last post
7 214
Lua

Force people to keypress

So, I got my gamemode calling a function on F2. Since GM:ShowTeam can be called serversided and IsKeyDown clientsided, would I like to force people that press Q actually press f2, like a keybind to Q. How do I do this? I tried hook.Call within a function...

4 Days Ago
by TomatoSoup Go to last post
10 514
Help

Looking for addons that replace the weapon selection hud/menu

Im wanting to customize my own to add to a hud im making for my server, but im struggling to find existing weapon selection huds to edit on Ive only found https://garrysmods.org/download/5949...on-select-free But it is not what im looking, i want a...

4 Days Ago
by bloodmasked Go to last post
0 80
Lua

SQL Help

Hi all you SQL lovers out there, SQL has been my nemesis for quite a while... just can't seem to get it working correctly ever! I am currently trying to create a database that has a unique_id, steamid, medal and reason column. The database shows that...

5 Days Ago
by bigdogmat Go to last post
29 259
Help

Godmode + Noclip for a specific job

I want to create a godmode and noclip script which automatically gives the user if he joins the specific user group, as example Staff On Duty. It should automatically give the Staff which is on duty their god mode and noclip. I have no idea what is wrong...

5 Days Ago
by andreblue Go to last post
7 221
Question

Making a weapon that freezes the player you're pointing at

How do I get the name of the player that my crosshair is pointing at?

5 Days Ago
by Aeternal Go to last post
3 140
Help

solved URS is overwrites the job weapons

Hello! So, firstly, I want to say someone has already complained about this and got no replies there is no active support from the author, therefore, I have come here because someone might be able to help me with this. Well, I have tried adding URS...

5 Days Ago
by ZombiezPvP Go to last post
11 324
Stupid

solved Make players walk slower

If you rescale a player to be twice as large using SetModelScale their movement animations do not change speed. This is very strange looking, because their leg movement looks like they should be covering twice as much terrain. Is there a way I can make...

5 Days Ago
by TomatoSoup Go to last post
6 235
Question

Need help with a some code troubleshooting (very new to lua)

So I just recently decided that I would like to learn to code in lua for gmod because as many others, I wish to be able to do more than just "suggest" things and actually develop them the way I intend them to be. Pretty much, right now I am trying to add...

5 Days Ago
by TheVac Go to last post
3 90
Help

Drones Rewrite Collisions Issue

So I am using the addons drones rewrite and I made some drones not collide with players. The have no collisions for me only however for other players theres collisions. I have no idea whats causing this nor do I know where to look for the solution any...

5 Days Ago
by NeatNit Go to last post
1 92
Help

Neutron Admin

Hello, I have the neutron admin and I would like to have a page in order to put a rank in front of the name of a player in a specific job, for example, Michael just got a policeman and he has the rank of corporal, That suddenly before his name there is...

5 Days Ago
by Richtofen Go to last post
3 124
Help

My server is not finding HUD icons in materials folder.

Hi, I have put the following files into the correct folder but the server is not finding them. I have found this error message in my console: HTTP ERROR 8 downloading http://xxx.xxx.xxx/xxx/garrysmod/materials/rusthud/health.png.bz2 HTTP ERROR 8...

5 Days Ago
by Richtofen Go to last post
14 350
Help

Making an Entity Have No Collisions With Players

Im trying to make this entity from the Drones addon have no collisions with players as well as being able to be shot any help would be appreciated! ENT.Base = "dronesrewrite_base" ENT.Type = "anim" //ENT.PrintName = "CRG 'Cargo'" ENT.PrintName =...

5 Days Ago
by tzahush Go to last post
1 88
Lua

Help me with "CalcMainActivity" please

I have looked in the Gmod-Wiki but I didn't found anything useful about this hook. I just know that I can create animations with it but I don't know how to use it. Can someone show me an example for using it? I want to learn to use the hook to modify...

5 Days Ago
by patrickhofman Go to last post
6 152
Help

Murder CS:GO Sweps (Pointshop 2)

Explanation: I need that when people is murder, they get their equipped knife. The knife they purchase it from the pointshop store and they equip it in the knife section, which replaces weapon_mu_knife. Then I want that they can throw the knife (right...

6 Days Ago
by gonzalolog Go to last post
3 159
Help

SWEP that fires a laser visible by all clients

-snip- Had to make an effect. Works now. http://wiki.garrysmod.com/page/util/Effect

6 Days Ago
by Rory Go to last post
0 96
Help

solved problem passing an object between Client and Server

i'm trying to pass this server object to clientside to print some string on player HUD. ServerSide: Christian = Religion:create("Christian") Error: - cl_religion.lua

6 Days Ago
by Nargarath Go to last post
4 168
Help

Help - Check if player has item equiped. [POINTSHOP]

I want you to only execute a function if the pointshop item is equipped. Pointshop item code: ITEM.Name = 'Habilidade de Empurrar Pessoas (testes)' ITEM.Price = 100000 ITEM.Model = 'models/props_junk/garbage_glassbottle003a.mdl' function...

6 Days Ago
by JasonMan34 Go to last post
5 151
Question

solved Is there anything else besides workshop that would be downloading faster with server?

Hey, guys, I need players download content from server. Is there anything else besides workshop that players would download faster and easily with server? I know about sv_downloadurl which could able to players download files from url direcotory. What...

6 Days Ago
by MeepDarknessM Go to last post
4 247
Help

Trying to copy bhop movement from other gamemodes

I only tried to take it from other gamemodes because I can't find a proper addon that has the movement. Is there a addon that bunnyhops or Does anyone have a actual working addon or lua script that works? or how to convert a gamemode that has...

1 Week Ago
by code_gs Go to last post
3 223