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

Stamina system help?

Hey im thinking about making a stamina system for a gamemode Im working on. The problem is the only way I can think to do it is if I store the stamina variable on the client side, But I have been told this is bad so Is there anouther way to do it? Also I...

15th January 2015
by Acecool Go to last post
2 51
Request
 

Any tool to create custom npc directions ?

Hello guys, well the question is weird but there's a tool or something to create a custom npc movement, like make them join buildings, hit doors and things like that? Thanks !

15th January 2015
by Adam95 Go to last post
0 39
Help
 

Move up in folder?

Hey if I wanted to include a file that was ina folder, So this is my layout --gamemode ..... --shit ............ --somefile.lua .......cl_init.lua ...... init.lua ....... shared.lua

14th January 2015
by zerf Go to last post
5 59
Lua scripting
 

solved Polygons This thread has images

How does the draw.poly function actually work. This is my code: local ScreenBorder = { {x = 0, y = 0}, {x = 0, y = ScrH()}, {x = ScrW(), y = ScrH()}, {x = ScrW(), y = 0} }

14th January 2015
by Acecool Go to last post
4 87
QUESTION
 

Quick Question: Entity/Npc Limit!

Hey guys! If anyone has seen my previous posts those problems have all been solved with support from here, and if anyone runs into the same problems send me a message I can fix them too. Anyways I'm working a nee BIG project and was simply wondering: ...

14th January 2015
by warpavp2 Go to last post
6 85
Help
 

Pointshop Categories help?!?!

Okay, so I have PointShop by _Undefined on my Deathrun server, so I'm trying to add a category that is for Donators, so I make the category, nothing pops up. Then, I get the default category, weapons, and try it without the Donator Only name and the...

14th January 2015
by Actowolfy Go to last post
3 163
Help
 

Add function to play?

Hey how can I make it so I can have a function like ply:isGay() And be able to use this function on the player from any scrip on the server realm?

14th January 2015
by _FR_Starfox64 Go to last post
2 50
Lua scripting
 

derma problem

http://prntscr.com/5sbz8a At first it seems ok, but then it goes down and more down and goes out of the frame. What do i do? Here's the code hook.Add("HUDPaint", "DrawGas", function() local ply = LocalPlayer() local veh = ply:GetVehicle()...

14th January 2015
by Carlton Dance Go to last post
3 65
Help
 

Loop sound

How would I play and loop and engine sound?

14th January 2015
by darkmist Go to last post
4 54
Help
 

Murder Server Crashes When Knife Is Thrown

So I manage a gmod murder server. I went away for a few days and when I come back I have messages about the server being bugged. When I join the server the only problem I'm finding is that when the knife is thrown and hits someone the server crashes. In...

14th January 2015
by meharryp Go to last post
4 89
Help
 

Metatables?

Well, What are these, How are they useful? Got any good documentaion. Alot of people tell me to learn these and that they will be useful, But cannot find a good place to start with hem, Thanks!

14th January 2015
by Flapadar Go to last post
7 179
Help
 

DARKRP Dropping people for no reason.

Hello, over the past couple of days when my server is full, around 15-25 people just all of the sudden crash to their desktop with NO errors. Scowt (STEAM_0:1:46621910) disconnected Dropped "Erza" from server<STEAM_0:0:56021974> Erza...

14th January 2015
by Exploderguy Go to last post
1 72
Help
 

solved [FAST THREAD] Addon Help

I've been out of the loop for a while and I can't seem to get autorun to work for this addon. I'm trying to create a simple greentexting addon to work for my server. I've tested the addon in singleplayer by dropping the script "greentext.lua" in...

14th January 2015
by michaelrule4 Go to last post
2 49
Help
 

Voice team chat only

On my server I have it so its all talk (sv_alltalk 1) so everyone can talk to eachother. but is their a way to have all talk and team voice chat at the same time? by lets say pressing z to team chat? so you could use x for all talk and z for team chat.

14th January 2015
by jobforacowboy Go to last post
7 119
Help
 

Crowbar like weapon?

