Title / Thread Starter Last Post ByReverse Sort Order Replies Views
Help

solved attempt to index global 'self' (a nil value)???

if ( self.Owner():GetActiveWeapon():GetClass() == "joyofpainting") then That's the code, and this is the error: addons/santa/lua/weapons/joyofpainting.lua:589: attempt to index global 'self' (a nil value) 1. unknown -...

10th July 2016
by Aarone2004 Go to last post
19 260
Lua

solved Debugging Lua code in Garry's Mod

I'm debugging some LUA code for Garry's Mod, but I was wondering if it's possible to debug the Lua code IN Garry's mod. I get error messages in the developer console, and I was able to fix a few bugs this way, but there is a bug that is eluding me big...

10th July 2016
by PlayBoyMan Go to last post
3 120
Help

No Mapchanges

Hi, On our server we have waterworld only. As the server crashes very often and karma bans do not reset the karma back to normal, I need the server to reload the map after 20 rounds. I deleted Mapvote and not after 20 rounds it says "Round limit...

10th July 2016
by DrDemo Go to last post
6 152
Love

solved GMod and brush entities

Can you in any way manipulate brush entities created via hammer? I fail to get pos and size of any brush entity, varying from trigger_push, trigger_hurt and even custom ones pw_resource_spawnarea Thanks in advance.

10th July 2016
by Netheous Go to last post
0 120
Lua

optimisation tricks and tips

just wondering about the things to avoid and things that could make my code run faster thanks.

10th July 2016
by >>oubliette<< Go to last post
3 202
Help

Making a buttons highlight gradually across.

So I need to make buttons highlight when they're hovered on, but no errors pop up and it doesn't work. This is a portion of my code. cl_init.lua for k, v in pairs (buttons) do v = vgui.Create("DButton", ButtonsLay) v:SetFont("MelonButton")...

10th July 2016
by Invule Go to last post
7 189
Help

solved Need help with overlays...

Hello facepunch! Need some help with overlays, so erm, where do i begin? The Problem: The problem is that the texture doesn't seem to want to load properly, and throws random lines on the screen, etc. It is animated, but the .vmt seems to be okay....

10th July 2016
by BlackSnow Go to last post
10 198
Help

solved Custom fonts?

How does one make a custom font to use in Garry's Mod for draw.SimpleText, etc.? P.S My font is in resources/fonts

10th July 2016
by BlackSnow Go to last post
5 184
Help

default derma slider

Anyway to stop it from having a huge area to click the slider, if that makes anysense. as in if you have a checkbox slight above a slider you arent able to click the checkbox, just the slider. eg http://i.imgur.com/bxl4YDK.gifv

10th July 2016
by Robotboy655 Go to last post
1 128
Help

solved Hide voice chat icons for certain players

So I know how to hide the yellow voice chat icon for everyone, but would there be a way to remove it for certain people? I've looked everywhere, but can't seem to find a way.

10th July 2016
by MelonShooter Go to last post
2 84
Help

Lua scripting problem! Trying to edit bodygroups on playermodels (pointshop)

Ok, so I'm running a gmod Jailbreak 7 server, and I'm trying to be able to edit the bodygroups of a playermodel I have in Pointshop. Here is the .Lua I'm currently using. And I'm using this addon: http://steamcommunity.com/sharedfile.../?id=546524865 I'm...

BGH
10th July 2016
by BGH Go to last post
2 101
Help

solved Issue with Meta and Self

I've been trying to teach myself to make an admin mod but I've come across an issue: things only work when I use the first key in my table of usergroups. If I try and test things with a usergroup that is not the first key of my usergroups table, I get...

10th July 2016
by code_gs Go to last post
2 145
Help

Learing Lua 5.3 instead of 5.1?

Hey, I program mostly in C++ but wanted to grasp a new language and decided it could be Lua with an implementation in Garry's Mod to make everything increasingly more enjoyable to learn. I understand that Lua 5.1 is used in Garry's Mod and I found the...

