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,219
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,300
Lua

Getting the top-down view of a map?

Wondering how I would get the top-down view of map like this - http://prntscr.com/f23zjo (I took that screenshot from a server I was in and I am wondering how I would replicate that) The map there doesn't seem to be updating every frame and I'm...

2 Hours Ago
by LittleBabyman Go to last post
4 94
Photos

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

Highlights from the previous thread

3 Hours Ago
by RocketMania Go to last post
255 20,446
Question

Value changing console command

I am trying to change a variable's value using a command, as in "Answer 10" and it should change the variable to "10", but of course as you can tell I don't know how and can't really find any answers either.. so.. anyone? ~thanks

4 Hours Ago
by JasonMan34 Go to last post
11 257
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...

7 Hours Ago
by dgrawns Go to last post
9 283
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...

8 Hours Ago
by MPan1 Go to last post
1,140 41,264
Lua
8 Hours Ago
by tzahush Go to last post
3,612 13,803,372
Help

How to install a custom font?

Hey guys so I have a question.. How do I install a custom font for my HUD/ PANEL. I don't want to use the default ones that come with the game I want to use one from DaFont.com What's the process of doing this and how do I do it?

9 Hours Ago
by Invule Go to last post
1 61
Help

Override clientside commands?

Okay, so I specifically want to override commands registered by the engine such as +right, +left, +jump etc.. But I don't know how or if that's possible? Anybody have any input? it'd be greatly appreciated! Thank you for your time and consideration.

LOT
12 Hours Ago
by LOT Go to last post
4 132
Work In Progress

GeoIP - Virtually instant geolocation ( 2 Last )

libGeoIP Lua binding - Get info about IPs! Download Windows http://g1.metastruct.net:2095/modules/gmsv_geoip_win32.dll Linux http://g1.metastruct.net:2095/modules/gmsv_geoip_linux.dll Uses the GeoIP database GeoLiteCity.dat Uncompess, rename...

13 Hours Ago
by zerf Go to last post
50 11,752
Help

solved Clean up HTML string and make a table of contents

I want to make a table of all .mp3 files in the web directory. I am not fully there though, not sure how to make it a table. I tried string.ToTable but it made every letter indivudally their own seperate table. I just want the lines with file extension...

17 Hours Ago
by Bull29 Go to last post
2 89
Help

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

18 Hours Ago
by awolDocBrown Go to last post
4 132
Help

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

How to make the func. CanDrop = false only for pointshop? Ie so that the items bought in the pointshop did not fall out. Thank you.

inikonik 1 people are reading this thread x 1
18 Hours Ago
by zippy36jr Go to last post
3 162
Help

How to disable player model changing if player isn't donator or higher?

Alright so ive been working around and messing with player models for my server and i was wondering how i can disable/enforce player models to the correct model for the job in say darkrp unless the player is donator rank or higher? how would i go about...

22 Hours Ago
by Tanoshi Go to last post
2 74
Question

What does Entity:TakePhysicsDamage(dmginfo) do?

A number of entities call this function, but not all of them and it's not in any base entities. From experimentation, it seems to be necessary to do this to make bullet force apply to entities, but does it do anything else? Is it safe to call this in a...

1 Day Ago
by Lexic Go to last post
0 68
Help

HELP NEEDED - Which HUD is this?

Hello everyone reading this! Basically, as you could already tell by the title, i am wondering, if any of you great people know, what's the name of the hud (i'll add pictures of it), and if anyone knows, where could i get / buy it. I would be really...

1 Day Ago
by CrazyClash Go to last post
4 213
Help

SRCDS has stopped responding.

Basically, yesterday, the server was running fine, I made no changes. I went to sleep, I woke up, I started the server. Only to see it started crashing. I'll paste one of the lines that is spammed in the console, which I have never seen before. ...

1 Day Ago
by Borris_Squad Go to last post
0 52
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...

1 Day Ago
by Borris_Squad Go to last post
5 308
Lua

Hiring a Coder MegaThread ~ Rip In Peace CoderHire ( 2 3 4 5 .. 11 12 13 14 Last )

New Gmod Scripts/Jobs Site: ScriptFodder By now we all heard the news that http://coderhire.com/ is going to be closing it's doors so might as well go back to the good ol' megathread days. This thread is for anyone who wishes to hire a coder to...

1 Day Ago
by SGMatt Go to last post
526 41,776
Lua

Best (and safest) way to setup a cooldown mechanic to script?