Hey guys, Im trying to make a weapon that does the exact same thing as a crowbar but has a diffferent model and does different damage, But for some reason I am truggling so hard to do this. Does anyone know where the original weapon file for the crowbar...

13th January 2015
by Robotboy655 Go to last post
3 52
Lua scripting
 

Really weird issue

On TTT server we have SWEP Mellon launcher that launches melon prop. Problem is that when you kill 1 player on next player melon does 0 damage but hitmarker shows that it did 500dmg. I managed to detect addon that was causing launcher to break and exact...

13th January 2015
by GreenGold Go to last post
0 52
Help
 

Jump + Crouch fix? This thread has images

Hello. I have noticed that when you jump and crouch in air your position instantly changes and makes it higher than your feets should be. It makes easier to jump on objects but its not realistic for other people than you. Maybe someone has clue or idea...

13th January 2015
by Robotboy655 Go to last post
7 188
Lua scripting
 

How to get the list of files contained in a GMA package?

Hi everyone, I am trying to know the list of files contained in a GMA file. I do not really understand how to read the headers in order to get a file list. Does anyone have an idea? Note: it is for my addon Addon hooks Conflict Finder, so my addon...

13th January 2015
by Acecool Go to last post
4 116
Help
 

solved Kille by World dosnt "Kill" the player

gamemode TTT, if a player is killed by world hes still alive on scoreboard, he can hear/talk to living player still but he can fly like noclip. tried to fix it but my lua skills suck everytime i try anything :,D (still noob in lua) didnt found a solution...

13th January 2015
by Cryen Go to last post
4 73
Lua scripting
 

Some issues. This thread has images

I'm having some fun with 3D2D cam but I lack knowledge in this section. This is my code: hook.Add( "PostDrawOpaqueRenderables", "Hello m8", function() local pos = LocalPlayer():GetPos() local playerang = pos:Angle() cam.Start3D2D( pos +...

13th January 2015
by Loveasparagus Go to last post
4 115
Help
 

Can I delay this?

Hey guys, IM using network vars but right now Im sending the infomation every frame, Which I know is not good :/. Im trying to figure a way that will only update the variable every second, How would I got about oding this? I thought about timers but if...

13th January 2015
by darkmist Go to last post
8 94
Lua scripting
 

Nested tables. How do I reference them?

I thought I had finished an addon recently, but as it turns out, replicated cvars totally butcher things. So I'm moving away from those and trying to set up a table for the client to use instead. It's set up like this: CVar: Weapons: ...

13th January 2015
by Acecool Go to last post
14 186
Help
 

solved Serious Help: Lua NOT working on public server.

My Lua, entity works PERFECTLY in my own game. The second a friend joins nothing works right. The only thing that does work is the entity makes a sound still. I can't see my own entity light up when I use it, he can't see mine light up when I use it....

13th January 2015
by Acecool Go to last post
5 89
Help
 

Some quick and possibly stupid questions