10th July 2016
by man with hat Go to last post
3 288
Help

HELP, Killstreak code [ Open Source ] dosent work!

Hey, I am working on a killstreak thing for when players kill eachother, and after 10 kills they get either, x3 speed, or x2 jump height. Please help! I can't figure out why it don't work! please help! if not SERVER then error( "This is here to tell...

10th July 2016
by code_gs Go to last post
5 232
Help

DarkRP Chat Tags?

Anyone know if there is a chat tag code that works with darkrp? Such as /advert and /ooc. I can't seem to find one. So if you know please tell!

9th July 2016
by Rizerino Go to last post
6 2,492
Help

solved Spaceship Spawning System

Hello I am trying to make an item that when you use it, a spaceship will spawn and if you die you can use it again and another one will spawn but the old one will be removed. I have the spawning part done, but I have NO CLUE how to check if one is spawned...

KB
9th July 2016
by KB Go to last post
2 153
Help

solved Trying to make adding classes to my class select menu easier with for in loops, having trouble

I've tried so many things to try and get the dpanel to appear, how ever it seems as though as soon as I put it in a for in pairs loop it just doesn't appear Any help would be much appreciated local classpanel={} classpanel=panel classpanel=panel1

9th July 2016
by Orbitor Go to last post
4 132
Help

solved Trying to make explosions quieter with sound.Add but just makes them silent.

Here's the code I ran. Any sound level >1 will make it silent, any level <1 doesn't seem to make the explosion any louder or quieter sound.Add({ name = "BaseExplosionEffect.Sound", channel = CHAN_STATIC, volume = 1.0, pitch = 1.0, level = 1.5,...

9th July 2016
by thegrb93 Go to last post
2 80
Request

solved Players getting kicked when we switch maps!

When we are playing TTT, we would have a solid 12 people and when the maps changes after the vote, everyone disappears. Nothing shows that they were kick or disconnected.

9th July 2016
by timz9 Go to last post
3 205
Help

Darkrp spawns reset

I have 3 Dark RP Servers. A WW1, A Star Wars and a Generic Dark RP. In all three spawns are not saving. They were working fine but when I upgraded to the new Dark RP, the 2.7 I believe, none of the spawns would save. They would be set, but after a reset...

9th July 2016
by KB Go to last post
2 145
Stupid

solved Searchig EvoCity Maps

Hi, I nearly downloaded and uploaded 3 Evocity v33x Maps to my server. All of them were broke, as my server didn't start after uploading them. So as I have a shit internet connection and it takes me forever to upload one map I need your help. Where...

9th July 2016
by DrDemo Go to last post
2 121
Help

How do I change the map on my server?

I'm running a server right now, but how do I change the map? If you know, please tell me. Thanks. 9th July 2016 Oh and I don't want to use Gmad.

9th July 2016
by edgarasf123 Go to last post
8 184
Lua

How to bind keys server-side

I installed the Alien Isolation Crafting Menu addon for my server, obviously I binded the menu through console, but I don't want people who join to have to manually type in bind "whatever key" ai_opencraftmenu. I want it already binded so if they click...

9th July 2016
by code_gs Go to last post
4 179
Lua

solved Garry's Mod Lua DFrame help.

Hello. Hopefully someone knows what they are doing to help me out.. I am creating an Addon for a Homehosted server that I learn on. I am trying to Open a DFrame with a Key on the Keyboard but i am unsure on how i should start. I've looked online...

9th July 2016
by MPan1 Go to last post
12 181
Lua

solved SendLua Function Not Working

Recently I was going through old scripts I had made. I decided that I wanted to continue working on my Admin Mod, for many of the commands I had made before used SendLua, and they were also the commands that did not work. When I went to go test other...

9th July 2016
by MPan1 Go to last post
1 89
Help

Combine Ball Bounce

Hello everyone, i'm back and I need help, I've been trying for ages to remember my combine ball bounce code, but i can't make them bounce anymore, every time they hit something they immediately disappear without bouncing, here's my code snippet: ...

9th July 2016
by Dragula5892 Go to last post
0 172
Lua

solved Teleport behind player you're looking at

Can someone please help me figure out how to do this? I have no idea where to figure it out.

9th July 2016
by Thane Go to last post
15 321
Help

What am I missing?

function Server( ply, text, _ ) if ( string.sub( string.lower( text ), 1, 7 ) == "!server" ) then local main = vgui.Create( "DFrame" ) main:SetSize( ScrW() * 0.75, ScrH() * 0.75 ) main:SetTitle( "Server List" ) main:SetVisible( true )...

9th July 2016
by rtm516 Go to last post
1 108
Repeat

solved tmysql Guide?

Hello all, Trying to find any information regarding tmysql. I know there is the guide (https://facepunch.com/showthread.php?t=1442438) but I am struggling to get it working and can't find any reference to it anywhere. I have the following so far in...

8th July 2016
by .0mega Go to last post
6 232
Question

OBB vs Hull

What is the difference between an entity's outer bounding box and hull? I've just always treated both as the same thing, but GetHull and GetOBBMins/Maxs seems to sometimes return different vectors for the player.

8th July 2016
by vrej Go to last post
1 194
Help

Give self item using Bobbleheads Grid-Base Inventory

Hey, so I followed Bobbleheads inventory and object oriented lua tutorials but I cant seem to figure out how I give myself a custom made item, item_weed420 came with the tutorial in his download link, but I will link the wikis below incase anyone can help...

8th July 2016
by gkgelijah Go to last post
4 190
Lua

solved Default Speed? GMOD

What's player default speed in gmod like... Walking, Running, Crouching, Swimming, Jumping, ect.

8th July 2016
by Klaes4Zaugen Go to last post
4 187
Help

Entering Area Script Help [If in area then output]

Hey everyone first of all I would like to start out saying I have Minimal Glua Experience. I am looking for help on script I would like to make. The script activates a output upon entering a area of the map. This output would be a action such as...

8th July 2016
by Apickx Go to last post
1 142
Help

People cannot connect to my server.

So I start up my server in srcds, and it starts up just fine. But when I try to get a friend to join the game, they all get the "Fail after 4 retries" error, which means they cannot connect. How do I fix this?

8th July 2016
by Lemmie Go to last post
8 303
Lua

solved RunConsoleCommand in hook error

Hi, I try to reconnect the player to a server when the player died (client side) But when I execute the command "connect". I have an error: Bad server address ("MyIP") But the server ip is good. I think the command send this error when called in...

8th July 2016
by azerty2016 Go to last post
5 165
Help

Vrondariks leveling system

hello, quickly. How i make it show the recuired level to become the job in f4menu using the vrondariks leveling system? Like, is it something simple like recuiredlevel()

8th July 2016
by SlayerLegendz Go to last post
3 196
Help

animation not playing all the way through - swep

hello i have a script that plays an animation on primary fire but it dosn't go all the way through the animation but sometimes it dose function SWEP:PrimaryAttack() if !IsFirstTimePredicted() then return end local trace = self.Owner:GetEyeTrace()...

8th July 2016
by ewmiter Go to last post
2 113
Help

3D2D panel angle offset

Hey ;3 So i'm trying to make an entity which has a 3D2D panel on it using cam.Start3D2D, but by default the panel it spawns is offset from the model: https://gyazo.com/5c15525b954b4c6fc8fd3c0614df886c So i would like this to be in line with the...

8th July 2016
by dhog10 Go to last post
1 103
Help
8th July 2016
by exemptednato Go to last post
0 103
Lua

Display Text Above Players

How would I make it so i can display text above everyone's head that is only viewable by certain players in a certain table?

8th July 2016
by shipstreet Go to last post
12 454
Lua

Fuzzel.lua - Fuzzy string matching - Never write concommand autocomplete code again!

Hello everyone, long time lurker, first time starting a thread. I got annoyed while jumping around the code for various projects. I wouldn't remember how options for console commands are formatted, so I would write an autocomplete, after re-writing it...

8th July 2016
by Apickx Go to last post
1 366
Lua

solved Turning playermodel invisible on keypress

Alright so I'm starting an addon and I want to make the users playermodel disappear on keypress I know I'd use either Player:KeyPressed or GM:KeyPress but I'm not sure which one? Also I know I'd put LocalPlayer():SetMaterial("") after that.

8th July 2016
by Thane Go to last post
7 232
Help

DarkRP not saving spawns after restart

When I restart my server non of the spawn points print to the sql database and they won't save any ideas?

7th July 2016
by gmanc2 Go to last post
0 93
Help

solved what is a CUserCmd object ?

hello ! someone can explain me how CUserCmd works ? i want to try something like this : function GM:PlayerSpawn( ply ) CUserCmd:RemoveKey( 1 ) --block player attack timer.Simple( 10 , function() CUserCmd:SetButtons( 1 ) --unblock attack ...

7th July 2016
by BALIST0N Go to last post
1 136
Help

Make a Job whitelist for an DermaPanel

Hello ! I have make a little system when people press USE on a NPC they get access to a DermaPanel. But I don't know how make only people in Cops job (darkrp) get this access. Thank you for any help.

7th July 2016
by blueangel512 Go to last post
2 184
Help

solved PData table saves as a string

I saved a table to PData when I try PrintTable() it said it's a string. So I printed it with print() and it returned table: 0x28bbd0d8 So my question is how would I get it to print as a table or get the table to insert to.

7th July 2016
by danker pepers Go to last post
1 85
Help

problem with derma

so me and a friend are making a admin menu where u can config stuff with out breaking the gamemode but the problem is when using DCollapsibleCategory it wont open all the way or when you click on the tab it will look as a tab but click on it again it wont...

7th July 2016
by blueangel512 Go to last post
4 170
Help

solved Using Model Panel but half of the model gets cut off.

local function inventory( ply ) local frame = vgui.Create( "DFrame" ) frame:SetPos( 500, 500 ) frame:SetSize( 500, 400 ) frame:SetTitle( "inventory" ) frame:Center() frame:MakePopup() local grid = vgui.Create( "DGrid", frame )...

7th July 2016
by awesomenessis Go to last post
5 177
Help
7th July 2016
by Voroz Go to last post
1 91
Question

What was your first addon?

Im curious about some of the more well know addon and content makers around this community, but it brought a question to mind about one thing. What was your first mod you created? What was the first mod you downloaded? Was it Shit, was it good? What...

7th July 2016
by Serpent15 Go to last post
18 453
Lua

TTT -Icon Following / Buddy icon

Hey, I'm trying to make an icon follow a player (Similar to the Tbuddy icon system) but im having trouble finding something to referenace off of. I would appreaciate if you could point me in the right direction towards the Tbuddy script or something...

7th July 2016
by Zet0r Go to last post
3 191
Help

[SERVER] Starting fresh server problem

Hey guys, I habe a new problem: I made a fresh server via SteamCMD with "verify", I just get a error message, that something "SteamAPI..." (see picture) couldn't be found or something like that in the engine.dll when I try to start the server I hope...

7th July 2016
by Arlu3n Go to last post
0 87
Help

how do i make a ENT ignore player

i have an Entity that i want to pick up with the grav gun but i dont want the player to move by walking over/near it plz help

7th July 2016
by ewmiter Go to last post
6 255
Help

solved how to spawn player at the good location ?

hi everybody ,actually i'm creating a gamemode, everything works good, but i'm in front a problem that i can't understand : so, my gamemod is a kind of survival, for example : there are 5 players on the game, when player die, he still died and can't...

7th July 2016
by BALIST0N Go to last post
1 165
Lua

Client XXX tried to overflow reliable channel?

So I have this issue where if I'm the usergroup "Owner" and rejoin I can't join it will kick me with Client XXX tried to overflow reliable channel ? Has anyone had this issue? If so do you know how to fix it? Edit: I know it's caused by ULX incase...

7th July 2016
by DaddyFrosty Go to last post
2 257
Help

solved Very annoying function returning an empty table!

The function ents.FindByName returns an empty table, even though the argument I passed is definitely an existing entity name. Why is this happening?!

7th July 2016
by KO #1 Go to last post
4 195
Help

Disable exec in server side from the client

Hey, I have problem with the players inside my server, I have RolePlay server and the players using the command "exec 360controller" and they are getting crosshair and its kind of cheating... There is any problem to disable using or reloading any client...

7th July 2016
by uRandomAlex Go to last post
2 197
Lua

VisualModels showing up intead of VElements (SWEP)

Hello, I'm making my first "Addon" (although is just scripts) where I'm trying to make the Swep version of the Black Rock Shooter's weapons. I did used the Swep Construction kit to positioning the models (VModels and WModels). I had problems with the...

7th July 2016
by JPZV Go to last post
0 131
Question

Half-Life 2 Models

I am currently working on a project using a Half-Life 2 theme. I was actually wondering how others have reused the models and re-textured them. I am unsure where to find the models. I remember someone telling me I need to uncompressed the vpk's or...

7th July 2016
by Robotboy655 Go to last post
3 143
Computers

Can't Mount CSS

This is my first post and I'm not sure where to put it, but I'll put it here anyways. I've been looking everywhere for how to mount css (counter-strike: source) and every thing so far hasn't worked. I always get this message: You need to mount...

7th July 2016
by RickyBGamez Go to last post
6 204
Lua

Online only script error

Hi! I've made my first addon today because I needed more advanced ball sockets. The addon works in single player, but when I try to fire the tool in listen server mode I get script errors, however the tool seems to work anyway. These are my errors...

7th July 2016
by Voroz Go to last post
3 170
Lua

Hitmenu not working for custom class.

I am trying to make a hitman job but the hitmenu isn't working here are the job details or whatever they are called. TEAM_HIT = AddExtraTeam("Hit Man", { color = Color(125, 125, 225, 212), model = "models/player/group02/male_08.mdl", description...

6th July 2016
by Sertefile Go to last post
2 126
Help

Getting the right amount of force for AddAngleVelocity()

Hello, I'm not all that smart when it comes to physics and needing to know formulas for solutions. I have this code at the moment which to a degree works as intended. if ply:KeyDown(IN_ATTACK) && !ply:GetNWBool("PhysLock") then -- Physics...

6th July 2016
by MrGrim48 Go to last post
2 172
Lua

solved [STORING DATA] Text or SQL?

I know this topic already had a thead, but i need to know for this specific use. So if I have an addon, and I have to store maybe points per player. Then if I store the points in an SQL, they will have to setup their own SQL right? And if I set up my...

6th July 2016
by RazMouze Go to last post
12 238
Help

ModelThrowingGun into EntityThrowingGun

I decided to start learning LUA on the Throwing Chairs Gun example (from GMod Wiki), so basically I'm going to experiment on it a bit, then edit for my tastes. My goal here is to create something simple, I came up with idea of the weapon which would throw...

6th July 2016
by Warcode Go to last post
4 232
Lua

Custom STAR WARS RP Server?

Hey dear community, i recently came up with the idea of making an custom "starwarsrp" server, but i neither have experience in LUA, neither in DarkRP/The RP Gamemode in total. So i have the following questions : 1) How can i actually make it on Star...

6th July 2016
by Warcode Go to last post
3 214
Help

solved Reading from a txt file and turning it into a table

I am working on a custom gamemode which currently contains 2 entities: lumrace_lum and lumrace_item. In order for the gamemode to be playable there needs to be spawn locations for these entities. I wrote a system that allows the gamemode to read these...

6th July 2016
by 0x13f Go to last post
3 129
Lua

Props collide with invisible walls possible?

Is there a method of enabling the collision of a physics prop and an invisible wall? I'm working on modifying the Prop Hunt game mode and have made it so it spawns the prop, create it's physics object then have the player control and follow that...

6th July 2016
by MrGrim48 Go to last post
1 159
Lua

Hook for when an entity receives another player's EyeTrace?

Is there a hook/event that gets called when an entity is hit by a player's EyeTrace? That is, when a player "looks at" the entity. I would like to hook into this and do some stuff, but unfortunately I can't find an event that handles it. I did find...

6th July 2016
by kevinmd88 Go to last post
4 285
Lua

solved PNGS in derma turning out bad

So, I've come into some trouble when drawing a PNG on the screen using the following code surface.SetMaterial( Material( "resource/userfixed.png", "noclamp" ) ) surface.SetDrawColor( color_white ) surface.DrawTexturedRect( 70, 90, 60, 60) It...

6th July 2016
by isagrat Go to last post
11 507
Question

solved Vehicle collision disabled.

Hello. There is a vehicle that hasn't any collisions (I don't know why). I tried to use a "for cycle" for fix this problem, but I'm having a problem. The original code I created is: timer.Create("VehicleCollisions", 1, 0, function() for k, v...

6th July 2016
by Predda Go to last post
4 129
Help

GetNetworkedBool() returns nil?

Why does this return nil? trig = ents.FindByClass( "trigger_altar" ) I've got a trigger_altar in my map, which is a custom entity I made. This is the init.lua for that entity:ENT.Base = "base_brush" ENT.Type = "brush" function ENT:Initialize()...

6th July 2016
by KO #1 Go to last post
2 161
Help

What's wrong with my little hints script?

Hey guys so I am trying to make a darkrp hints script but I keep getting an odd error: lua/autorun/hints.lua:5: ')' expected near ',' 1. unknown - lua/autorun/hints.lua:0 local function GiveHint() local hint = math.random(1, 37)

KB
6th July 2016
by Klaes4Zaugen Go to last post
7 254
Lua

Learning GLua

So ive been trying to learn lua for a long time now. I still have no idea what a table is, a hook, how a function works and all that other jazz. Somehow i managed to become a dev for a server and now im trying to develop a gamemode in NutScript. I have...

6th July 2016
by Bakken1 Go to last post
23 684
Lua

set a models scale via axis using a Vector / EnableMatrix?

Would like a code that will multiply or lengthen the object by its y axis. Any help is appreciated, thanks in advanced

6th July 2016
by gkgelijah Go to last post
6 134
Help

Are there premade banned props that I could somehow insert to my DarkRP server?

So I decided to make a DarkRP server and I need to ban all the props that can potentially crash the server, prop kill, etc and I was wondering if there is a way were I can use someones banned props and insert it to my new server.

6th July 2016
by James xX Go to last post
1 144
Help

rename a SWEP

hey i wonder if theres any kind of addon out there to rename a swep to the original css sweps names im trying to make my sweps to spawn instead of css's weapons. i mean theyre not spawning at all on the maps, it says theyre missing so i want to rename...

6th July 2016
by PizzaDoxy Go to last post
2 140
Help

solved Can I set player class without player dying first?

I need to set the class of player with player_manager.SetPlayerClass(ply, "player_myclass") but I don't want the player to have to suicide before it takes effect. Is there a way to do this?

6th July 2016
by KO #1 Go to last post
2 99
Help

solved util.WordWrap

Hi guys, first post so take it easy on me. I am in the process of converting a old gamemode and I have hit a brick wall with the bit of code. It's only some simple code(I think...), but I have looked around and I am unable to find any update with...

6th July 2016
by .0mega Go to last post
6 159
Question

To pointshop or not to pointshop...

Is their a way that using darkrp & pointshop to do the following... 1: Buyable jobs 2: Buyable job skins 3: Buyable cosmetics (like normal pointshop) 4: Buyable weapons 5: Buy your way into a full job K welp that's all I need for now.

6th July 2016
by Ghastninja46 Go to last post
2 179