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,053
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,265
Help

solved EnhancedAvatarImage not working

So i am using this.. https://github.com/PatrickRatzow/EnhancedAvatarImage and this is what it returns... (using black background to show whats going on)

26 Minutes Ago
by XxLMM13xXx Go to last post
4 41
Post Your

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

1 Hour Ago
by Shenesis Go to last post
202 5,996
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 1 people are reading this thread x 1
1 Hour Ago
by x8DAVE8x Go to last post
3 118
Help

Gmod female animation source won't compile properly

I've been trying to integrate some animations and whenever I compile the f_anm model, the model gets completely messed up, causing lag and the female models to appear sideways. Compiling the m/z_anm models works perfectly, it's just the female one. I...

2 Hours Ago
by solid_jake Go to last post
0 48
Question

Detecting Server-side Key being Held

-Snipped Cause I Was Dumb- But new question: Ok - so new question: I have this - what's the best way to handle doing something when a key is held down? hook.Add( "PlayerInitialSpawn", function( player ) player.key_held = {}

4 Hours Ago
by Semajnad Go to last post
4 239
Lua

Could not find cl_init.lua (gamemode)

This is probably a dumb question but I can't find the solution anywhere. When loading into my gamemode on both a dedicated server and a singleplayer game I'm given the following error in console: Lua Error: Couldn't include file...

Pebsie 1 people are reading this thread x 1
4 Hours Ago
by 0V3RR1D3 Go to last post
4 78
Lua

How to change sound speed midway through playing?

Hi, I have this SWEP that plays music as well as few other things. Is there a way to slow or speed up the music midway through the song (Left click to speed up and right click for slow down for example). Does anyone know how i would be able to do...

4 Hours Ago
by James xX Go to last post
1 52
Help

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

4 Hours Ago
by Deception_ Go to last post
4 206
Question

How to create other weapons using the Lightsaber Addon

Need to create weapons that show up in the f4 menu using the lightsaber addon that are set to certain colours and lengths and cant be changed. Ive seen it done on other servers and cant figure it out on my own. Help! The Lightsaber Addon Im reffering...

5 Hours Ago
by code_gs Go to last post
3 58
Request

DarkRP chat sys

Guys,i need help. I need darkrp chat system (chat-distance,"No one can hear you",etc.)for sandbox server! Sorry for bad lang :ohno:

7 Hours Ago
by code_gs Go to last post
1 88
Post Your

Useful Code Snippets ( 2 3 4 Last )

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

Exho Thread has images 2 people are reading this thread x 2 Lua Helper x 21
10 Hours Ago
by 101kl Go to last post
159 17,240
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.

10 Hours Ago
by karl-police Go to last post
2 188
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",...

10 Hours Ago
by Metamist Go to last post
6 284
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...

12 Hours Ago
by AceTheDumby Go to last post
2 142
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 1 people are reading this thread x 1 Winner x 31
13 Hours Ago
by FPtje Go to last post
503 17,486
Beta

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

Happy new year! Highlights from the previous thread

14 Hours Ago
by bobbleheadbob Go to last post
201 17,238
Lua

MySQL Issue?

I understand the majority of this community dislikes PERP, but I'm having a similar issue to this post. Now that tmysql4 has been retired, I'm using mysqloo v9 with the tmysql wrapper and getting the following error. ...

15 Hours Ago
by -BWL-Stan Go to last post
2 118
Stupid

Bodygroupr Help

So I've been using the Bodygroupr addon recently and ran into a problem...in the read me the author says to add this to a job --Simple Example TEAM_CITIZEN = DarkRP.createJob("Citizen", { color = Color(20, 150, 20, 255), model = {...

A2N
15 Hours Ago
by Zelpa Go to last post
2 109
Question

solved GM:HUDShouldDraw Help

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

18 Hours Ago
by MrRalgoman Go to last post
1 93
PHP

Attempt to call field 'query' (a nil value)

So, I got myself hooked up with an old PERP gamemode which my friend had located on some of his old USB sticks. I got everything set up, but encountered some problems with Tmsql in the first place, somehow, it fixed itself. But now I am having problems...

19 Hours Ago
by Rocket Go to last post
23 827
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:...

21 Hours Ago
by Unknown Gamer Go to last post
99 5,057
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...

23 Hours Ago
by rtm516 Go to last post
22 2,496
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...

1 Day Ago
by karl-police Go to last post
1 148
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
1 Day Ago
by iGolden96 Go to last post
1 95
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

1 Day Ago
by xDagunLP Go to last post
14 214
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...

1 Day Ago
by androiid_ Go to last post
2 77
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.

1 Day Ago
by ZombiezPvP Go to last post
4 100
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 2 people are reading this thread x 2 Dumb x 31
1 Day Ago
by freemmaann Go to last post
3,412 6,129,124
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...

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

1 Day Ago
by Chickengbs Go to last post
4 127
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
1 Day Ago
by rtm516 Go to last post
6 415
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...

1 Day Ago
by Robotboy655 Go to last post
1 115
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))

1 Day Ago
by Nookyava Go to last post
10 222
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...

1 Day Ago
by catfood Go to last post
5 115
Help

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

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

1 Day Ago
by TheNooblycore Go to last post
2 121
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.

1 Day Ago
by MeepDarknessM Go to last post
4 229
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.

2 Days Ago
by OwnedbyCube Go to last post
15 427
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, }

2 Days Ago
by thejjokerr Go to last post
5 171
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?

2 Days Ago
by ZombiezPvP Go to last post
18 531
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

2 Days Ago
by codneutro Go to last post
2 134
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/

2 Days Ago
by Zeh Matt Go to last post
654 48,007
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.

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

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

2 Days Ago
by s4sek Go to last post
3 277
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

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

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

2 Days Ago
by PX-32 Go to last post
2 125
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 -...

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

8_arme Thread has images 1 people are reading this thread x 1
2 Days Ago
by txike Go to last post
3 288
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...

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

2 Days Ago
by James xX Go to last post
5 168
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?

2 Days Ago
by meanbeandk Go to last post
10 257
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

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

2 Days Ago
by Nookyava Go to last post
3 184
Help

small help darkrp

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

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

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

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

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

3 Days Ago
by Windwhistle Go to last post
9 420
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"...

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

3 Days Ago
by iJohnny Go to last post
1 137
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...

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

3 Days Ago
by karl-police Go to last post
4 169
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...

3 Days Ago
by NV Sam Pepper Go to last post
0 93
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. ...

3 Days Ago
by El Pongo Go to last post
4 245
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...

3 Days Ago
by Zeh Matt Go to last post
1 108
Lua
3 Days Ago
by sannys Go to last post
1 89
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...

3 Days Ago
by MGFear Go to last post
3 202
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) ...

3 Days Ago
by Sir Klutch Go to last post
4 232
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...

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

3 Days Ago
by Austin1346 Go to last post
3 138
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...

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

3 Days Ago
by cRUSHpl Go to last post
9 249
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...

3 Days Ago
by ph:lxyz Go to last post
20 803
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...

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

4 Days Ago
by ToddGodd Go to last post
2 87
Release

MatteHUD | Clean and Simple DarkRP HUD

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

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

4 Days Ago
by Potatofactory Go to last post
7 251
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...

4 Days Ago
by Semajnad Go to last post
4 151
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...

4 Days Ago
by 0V3RR1D3 Go to last post
5 147