So I am trying to make my first game (something I've been trying to do for a bit now) and I was wondering a few things: Will a structure like this work fine for my gamemode folders? GameModeName -entities -gamemode --teams (This would have files...

13th January 2015
by Acecool Go to last post
1 102
Help
 

Resource.AddFile downloads corrupted file and it makes me unhappy about myself

Hi Facepunch, How are you? Good? Well I'm having a bad day trying to figure out why the mp3 files download from a server using Resource.AddFile to add the mp3 file to the resource list will cause my Windows Media Player to crash. It does that on about...

13th January 2015
by code_gs Go to last post
4 103
Help
 

Value from var "$basetexture" error? - Quick Fix Help!

Not sure what this is, anyone know by chance? (Explain to me please, sorry, I don't get why it's giving me this). THanks if you can!

13th January 2015
by buu342 Go to last post
4 62
Help
 

[ERROR] Attempt to call a table value This thread has images

My server keeps crashing randomly because of this error. -- Line 188 of shared.lua local boltactiontime = (self.Owner:GetViewModel():SequenceDuration()) timer.Simple(boltactiontime + .1, function() if SERVER and self.Weapon != nil...

13th January 2015
by Joeyl10 Go to last post
2 101
Help
 

Simple (Timer, Stopparticles) Error - but does nothing bad..? - Small Fix!

I get this error when I use the object then delete it. I'm assuming the timers for the deleted object are still going and when they expire it realizes that there are no particles to stop and errors itself. It does absoliutely nothing except show an...

13th January 2015
by zerf Go to last post
3 46
Lua scripting
 

solved Derma lua error

-snip-

12th January 2015
by Captain Spark Go to last post
5 137
Help
 

Suit Case This thread has images

Yo, guys. I am creating my darkrp server and I have some problems with my entity suit case. I have the code to change playermodel when I use the case. But I need the code to change bodygrops in this playermodel. And Make Suit case only for one job,...

12th January 2015
by smithy285 Go to last post
6 116
Help
 

Compiling Fakefactory Alyx Models

Does anyone know what exact files in the Materials and Models folders I need to extract from Fakefactory's mod in order to put the Alyx models into Garry's Mod? I am trying to compile all of Fakefactory's Alyx Models together, and I would like to know...

12th January 2015
by Robotboy655 Go to last post
2 68
Lua scripting
 

init.lua functions in cl_init.lua, and custom hints

Hey I'm still working on my gamemode, and I'm making a shop menu where when you press a button it buys something. Right now I have in ini.lua: function buyMoreArmor( ply ) ply:TakeMoney( BUYARMOR_PRICE ) ply:SetArmor( BUYARMOR_ARMOR ) end ...

12th January 2015
by zerf Go to last post
16 210
Help
 

Pointshop Health Regen Error

Lua Error: addons/pointshop/lua/pointshop/items/donator/healthregeneration.lua:7: Tried to use a NULL entity! 1. Health - :-1 2. unknown - addons/pointshop/lua/pointshop/items/donator/healthregeneration.lua:7 healthregen.lua ITEM.Name = 'Health...

12th January 2015
by zerf Go to last post
5 78
Love
 

solved Steam family sharing

So basically, I want to disallow people who are running gmod from a shared library to join the server. How can I spot such an account, lua-wise?

12th January 2015
by Netheous Go to last post
9 161
Help
 

M9K Trouble in Terrorist Spawns

Hello facepunch users I am using m9k weapons on my TTT server and we noticed that the weapons doesnt spawn on some maps. (or not correctly) I tried to set "ttt_use_weapon_spawn_scripts" to 0 but nothing changed. I just want the m9k's spawn random...

12th January 2015
by Aeternal Go to last post
3 80
Lua scripting
 

solved Deathrun Weapons

Hey, i have a Deathrun server and when the runner/s get to the end of the map they do not have guns? How do i add guns? Is it something to do with the map or gmod?

12th January 2015
by Aeternal Go to last post
17 2,096
Lua scripting
 

SetVelocity for nextbot.

I have coded a simple zombie nextbot, and I am trying to get it to leap at a target. I am using SetVelocity() for the leap, but it doesn't seem to work. Any ideas? Thanks. Basically how I have it implemented: function ENT:ChaseTarget() local...

12th January 2015
by DropDeadTed Go to last post
2 115
Help
 

SRCDS Automatic recovery? This thread has images

I was wondering if anyone had any scripts for windows server that when my srcds server crashes it will automatically restart it?

12th January 2015
by AIX-Who Go to last post
6 85
Help
 

solved Simple Particle Creation... Quick Help :D!

Everything works beautifully! Now I just want to add a simple flame on the bonfire. The problem: I keep getting Attemped to precache unknown particle system "name of something I always put here since I dont know what" I put some notes in the Lua's...

12th January 2015
by warpavp2 Go to last post
4 42
Help
 

solved Having problems with NPC:Give()

The commands is supposed to give a weapon to and NPC, however when the NPC gets the weapon, it acts as if it doesn't have one, even if you can clearly see that it has one holding in hands, but never actually shoots it. Is this a bug with the command or am...

12th January 2015
by Masster Go to last post
10 71
Help
 

Store variable on the player?

I know I can use function ENT:SetupDataTables() self:NetworkVar( "Bool", 0, "LELELELELEL" ) end to store a variable on an entity. Now I know the player is an entity so I assume I can use these for the player too. When they join I need a...

12th January 2015
by Acecool Go to last post
8 103
Lua scripting
 

How to get player variable from server?

Hello guys, I'm running DarkRP and I've got some scripts that introduce "hacks" into the game. For example, player buys a moneyprinter. On SERVER following code is being executed: .... local rnd = math.Rand( 0, 1 ) if (rnd <...

12th January 2015
by igodsewer Go to last post
9 123
Help
 

Allow Grav gun

I have made an entity, but it cannot be picked up witht he grav gun. How can I make it so It can, Thanks

12th January 2015
by darkmist Go to last post
2 45
Help
 

solved I'm having trouble with eye traces, and trying to add to the traced entities metatable.

Here's my horrible code, I'm sure you get what I'm trying to do here. ITEM.OnPlayerCyberwareEquip = function( self, ply ) local TraceEntity = LocalPlayer():GetEyeTrace().Entity if( CLIENT ) then GAMEMODE:AddChat( Color( 200,...

12th January 2015
by meharryp Go to last post
5 99
Lua scripting
 

Error murder

TEST FOUND IN ADDON TEST TEST gamemodes/murder/entities/entities/mu_knife/cl_init.lua:40: attempt to index field 'Emitter' (a nil value) 1. unknown - gamemodes/murder/entities/entities/mu_knife/cl_init.lua:40 How to fix it?

12th January 2015
by giraff Go to last post
0 37
Help
 

Need help with chat tags This thread has images

I'm making a server with some of my friends and we cant figure out how to get chat tags that go with the ulx admin mod groups. any help would be appreciated.

12th January 2015
by darkmist Go to last post
6 68
Lua scripting
 

solved GLua Online Classroom - Learn Lua From A Person This thread has images

And finally, if you are of the attitude, "I learned GLua from wikis and taught myself, so can everyone else", you are a selfish prick and you should acknowledge that. Most people learn better from a person than from a text resource where they can't ask...

12th January 2015
by ZephyrWarrior Go to last post
35 422
Help
 

solved Prop Hunt Error

I made a fresh server, added prop_hunt, and im getting this error: gamemodes/prop_hunt/gamemode/sh_init.lua:14: attempt to call global 'IncludePlayerClasses' (a nil value) 1. unknown - gamemodes/prop_hunt/gamemode/sh_init.lua:14 2. include -...

12th January 2015
by CASAVANT Go to last post
4 43
Help
 

Chatbox Links

To start out just know that I'm fairly inept at lua but I'm wanting to get better. Something that I think would be cool to work on would be if someone posted a link in chat it could actually be clicked and then open the steam overlay. Is something like...

12th January 2015
by PortalGod Go to last post
3 64
Help
 

solved How do I wildstar when checking a string?

This is so I can check if an entity starts with node_ or something else. Like uh local findIncludeClass("bench_ ..") local findExcludeEntity(owner()) local augbench = findInSphere(entity():pos(),500) # Syntax - vector,radius

12th January 2015
by Acecool Go to last post
7 148
Help
 

solved Dynamic Light follow Entity/Repeat! This thread has images

Hey guys! I've been working my butt off with a friend on an entity that makes a sound when used and lights up! However; the entities light will not follow it! And secondly the light only lasts ONCE. And is never again found! Can someone take a...

12th January 2015
by warpavp2 Go to last post
19 190
Help
 

Sandbox Disable PVP when in Godmode

Im not sure how to disable PVP when a player is using godmode. Im using ULX and im having a hard time trying to find something to fix this. Any help is appreciated!

12th January 2015
by Acecool Go to last post
3 59
Lua scripting
 

[ERROR] gamemodes/terrortown/gamemode/vgui/sb_team.lua:81: attempt to perform arithmetic on field 'Width' (a nil value)

gamemodes/terrortown/gamemode/vgui/sb_team.lua:81: attempt to perform arithmetic on field 'Width' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/vgui/sb_team.lua:81 This is an error coming from a script for a ranked TTT scoreboard on my...

12th January 2015
by djmuz Go to last post
9 146
Help
 

[Debian 7.0] Segmentation Fault when connecting Steam Workshop

Hey guys, I'm trying to run my dedicated server on my VPS with darkRP, everything works fine with this srcds_run command line: ./srcds_run -console -game garrysmod +maxplayers 100 +map rp_downtown_v4c_v2 +gamemode darkrp +sv_kicknumerrors 0 But...

12th January 2015
by Splatpope Go to last post
4 75
Help
 

solved Help modifying a SaySound addon This thread has images

I've been using a saysound addon for my server for a while. It's a great little file but I'm now looking to modify it. The way it currently functions is that it uses Player:EmitSound to play a custom mp3 file, which means that the sounds have a maximum...

12th January 2015
by DrKinkyKinkles Go to last post
6 133
Help
 

Cam3D2D Angle This thread has images

How would I rotate the cam2d3d 90 degrece so Its like a panel What I got so far cam.Start3D2D( self:GetPos()+(self:GetAngles():Up()*7), self:GetAngles(), 0.05 )

11th January 2015
by darkmist Go to last post
4 79
Help
 

Rotate Suface.DrawText?

Is it possible to ratate this, Im using cam2d3d and the text is rotated the wrong way

11th January 2015
by Exho Go to last post
1 73
Lua scripting
 

solved Making clock timer

My gamemode uses timer system which starts from gamemode initialization and decreases depending on CurTime(), however when I want to display remaining time it only shows seconds, so I need to convert it into minutes:seconds. Here's a bit of the code : ...

11th January 2015
by Masster Go to last post
2 40
Help
 

solved Changing weapon model

Hello, So what I am trying to do is from the pointshop allow a user to choose a model for their knife (for murder). I am using networked strings and it sends/receives the data fine except I can not declare what player the network string is looking for...

11th January 2015
by zerf Go to last post
3 55
Help
 

Change material of weapon in firstperson

I'm trying to change the material of a players weapon, and so far I've managed to change it in thirdperson by doing: LocalPlayer():GetActiveWeapon():SetMaterial("models/humans/female/group01/joey_facemap") but I can't figure out how to change it in...

11th January 2015
by zerf Go to last post
2 74
Lua scripting
 

Pointshop give points spectators

I need to prohibit the issuance of a spectators points, how do I do?

11th January 2015
by giraff Go to last post
4 96
Help
 

Cam2D3D help

Hey guys, I Need to use cam2d3d but even looking the wiki documentation i dont fully understand it, Does someone have a link to a good tutorial or something. Thanks :)

11th January 2015
by darkmist Go to last post
0 35
Help
 

solved Binding action to a key for specific gamemode only

I want to set a key( for example B ) to perform specific task but since GM:KeyPressed() uses only IN_ keys I can't bind it to B. Is there a way to set a specific key to do a something for a specific gamemode only?

11th January 2015
by Acecool Go to last post
1 33
Help
 

Need Lantern that runs out (PS Item)

Looking to have this: http://steamcommunity.com/sharedfiles/filedetails/?id=132470017 As a Pointshop item that I can use on Hide and Seek but it has limited uses or can be used for only a certain amount of time and then there is a cooldown. If...

11th January 2015
by Acecool Go to last post
3 94
Release
 

ColorOO -- An object-oriented approach to Color() This thread has images

Hello everyone! I am releasing another project publicly on GitHub that I've worked on over the last couple of days. Like my netwrapper project, the MIT license is used so that you can freely modify and distribute the project as long as you retain...

11th January 2015
by Mista Tea Go to last post
33 1,407
Help
 

solved Trying to make a function that returns true when an entity is found in FindInSphere

yeah, thanks in advance. It's been what I've been fucking with for the past like twenty minutes. function IsNearRobobench() local _ents = ents.FindInSphere( LocalPlayer():GetPos( ), 2000 ) -- Here we loop through every entity the above...

11th January 2015
by zerf Go to last post
5 85
Help
 

3D Car Dealer Error

I may have changed a few settings in the lua files, and now im not sure how to fix it. Error: addons/3d_car_dealer/lua/autorun/3dcardealer_shopvgui.lua:479: bad argument #1 to 'SetText' (string expected, got nil) 1. SetText - :-1 2....

11th January 2015
by Netheous Go to last post
2 73
School
 

LUA Coding tutorials?

I'm trying to learn how to LUA code because I want to make a few entities. I've been on the http://wiki.garrysmod.com/ website for awhile and it helps with basics and understanding certain hooks, classes, etc. But there are still things I'm not certain...

11th January 2015
by bobbleheadbob Go to last post
10 239
Help
 

NEED HELP mounting css to gmod dark rp

I have followed every tutorial to the t or whatever letter you want but I have followed it and I cant get it to fucking mount why wont it MOUNT?!?!?!?! please help I can Skype and share screens with you my Skype is moore.james94

11th January 2015
by Bob_Dylan Go to last post
5 105
QUESTION
 

Pac3 Public Outfits?

Hey, I've recently started using Pac3. I came across an issue earlier, since this code is client-side, it means only the client can see it: if CLIENT then pac.SetupENT(LocalPlayer()) LocalPlayer():AttachPACPart(outfit)

11th January 2015
by [CLRP]extra Go to last post
10 195
Help
 

TTT & On Fire Spectators

I'm currently having an issue when players die from fire, they continue burning while they move into spectate in Trouble in Terrorist Town. When the move to spectate a player, that player then catches fire and starts burning. I think people who...

11th January 2015
by stupid- Go to last post
0 36
QUESTION
 

NPCs Fighting an Entity

Trying to figure out if there is a way to command a standard NPC to attack an entity, like a prop or a Nextbot. Is it at all possible?

11th January 2015
by KevinnTCG Go to last post
1 50
Help
 

solved LUA Stop Sound from Looping and Remove Sound upon Entity Removal

Does anyone have a method of achieving this? So far I made my entity, when used it emits a sound. But the sound NEVER goes away. It also repeats itself when it's done (a type of loop) I just wanted it played ONCE. I have it set so you cannot SPAM...

10th January 2015
by warpavp2 Go to last post
8 66
QUESTION
 

Ar2 ALTFIRE

altfire for ar2? how to get the code?

10th January 2015
by Robotboy655 Go to last post
3 70
Lua scripting
 

PointShop Admin menu

I was wondering if there was a away to make the admin menu on viewerable to custom made ranks and not super admins and admins. please help Thanks in advance :D

10th January 2015
by freshmintyy Go to last post
1 68
Lua scripting
 

Lighting

Is there no way to lower ambient lighting beyond the "a" style of light_environment? ent:Fire("SetPattern", "a") On a light_environment entity does not make the world as dark as I want. ent:SetKeyValue("_ambient", "255 255 255 10")

10th January 2015
by RealDope Go to last post
8 201
Help
 

Where to get started with 1st Person and 3rd Person Animating?

So I've recently been looking into custom sweps, and was curious about something. If I added a custom model to Garry's Mod, to keep it simple, a basketball. To which I then made into a custom swep that the player could equip. How could I make it, so...

10th January 2015
by HyperShifter Go to last post
9 92
Lua scripting
 

Best way to learn Garry's Mod LUA?

I already know all of the LUA syntax I am looking for the best way to learn Garry's Mod LUA, I don't care how long it will take. As long as it gives me the required information on how Garry's Mod LUA is used.

10th January 2015
by Acecool Go to last post
6 145
Help
 

Comet-Like Effect This thread has images

I'm not that good at effects and how exactly to make them work. So right now I'm a bit stuck on what to do next. I'm trying to achieve an effect like the ones in the picture below. I have already made an animated sprite trail which works pretty good, and...

10th January 2015
by Acecool Go to last post
3 103
Release
 

tmysql4 wrapper ( 2 Last ) This thread has images

This is a simple wrapper for tmysql, originally made by thelastpenguin for mysqloo, updated by me so we could replace mysqloo with tmysql on our servers. I didn't see much out there for tmysql so I thought I'd might aswell release this. To use place...

10th January 2015
by StonedPenguin Go to last post
41 1,773