I've got an addon that heals a player, simple as that. The thing is, I don't want players to be able to spam use on the prop that activates the healing. I'm assuming I'd have to do something with os.time. Is there any downside to using this?

1 Day Ago
by Bull29 Go to last post
1 116
Help

Materials not working.

Alright I'm creating a addon. I have installed some custom fonts and materials. They are not working. Font - surface.CreateFont( "Gun License NPC Text 1", { font = "bignoodle", size = 15, } Materials -

1 Day Ago
by pvprangergod Go to last post
2 70
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
1 Day Ago
by Unib5 Go to last post
178 12,451
Lua

[NEWBIE] SWEP Lua scripting - Primary / Secondary attacks

Hello FacePunch community ! Before starting, I wich that I'm not in the wrong section to post my question, and sorry if I'm wrong. For my own server, I want code all addons and I've started by creating a SWEP. Today, after doing the first lines,...

1 Day Ago
by Karmah Go to last post
1 111
Help

ItemStore

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

1 Day Ago
by Joeyl10 Go to last post
3 176
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.

1 Day Ago
by AlbertoBC Go to last post
5 272
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?

2 Days Ago
by streetkilln Go to last post
9 247
Help

No props on spawnmenu

The title and the screenshot says it all I'm running darkrp on a mac server I'm getting this error at the console gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenttypes/custom.lua:191: attempt to call field 'GetCustomPropTable' (a...

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

2 Days Ago
by Von Steiner Go to last post
12 343
Question

Good UI Libraries?

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

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

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

2 Days Ago
by TheVac Go to last post
11 287
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...

2 Days Ago
by MediCat Go to last post
9 179
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...

3 Days Ago
by Fillipuster Go to last post
4 104
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

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

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

3 Days Ago
by bloodmasked Go to last post
14 348
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...

3 Days Ago
by bloodmasked Go to last post
2 122
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", ...

3 Days Ago
by bloodmasked Go to last post
3 110
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:...

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

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

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

3 Days Ago
by LambadaCorez Go to last post
4 93
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(...

3 Days Ago
by Ms.Bean Go to last post
6 174
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...

3 Days Ago
by ZombiezPvP Go to last post
35 417
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...

3 Days Ago
by LOT Go to last post
20 362
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?

3 Days Ago
by JamesScott Go to last post
3 104
Lua

SQL Support...

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

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

3 Days Ago
by bigdogmat Go to last post
10 265
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

3 Days Ago
by krampuspublic Go to last post
1 75
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

4 Days Ago
by yoloman707 Go to last post
1 99
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...

4 Days Ago
by TheVac Go to last post
3 120
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

4 Days Ago
by Wavie Go to last post
101 4,121
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...

4 Days Ago
by LambadaCorez Go to last post
12 185
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(...

4 Days Ago
by Mista Tea Go to last post
4 186
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...

4 Days Ago
by ZombiezPvP Go to last post
5 209
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.

4 Days Ago
by Gr0m3r Go to last post
5 163
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...

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

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

5 Days Ago
by Lucifer1 Go to last post
7 221
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...

5 Days Ago
by code_gs Go to last post
1 85
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...

5 Days Ago
by Lavacoal123 Go to last post
10 271
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:...

5 Days Ago
by wh1t3rabbit Go to last post
5 167
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...

5 Days Ago
by Danksa Go to last post
0 111
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 ,...

5 Days Ago
by Mashy Go to last post
7 148
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...

5 Days Ago
by iGuNZZzz Go to last post
2 136
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",...

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

6 Days Ago
by davicyyo Go to last post
2 117
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...

6 Days Ago
by [.xyz]Cas-Nam Go to last post
5 8,556
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

6 Days Ago
by legol4ss Go to last post
2 98
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

6 Days Ago
by davicyyo Go to last post
8 193
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...

6 Days Ago
by hankster112 Go to last post
8 224
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...

6 Days Ago
by etc2002 Go to last post
6 195
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,...

6 Days Ago
by yoloman707 Go to last post
5 547
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...

6 Days Ago
by MrRalgoman Go to last post
10 148
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.

6 Days Ago
by TheVac Go to last post
1 117
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...

6 Days Ago
by Richtofen Go to last post
13 607
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

6 Days Ago
by gonzalolog Go to last post
7 222
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...

6 Days Ago
by TomatoSoup Go to last post
10 528
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...

1 Week Ago
by bloodmasked Go to last post
0 89
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...

1 Week Ago
by bigdogmat Go to last post
29 274
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...

1 Week Ago
by andreblue Go to last post
7 240