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 2,029
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 21,243
Work In Progress

Virtual world system to allow for an actual city

I am no mapper so bare with me. Let's say we had 10 different houses without interiors, just the exterior, with the interiors far below/above the map. Using a script, when a player uses the door they are teleported to the houses interior. Expanding on...

iGolden96 7 people are reading this thread x 7
5 Minutes Ago
by iGolden96 Go to last post
21 2,301
Help

Reloading a Derma Panel

Hi guys, so my problem is that if I change something in my Panel it stays the same till I close it and open it again. I tried Derma:refresh and Derma:rebuild but they don't work. Im using a DListView Panel menu:AddOption( "+1 D-Pass",...

xDagunLP 1 people are reading this thread x 1
7 Minutes Ago
by xDagunLP Go to last post
0 8
Help

solved Help with Derma Panels

Hi guys, I am new in Garry's Mod Lua and I tried to code myself and watched tutorials but I did not find anything for this. So feel free to help me :3. TAmount = 5 DAmount = 2 function TMenu(ply,text) if(text == "!pass") then

xDagunLP 2 people are reading this thread x 2
28 Minutes Ago
by xDagunLP Go to last post
14 170
Post Your

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

38 Minutes Ago
by code_gs Go to last post
193 5,702
Lua

NEW deathrun gamemode player models problem

So basically I have a deathrun server with a new version of deathrun by Arizard https://github.com/Arizard/deathrun but the player models are not working. They are just black figures that have no animation. I have not edited the deathrun code so I don't...

x8DAVE8x 2 people are reading this thread x 2
59 Minutes Ago
by x8DAVE8x Go to last post
2 62
Help

Skin not showing

Hey everyone,I've converted an m4 skin The Howl from sandbox to my TTT server and i've set the dmg magazine size and fire rate to my preference i can spawn the gun using the ulx command ent and equip it the gun is exactly how i want it to be, However it...

1 Hour Ago
by AceTheDumby Go to last post
0 30
Help

solved "Player:Say" Error

So I have been working on this fun npc for darkrp. The idea is when you press E on it a GUI comes up. Then you select your role/job and press "Choose!". All of that works! But, when you press "Choose!" you are supposted that the script forces you to say...

androiid_ 3 people are reading this thread x 3
1 Hour Ago
by androiid_ Go to last post
2 44
Question

GM:HUDShouldDraw Help

Nvm - I'm dumb - was calling it server-side :)

Semajnad 2 people are reading this thread x 2
1 Hour Ago
by Semajnad Go to last post
0 25
Help

Does ent:touch() return the worldspawn?

I have a weapon script that has 5 different spell abilities. http://deception.esy.es/Media/Video/leetaddo.mp4 I have made an entity fireball that has fire particles and everything and when it touches a player/npc/entity it blows up and deals damage...

1 Hour Ago
by Deception_ Go to last post
1 71
Help

solved What to open a ".db" file with?

As the title says, which program is a secure and good software that can import a ".db" file. This is so I can edit my sv.db but I'm struggling to find a software for it. Thank you.

2 Hours Ago
by ZombiezPvP Go to last post
4 68
Politics

