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

Binding a key for all of my server?

I know some server have done this, such as pressing q would put you into thirdperson instead of dropping a weapon. how would you do that?

23rd May 2014
by Acecool Go to last post
6 204
Help
 

Need help (Lua errors!)

Hello! I recently began learning of LUA language. Unfortunatelly I have created idea of FAQ Menu for server. There are LUA errors starting from 60 line: local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetPos( 50,50 ) DermaPanel:SetSize( 800,...

22nd May 2014
by Jewno Go to last post
3 113
QUESTION
 

solved AddCallback still not reporting collision data correctly?

Hey people, recently i've stumbled upon a problem with the AddCallback function. I am currently working on a custom damage system for vehicles in my upcoming gamemode and have got it working... mostly. I don't want it having damage caused by players...

22nd May 2014
by stevob21 Go to last post
2 92
Help
 

Empty Spawnicon This thread has images

I remember I was able to make empty Spawnicons by doing something like this SpawnIconObj:SetModel() But now it just makes this

22nd May 2014
by Robotboy655 Go to last post
1 88
Help
 

solved Problem regarding class

TEAM_SAINTLOCKS = DarkRP.createJob("Saints Lockpicker", { color = Color(201, 26, 190, 255), model = {"models/player/group03/male_02.mdl", "models/player/group03/female_05.mdl"}, description = ], weapons = {"weapon_lockpick"}, command =...

22nd May 2014
by Milkshaker Go to last post
2 65
Lua scripting
 

solved Consumable entites This thread has images

Hey guys. I'm new to the lua coding scene and I have a question about some code. I'm running darkrp and I've put in cocaine shipments. Here is the code for the cocaine. function ENT:Use( activator, caller ) self:Remove() if (...

22nd May 2014
by Nookyava Go to last post
3 175
Help
 

sv_ and cl_

Hey guys, currently i cant get a window to pop on my screen for some apperant reason. This is my sv_ util.AddNetworkString("testing_jobs") function showjobs(ply,text) print ("s") if text == "!jobs" then print("I am after the check")...

22nd May 2014
by tzahush Go to last post
22 521
Help
 

MySQL or Sql Lite? This thread has images

Hey guys. I am starting to develop my own RP GameMod, So I wanted to ask you guys, what do you think would be better? MySQL or SQL Lite?

22nd May 2014
by Willox Go to last post
20 508
Help
 

Send timer from server to client

Hello I'm trying to send a timer, that will update hourly, from the server to the client, but i'm getting massive erros, yet i don't see what i did wrong (i'm pretty new at coding lua) I'm getting about a thousand of these: ...

22nd May 2014
by merkerr Go to last post
19 239
Help
 

Weapon Model Repositioning Error

I've been scripting and editing a few weapons on the game mode Trouble in Terrorist Town (TTT) please keep in mind that I'm fairly new to LUA, and I've come to an end with this one error. I play with friends privately, server hosted via hamachi, and...

22nd May 2014
by DropDeadTed Go to last post
10 267
Help
 

solved works on another gamemod.

hey guys, i got an HUD that works on DarkRP, but didn't work on mine. I am getting this error: gamemodes/***/gamemode/modules/cl_hud.lua:5: attempt to index global 'surface' (a nil value) 1. unknown - gamemodes/***/gamemode/modules/cl_hud.lua:5 ...

22nd May 2014
by tzahush Go to last post
3 63
Help
 

Help: Pointshop OnBuy(ply) Function

You know every time you buy an Item in Pointshop it automatically equips, I want to prevent that, I tried a lot but nothing seems to work. Anyways this is my current Script //which doesn't work By The Way could someone tell me why the script don't...

22nd May 2014
by deinemudda32 Go to last post
17 222
Computers
 

SWEP Base Creation Question

Hey. I've been coding lua for 2 years, and have just started to code in source games. I have recently shifted my gaze to an ARMA style gamemode, which has been going along fine. I like to watch tutorials to learn how to get into a new subject, but I've...

22nd May 2014
by Subject_Alpha Go to last post
1 102
QUESTION
 

solved chat.PlaySound() Error

Hi, I am having an issue with chat.PlaySound(). It plays the sound perfectly fine for those who have CSS mounted, but without CSS, the client would return: This error can cause noticeable lag for those without CSS mounted, as it is played on...

22nd May 2014
by tzahush Go to last post
1 65
Stupid
 

Exploit in darkrp weed plant plugin

Hey, I have found an exploit in a darkrp drug plugin like 3 months ago. Unfortunately it still isn't fixed and the plugin is still being used on many servers. The exploit allows you to remove player entities (possibly all entities) on the server....

22nd May 2014
by Nak Go to last post
3 391
Help
 

Possible to alter "Map Differs from Server Map" message?

Was wondering where (if possible) you can edit the message people see when their map differs from the server so that I could add instructions or a quick little blurb for people who get that. thanks!

22nd May 2014
by Willox Go to last post
9 186
Help
 

making jobs for custom gamemode

Hey guys, After a few questions got answered, i understood i should make my jobs in a table, which the syntax be like this: Now to my question, How would i save the jobs? Lets say there is a menu that has set up the players job, how will i save it on...

22nd May 2014
by Netheous Go to last post
6 162
Help
 

Ent:SetFriction() Does not seem to work

Hi forum, Yesterday i made my new tool, for Modding the Ent's Surface friction. So far I have Reference here: http://wiki.garrysmod.com/page/Entity/SetFriction TOOL:LeftClick(Trace) -- Indeed checking for a Valid Phys prop ... then ...

22nd May 2014
by tzahush Go to last post
2 160
Help
 

Setting color of meshes

I'm currently working with meshes, but I can not set the color of it for some reason. With the code below the mesh is white no matter which numbers I pass to render.SetColorModulation(). I've also tried to set the color when using the material...

22nd May 2014
by BlackVoid Go to last post
0 88
Help
 

Best method to draw.DrawText with cam.Start3d2d

So I am making various information boards on my server using draw.DrawText with cam.Start3d2d (see code below). With this method though, I can notice some FPS drop. Is there another way of doing it that might cause less FPS drop, or is that the only way...

22nd May 2014
by AlphaBarney Go to last post
2 126
Help
 

Pointshop help

I am trying to make it where when you buy this point shop addon it changes your material, I got it to do that but Im not sure how to make it revert back. :l Im looking for the code on holster to revert to normal material. this is what I have, I am a far...

22nd May 2014
by Marquis Go to last post
4 123
Help
 

solved Close But No Cigar With This Code

I am trying to make a bandage item for traitors on my TTT sever. This code is supposed to, after purchase, say You start to apply bandages. Then after 10 seconds, it says You successfully applied bandages. Then it would set a players health to 100....

22nd May 2014
by nikorev Go to last post
10 215
Help
 

solved Freeze phys deathrun code help

so I have this script which is suppose to freeze the grenades on the map so they do not fall this is what I have. The error lua/autorun/fixphys.lua:1: attempt to index global 'GM' (a nil value) 1. unknown - lua/autorun/fixphys.lua:1

22nd May 2014
by fast0nitro Go to last post
3 62
Help
 

TTT AddColumn Help This thread has images

I've made additions to Rejax's EasyScoreboard, but I've been trying to get silkicons to work smoothly. Note that I am using the latest update on Github which allows width adjustment. Current issue: Another issue I'm coming across is when I change...

22nd May 2014
by SaintSin6 Go to last post
2 157
Lua scripting
 

Round system?

Is there any function of some sort for rounds in gmod? or would this be something I would have to code myself from scratch?

21st May 2014
by crazyscouter Go to last post
1 115
Help
 

Making an entity 'track' a player

So I'm attempting to have an entity face/track a player as he/she moves using the following code (This code isn't exactly what I'm using. I've changed small bits to help readability) local AngDifference =Angle((self:GetPos().y -...

21st May 2014
by Dgc2002 Go to last post
2 209
Help
 

Mana System

Hello, so I have been trying to use net messages and I've been getting various problems whilst trying to create a sort of mana system that will set the player's mana to a number, get the player's current mana for drawing part of the hud, and...

21st May 2014
by Apple_Bloom Go to last post
5 233
Help
 

Crash on round start

I have came across an issue that seems to be quite a bitch. It basically crashes the server on the round start (TTT). I have no idea what is causing it as there seems to be no lua errors or console indication. Thanks in advance to anyone that helps.

21st May 2014
by Baron von Hax Go to last post
5 131
Lua scripting
 

ULX spawn command This thread has images

function ulx.spawn(calling_ply, target_plys) local affected_plys = {}; for k,v in pairs(target_plys) do if !v:Alive() then v:Spawn(); table.insert(affected_plys, v); end; end; ulx.fancyLogAdmin(calling_ply, "#A воскресил #T",...

21st May 2014
by Aeternal Go to last post
13 306
Help
 

making hooks

Hey guys, I was wondering, How do i make my own hooks? I am currently working on my own gamemod, and was wondering how to make my own custom hooks. I want to make a hook which checks if a player changed his job, So how would i do that hook? Thanks.

21st May 2014
by Netheous Go to last post
12 295
Lua scripting
 

Workshop FastDL forces content download even if installed

Currently the resource.AddWorkshop file forces players to download all the content even if the player has the addons installed/subscribed. I would like to have the server check to see the player has them installed so that the join time would be faster...

21st May 2014
by tttwebsite Go to last post
2 125
Stupid
 

solved Lua references?

Anyone have a link to a good reference page I can look at I know that wiki is there but have read it is somewhat out of date?

21st May 2014
by LoGiCKzZ Go to last post
3 49
Help
 

Adding player models to Server

Hey, So I develop on a TTT server and I am running into some issues when it comes to Adding new player models to the game. When i download a model off the web, i place all the folders in the right places for directories. This includes adding the...

21st May 2014
by UnholyBound Go to last post
0 79
Help
 

Needing help with this.

Can anyone tell me where I messed up? Here is what the error reads. gamemodes/gamemode/gamemode/cl_init.lua:10: ')' expected near 'I' 1. Unknown - gamemode/gamemode/cl_init.lua:o Couldn't load init script:...

21st May 2014
by LoGiCKzZ Go to last post
5 133
Help
 

solved Resetting Text Above Players Head (Reverts back after 5 seconds) This thread has images

I am trying to create a text above the players head that shows their "Role" they currently are. It works great but when changing roles it displays that you have changed and shows the correct role name but only for a certain amount of time before it...

21st May 2014
by MGCLegend Go to last post
2 117
Lua scripting
 

solved Ent . Create *Advice/help*

Hi guys I need some advice with the subject of end.Create. So let me try to explain to what I want to do, and see if anyone has any idea's on it. I have a Swep which when you fire it create a smoke entity. I have given it a timer. So when you run...

21st May 2014
by DubyxD Go to last post
15 205
Help
 

Mapvote for Zombiesurvival server!

Hello everyone! First, sorry for my english, i'm french. ^^ My problem is, my server won't to create the mapvote a the end of the zombiesurvival... I use this addon, (i place it in server/garrysmod/addons) I have already changed the prefix selection...

21st May 2014
by thelastpenguin Go to last post
13 210
Help
 

Shop addons working on ZS?

Hello! I'm looking for shop addons working on zombiesurvival! I know PointShop but i didn't like PS. Thx :)

21st May 2014
by thelastpenguin Go to last post
2 94
Lua scripting
 

Runescape based gamemode

Hey guys, so I have been thinking I might start a long-term project of making a Runescape based gamemode, the list below shows some of the basic requirements I would like the gamemode to include: Runescape GMOD gamemode requirements: - Create the map...

21st May 2014
by Nookyava Go to last post
14 532
Help
 

Is there an alternative to Entity:SetModelScale() for players? Attack on Titan Gamemode

Entity:SetModelScale() doesn't resize the hull, but it resizes the bounding box. So basically the super large player can still get attacked, but if the player gets shot by an entity like a rpg or a hook weapon the entity wont collide. To fix that I set...

21st May 2014
by Valve Software Go to last post
2 132