My role in the future of DarkRP ( 2 3 4 5 .. 10 11 12 13 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 6 people are reading this thread x 6 Winner x 30
3 Hours Ago
by FPtje Go to last post
497 17,113
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 5 people are reading this thread x 5 Dumb x 31
4 Hours Ago
by freemmaann Go to last post
3,412 6,067,409
Help

DarkRP group chats

I was wondering if I could give my staff on duty job access to all group chats. If you don't know what I mean by that, well I mean that he can over look all group chats and such but I don't want all my jobs group chats linked up as one. Anyone know...

Tarvik 2 people are reading this thread x 2
6 Hours Ago
by smithy285 Go to last post
1 104
Help

Help with animating to Garry's mod.

Hello Facepunch It has been a long time, months as i've been trying my hardest, being very eager to try and fix this solution. Wel, ofcourse what I'm trying to do is animate a very simple box which moves on its bones. I'll then be able to call them...

7 Hours Ago
by Chickengbs Go to last post
4 94
Lua

Gmod automatic AOD god (and message)

Hello there, I was wondering if you guys have an idea on how to make it say "*player* has gone AOD!" Here's my system for the godmode Code: if (SERVER) then local adminondutyteams = { TEAM_ADMIN } hook.Add("PlayerShouldTakeDamage",...

8 Hours Ago
by gonzalolog Go to last post
5 232
Post Your

Useful Code Snippets ( 2 3 4 5 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 3 people are reading this thread x 3 Lua Helper x 21
8 Hours Ago
by StickmanJohn Go to last post
160 17,007
Help

ULX JAIL: Logout loophole patch?

So, I have a thought. Is there anyway to have ULX automatically jail a player if they relog?

LOT 3 people are reading this thread x 3
8 Hours Ago
by rtm516 Go to last post
6 392
Beta

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

Happy new year! Highlights from the previous thread

12 Hours Ago
by dvd_video Go to last post
191 16,392
Help

gmad.exe Not extracting map file.

Hi. I am currently working on a map (titled ph_jail_v1_beta) and I am ready to upload the beta version of the map to the Garry's Mod workshop. But midway in getting the map ready for uploading, when I drag the file with the .bsp and addon.json and what...

Great Dog 1 people are reading this thread x 1
13 Hours Ago
by Robotboy655 Go to last post
1 94
Help

how do i fix my nextbot conflicting with sanic?

my nextbot is conflicting with sanic (probably cause i copied the code and replaced every sanic with gabe(the dog))

13 Hours Ago
by Nookyava Go to last post
10 206
Lua

Garry's Mod darkrp Lua error HELP ASAP

This is the first error message in my console A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua" on line 388. The best help I can give you is this: There is a player with an invalid team! The player's...

18 Hours Ago
by catfood Go to last post
5 94
Help

What is better, resource.AddFile or resource.AddSingleFile?

^Title^ What would be better/faster for players to join quicker?

18 Hours Ago
by TheNooblycore Go to last post
2 101
Lua

[Pointshop] First connect point reward

I want to do that when you first connect the player to the server he was given the starting points. I can give points, but check whether the player is connected for the first time I can not. Help pls.

20 Hours Ago
by MeepDarknessM Go to last post
4 214
Help

When people die and respawn it changes there view

Whenever people die and respawn their view goes outside there playermodel and justs flys out the maps, we r using nutscript. please tell me how to fix this.

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

1 Day Ago
by OwnedbyCube Go to last post
15 416
Lua

Category does not exist?

Here is the category code: DarkRP.createCategory{ name = "Clone Troopers", categorises = "jobs", startExpanded = true, color = Color(160, 160, 160, 255), canSee = function(ply) return true end, sortOrder = 1, }

1 Day Ago
by thejjokerr Go to last post
5 162
Help

Garry's Mod Huge Unknown Error.

Hello! I'm having a huge error which when it happens, it totally spams the console. Error: http://pastebin.com/9iYH1BF1 I've been trying to find what exactly is causing it for a week or so now but no results. Anyone have any idea what causes this?

1 Day Ago
by ZombiezPvP Go to last post
18 513
Lua

solved A question about bullet structure

Hello guys, I would like to know what is the unit used for the distance in the bullet structure. I could not find any information about that except this: http://wiki.garrysmod.com/page/Structures/Bullet

1 Day Ago
by codneutro Go to last post
2 128
Garry

Next Update v6.0 - October 2016 ( 2 3 4 5 .. 14 15 16 17 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/2016/10/10/october-2016-update/

1 Day Ago
by Zeh Matt Go to last post
654 47,922
Lua

HL2 Models Broken on Garry's Mod

Hi There, I am making a Garry's Mod server and I am trying to use some Half:Life 2 Models, when I ulx model myself, the model is broken. See the photos below.

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

DarkRP Getting pocket content

How can I get the stuff a player has in his pocket on the client? I've tried getPocketItems() but it just says (attempt to call method 'getPocketItems' (a nil value) So...

1 Day Ago
by Melonos Go to last post
3 137
Poll

Anyone wanna help make a remake of Pirate Ship Wars??+

Im going to start development on PSW 17 today and i really want to re-make all the assets, so i am looking for someone with a bit more modeling experience then me.

1 Day Ago
by s4sek Go to last post
3 267
Help

Use FlashlightIsOn() for hud?

How do I make my hook hud display only when my flashlight is on? I know I need to use FlashlightIsOn() but how do I use it and where, it is hard to find instructions on the wiki for that

1 Day Ago
by MGFear Go to last post
2 211
Help

how do i make a nextbot

hi i want to make a next bot like sanic, lenny, etc i got the model and going to get the music but i need the lua script pls help PS i don't really know what i'm doing

1 Day Ago
by jamie7879 Go to last post
10 266
Lua

Help with Bodygroups modification and Pointshop

So i'm trying to impliment an option to my pointshop as so the player can modify their player model's bodygroups by clicking on the model once purchased, so far i managed to only impliment the modify option but when you click it nothing happens at all, i...

1 Day Ago
by PX-32 Go to last post
2 119
Help

solved Error stopping me from using anything

whenever I press f4 on my server, I get this error. I can not figure out what it means. gamemodes/darkrp/gamemode/modules/base/sh_gamemode_functions.lua:5: attempt to index field 'Sandbox' (a nil value) 1. unknown -...

1 Day Ago
by collin4lizard Go to last post
3 116
Stupid

Sv_cheats question

Im setting up a new server and im running into bit of a snag. I want to enable the r_farz command for all users to (maybe even add a derma slider) but unfortunately this requires me to have the server open with sv_cheats 1. I took about a year or so break...

1 Day Ago
by txike Go to last post
3 272
Help

solved Can Someone help me

Sorry if this is in the wrong place, if it is tell me the right place and ill put it there. I keep geeting this everytime i try to uplaod to the steam workshop using GMPU, in the Queue in the status area it says Error! Exit Status(1). can you please...

1 Day Ago
by Nookyava Go to last post
4 144
Question

solved MySQL Query for a Ban System

I'm trying to implement a ban system into my addon and was wondering if I could use MySQL Events to un-ban a person at a specific time. If not it would be greatly appreciated if could you please suggest a different way to do so. Below you can find my...

1 Day Ago
by James xX Go to last post
5 160
Help

solved send data between cl_init and init in a entity

maybe a noob question but. Can i somehow send data between cl_init and init in a entity?

1 Day Ago
by meanbeandk Go to last post
10 252
Lua

Need help changing a f1 menu to a ESC menu

hi nice to meet you all, i recently bought a f1 menu but i want to change it to a ESC menu for my gmod darkrp server can anyone help me out with this? it would be really appreciated

1 Day Ago
by WHOGIVSACHIT Go to last post
0 96
Help

[TTT] Is there a way to show a traitor on the scoreboard?

Hey, beautiful people! I was wondering if anyone knows a way to show a traitor on the scoreboard with a function or something. For example, I want some code like this... if condition is true then -- Notify players -- Set the players color on...

1 Day Ago
by Nookyava Go to last post
3 179
Help

small help darkrp

how i can change eat sound when player eat food in darkrp, i tryed but its doesnt work.

1 Day Ago
by ZombiezPvP Go to last post
3 235
Lua

solved Activatingtimer and Halo on keypress

I'm new to Lua and I'm trying to make a 'weapon' that plays a sound and gives the player a yellow halo for 10 seconds, I want a timer.Simple to turn the halo off after those 10 seconds. I figured out the model, playing the sound etc. But the only thing I...

2 Days Ago
by Darrell Go to last post
1 143
Lua

Licence swep

Hello, I would like if the mayor gives you a license weapon.Automaticly you receive the swep or weapon. Someone can help me ?

2 Days Ago
by babouche35 Go to last post
0 87
Lua

Hiring a Coder MegaThread ~ Rip In Peace CoderHire ( 2 3 4 5 .. 10 11 12 13 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...

2 Days Ago
by ReeseIsInsig Go to last post
515 38,475
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....

2 Days Ago
by Windwhistle Go to last post
9 415
Help

solved tmysql4 module not found

I downloaded a base RP gamemode and it requires MySQL, I have the database setup and it is connecting successfully so that isen't the issue. It comes from this error gamemodes/life/sv_mysql_player.lua:7: Module not found! Line 7 is require "tmysql4"...

2 Days Ago
by TheMafien Go to last post
5 147
Help

Voice chat help

Hello, i am Logan I am a founder of a new santosrp server called MiamiLife. After fixing most bugs on the server we have hit a problem, and this is that we don't want gspeak on our server, so i decided to disable it, yet another dev of another...

2 Days Ago
by iJohnny Go to last post
1 132
Help

changing speed to slow doesn't make footstep sound

I have this inside a PlayerThink --Sets Cremator characters correct speed and also to make animations look smoother. if (faction == FACTION_CREMATOR) then if (!infoTable.isJogging) then infoTable.walkSpeed = 59.97 end; function...

2 Days Ago
by karl-police Go to last post
0 99
Help

solved My NPC make Alyx crush game!

Strange thread name? Yes! I have very strange problem: i can spawn many different NPC's and my NPC and all will be fine, but when i spawn Alyx and she detects my NPC - game crushes. It's very stupid and i don't understand why this happens. It's really...

2 Days Ago
by IAmError Go to last post
2 182
Help

solved changing speed with PlayerThink

I am trying to change the speed and for some reason this doesn't work: --Called every second. function PLUGIN:PlayerThink(player, curTime, infoTable) --Sets Cremator characters correct speed and also to make animations look smoother. if...

2 Days Ago
by karl-police Go to last post
4 164
Help

Looking for the name of the admin mod used by a lot of the applejack based gamemodes?

Hi I'm looking for the admin mod used by communities like fearless and limelight; It has features like removing individual properties from people like "prop spawning" and "v access (vehicle access)" I'm wondering if this is an established...

2 Days Ago
by NV Sam Pepper Go to last post
0 87
Help

Too many indices to buffer

Having this problem on a server where it will randomly drop players with the error "Too many indices to buffer. . Tell a programmer." I've done a lot of research, some say it's caused by decals being in weird places and others say it's playermodels. ...

2 Days Ago
by El Pongo Go to last post
4 238
Help

[Need Help] a way to detect when a NPC is attacking you

This feels kind of like a dumb question, but I did google it and didn't find really what I was looking for. But basically, I'm wondering if there is any way to detect when a player is attacked by an npc in an if statement especially (assuming it's...

2 Days Ago
by Zeh Matt Go to last post
1 103
Lua
2 Days Ago
by sannys Go to last post
1 80
Lua

What can I make next that will teach me more about Lua?

I just finished a leveling system that you can view here. Based on my current skill level, what is something I can make next that's 1 step up from what I made that will teach me some more stuff? Thanks for reading! This is a module for DarkRP by...

2 Days Ago
by MGFear Go to last post
3 195
Shitpost

Derailed shithole ( 2 3 Last )

Whenever a thread details into off-topic arguments just start posting here instead and link to your reply in the original thread. This goes triple for WAYWO and Next Update. Please use this. 6th December 2016 From:...

2 Days Ago
by 0V3RR1D3 Go to last post
98 4,897
Help

Prop inside of Player

Hello, i'm trying to figure out how to make a prop nocollide with another player if it is frozen inside the player. Once the player is no longer inside the prop, make it solid again. hook.Add("OnPhysgunFreeze", "Freeze", function(wep, phys, ent, ply) ...

2 Days Ago
by Sir Klutch Go to last post
4 224
Help

solved Problems with MySQL quey and Checkpassword hook

I'm making my own ban system for my server and I'm having some problems while attempting to disconnect the player on the 'CheckPassword' hook. I'm storing bans inside a MySQL Database, when the hook is first run it queries the database to check if they...

2 Days Ago
by Cheese_3 Go to last post
2 121
Lua

solved Attempt to compare number with a string?

Here is what's causing the error: function canPlayerLevel( ply ) local expToLevel = ply:expToLevel() local curExp = ply:CurExp() local curLvl = ply:CurLvl() if ( ply:CurExp() >= ply:expToLevel() ) then --This is line 11; causing...

2 Days Ago
by Austin1346 Go to last post
3 132
Help

Error with loading classes with team.SetClass

I'm quite new to developing addons in gmod and I am trying a to make a gamemode for fun however, I ran into a problem that doesn't give a console error. I have made a class in "playerclasses/class_monster.lua" but its not loading. Here's the shared.lua...

2 Days Ago
by armedturret Go to last post
0 74
Help

Prop visible, entity invisible

I've been working on script for some time and when i was about to turn my prop into entity it turns invisible, although i can see raw model. All other models in the pack i was making work as they should. Is there some bug i don't know about or is it...

2 Days Ago
by cRUSHpl Go to last post
9 238
Love

What should I do first in an RP gamemode

The question sound very very stupid and cancerous maybe because of RP but me and my friend who both know some GLua want to co-op in making a simple RP gamemode which only have basic job system, money and few simple item. That would be a big achievement...

2 Days Ago
by ph:lxyz Go to last post
20 795
Help

NPC/Vehicle Spawning Problem

Hey, I've been trying to enable the spawning of npc's and vehicles for admins on garry's mod. I have edited the lines: -- adminnpcs - Whether or not NPCs should be admin only. 0 = everyone, 1 = admin or higher, 2 = superadmin or higher, 3 = rcon only...

2 Days Ago
by bilbasio Go to last post
2 86
Help

Having problems with custom models on my server.

Hey everyone I'm going to try to make this nice and quick for you. I have a darkrp server and when people join if they haven't gone to the steam workshop and clicked subscribe they can't see my custom models. I'll reply as fast as I can and thanks for...

2 Days Ago
by ToddGodd Go to last post
2 80
Release

MatteHUD | Clean and Simple DarkRP HUD

Admin please delete this thread, I posted in the wrong section by accident. Very sorry

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

3 Days Ago
by Potatofactory Go to last post
7 243
Lua

attempt to index local 'jobTable' (a nil value)

I have a new starwarsrp server, I started by changing some things in the original darkrp gamemode so that my server would show up in the starwarsrp section. Then I got darkrp modifications and whenever I change something in disabled defaults I start...

3 Days Ago
by Semajnad Go to last post
4 145
Help

Server Stuck Downloading Models

When I try and connect to my server (hosted off my pc atm) it is constantly stuck on 'downloading models/something/darkrp/content/something'. This is really bugging me because people cannot join the server (unless you change multiplayer settings to...

3 Days Ago
by 0V3RR1D3 Go to last post
5 142
Lua

Restrict set acces

Hello, I would restrict the set acces for a ulx group. For example : The management admin can't set acces on superadmin. And the superadmin can set access all acces Thanks

3 Days Ago
by babouche35 Go to last post
0 95
Lua

Pointshop camera bug.

Pls help me with it shit. File: DPointShopMenu.lua function PANEL:SetData(data) self.Data = data self.Info = data.Name

3 Days Ago
by Sergey_26rus Go to last post
10 346
Help

Error connecting to the database?!

When i start my Server this Error pops up: Error connecting to the database... Error: Can't connect to MySQL server on '185.101.92.238' (111) Here is my MySQL_config.lua: config.host = "185.101.92.238" config.database = "mls_db" config.port...

3 Days Ago
by Xenoz Go to last post
2 129
Lua

Question about sending tables between server and client.

First off, here is my code; Server: util.AddNetworkString( "SendUserCreateParty" ) net.Receive( "SendUserCreateParty", function( len, ply ) local PartyName = net.ReadString() local PartyDesc = net.ReadString()

3 Days Ago
by Shenesis Go to last post
2 205
Help

SantosRP Error

So i was offered the gamemode SantosRP from some guy if i do a web dev job for him. So i did and this is one of the biggest errors i get. gamemodes/taloslife/gamemode/init.lua:69: attempt to index field 'SQL' (a nil value) 1. unknown -...

3 Days Ago
by StonedPenguin Go to last post
7 301
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 Apickx Go to last post
505 59,857
Lua

Pointshop ULX Command, Send

I'm looking for a ULX command to partner with pointshop called send points. I'm not a LUA wiz, but this is how I'd like it done: "ulx sendpoints {name} {amount}" !sendpoints {name} {amount} If someone could give me a tutorial on how to do that,...

3 Days Ago
by Nookyava Go to last post
4 165
Help

Script Error Help

Hello Everyone! I am a Co-Owner on a DarkRP Server and there is this Script Error: vcmod/client/data_hud_main.lua:2: attempt to index a string value with bad key ('GetNWEntity' is not part of the string library) 1. error - :-1 2. __index -...

3 Days Ago
by Moat Go to last post
4 130
Help

solved Translate EyeAngles to plane local angles

This is the third time I've tried to make this thread after CloudFlare's captcha has deleted my post. http://zombine.me/ss/Photoshop-19.01.17340.png I would like to translate the green arrow, LocalPlayer():EyeAngles(), into the space of one of the...

3 Days Ago
by Z0mb1n3 Go to last post
4 159
Lua

solved Easy way to check if a string consists only of letters?

I'm working on a party system and I'm getting around to filtering what they can use for party names. I found something that checks if the string is alphanumeric but I didn't see one for checking if it's only consisting of letters.

3 Days Ago
by Austin1346 Go to last post
8 174