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

need help about events and hooks

local MyHookFunction = function() if LocalPlayer():KeyDown(IN_ATTACK) then Msg("I'm attackin ya!\n") end end hook.Add("Think", "My button hook", MyHookFunction) when i press left click it gives me an error i want to print...

9th July 2015
by EmileGaillard Go to last post
5 186
Help

solved VAC not working on server!

Hey Guys, So im using srcds.exe on windows server and i start my darkrp server up with the VAC box ticked. And its not showing in the server browser for people to connect. Please help me :) Thanks

9th July 2015
by CharbelK Go to last post
10 297
Help

Please Help! (Server Issue)

I am making a 1942RP but I am using the gamemode darkrp I want it to say 1942RP in the menu but still have the darkrp gamemode (I have renamed the darkrp gamemode folder & darkrp.txt to 1942RP and changed it in the commandline and config files but...

9th July 2015
by The Commander Go to last post
8 253
Help

Stencil for TTT Help

I heard from a friend that stencils could be used for a certain think I need help with For TTT I want to make Unidentified Bodies be highlighted in a color, for like spectators that are dead, to see color and stuff. But I can't figure out a code or...

9th July 2015
by Zet0r Go to last post
1 224
Help

solved Other viewmodels

I'm trying to make one of the other viewmodels popup for a SWEP, but I've got no luck. This is the code I'm using: function SWEP:Deploy() self.Owner:DrawViewModel( true, 1 ) local vm1 = self.Owner:GetViewModel(1) vm1:SetModel(...

9th July 2015
by CGNick Go to last post
0 129
Lua

Clockwork Base Gamemode bug

Hey, I posted over on C16's forums but they're down for maintenance. But I wanted to know why Clockwork and HL2RP RP arn't working together. Paste bin of console logs are below. http://pastebin.com/WNrbcP2Z The files are in the server, and Clockwork...

9th July 2015
by code_gs Go to last post
9 404
Question

solved What is the right equation to calcule the needed vector velocity to send a player at?

I am trying to find out the needed velocity in vector form to send a player at with only knowing the players position, target position, time, distance, and height. I had something that seemed correct but apparently it is to weak. I tried powering it...

9th July 2015
by bran92don Go to last post
4 261
Help

FPP - Unknown Command?

Unknown command "_FPP_GLOBALSETTINGS1_cleanupadmin" Unknown command "_FPP_GLOBALSETTINGS1_antie2minge" Unknown command "_FPP_GLOBALSETTINGS1_cleanupdisconnected" Unknown command "_FPP_GLOBALSETTINGS1_cleanupdisconnectedtime" Unknown command...

9th July 2015
by dbrbb Go to last post
0 169
Help

Custom f4 Menu Showing Unpurchasable Weapons/Shipments/Entities

I have a custom f4 menu but it shows things you cannot buy, how do i fix it? 9th July 2015 My console also gets spammed with this error addons/darkrpmodification/lua/darkrp_modules/f4menu/cl_f4menu.lua:45: Tried to use invalid object (type...

9th July 2015
by QuantumForce_ Go to last post
2 152
Help

Simple velocity hud example?

Hey i just need a simple velocity hud example i know how to get the players velocity i just cant get it to basically work like this velocity hud for the new deathrun gamemode http://facepunch.com/showthread.php?t=1473855

9th July 2015
by CertifiedCode Go to last post
5 270
Help

solved Whats wrong with this?

So recently I've been trying to implement a smoke grenade explosion sound. I added this to weapon_ttt_smokegrenade.lua function explosionsound() local weedsound = Sound("sound/weed/smokeweedeverday.wav") sound.Play(weedsound, self:GetPos() )...

9th July 2015
by norriskirby Go to last post
4 181
Lua

Way to prevent Nextbots from being forced to ground?

Is there a way to prevent Nextbots from being forced to the ground constantly? Need a small nextbot to be parented to a larger one without dropping to the floor

9th July 2015
by MysticLlama Go to last post
0 123
Help

solved Notification Help

So how can I make this code better like with math.random so one will randomly say it in 6 minutes a new one will come? timer.Create( "Timer", 300, 0, function() chat.AddText(Color(255,255,255)," Want to remove the UI? Do cl_showhud 0 and...

9th July 2015
by Robotboy655 Go to last post
1 147
Question

Referencing external tables from includes

My main.lua was getting quite large and cluttered so I decided to section parts of my code into external .lua files just like a web developer would have an external .css file. My code works fine when all in one massive file but when I try to separate the...

8th July 2015
by James xX Go to last post
5 256
Help

.gma extractor

yo, trying to extract some .gma files but it isn't working, it's giving me the error: '"There was an error parsing the file" "header mismatch" someone enlighten me pls thx <3

8th July 2015
by Azzz Go to last post
4 640
Lua

solved "Gladiator" Gamemode

Hello people, I'm working with my friend on a gamemode "Gladiator". A fighting mode like it hasn't been made for gmod yet. For this we could use help from a coder! We can code ourself aswell but we are working on multiple things for example:...

8th July 2015
by Rinaldo208 Go to last post
3 224
Lua

solved Saving credits / money in a gamemode for Gmod

Sort of new to Lua scripting for Gmod. I made a game mode a while back that uses the meta functions for points... But I'm hopping back into Lua, and want to go a little further. I want to create a credit / money system that saves. So every time a player...

8th July 2015
by bosnian_cyco Go to last post
2 351
Help

Looking for someone to help make a player model

I have a model on my PC and I want to make it into a player model. The problem is that I don't have much experience and the model is quite short (Conker from Conker's Bad Fur Day). If anyone could help I'll give you credit in the upload. Thanks.

8th July 2015
by Gedo789 Go to last post
1 176
Help

solved Timed/Automatic Server Chat Text

Hey Guys, So i want to make a script that automatically sends messages in the server chat, with Laaaalaaallaaa . Something like that, and I have no idea where to start. Can you assist me please? Thanks, CharbelK.

8th July 2015
by CharbelK Go to last post
20 453
Question

solved FastDL - Windows Server - Garrys Mod

Hey Guys, Do you know any software that will help me find and sync files for fastdl on a Windows Server 2012 R2 Edition? Even if its not software, just a way to find the files that require it and to set it up would be great! Thanks. Thanks,...

8th July 2015
by CharbelK Go to last post
10 378
Lua

DrawMaterialOverlay problem

Hello, I'm currently trying to change the overlay while shooting with a SWEP. The problem is the following line : self:GetOwner():DrawMaterialOverlay("effects/invuln_overlay_red", -0.01) This outputs me the following : attempt to call method...

8th July 2015
by rameleu Go to last post
1 157
Lua

Entities help

I am just here to ask how can i make it so an entity is too heavy to be picked up in some pocket. I am wanting to do this for the arcade add-on on coder hire. Thank you in advance.

8th July 2015
by topman16 Go to last post
2 120
Help

solved Using file.Read properly

This is probably really simple but i can't think at the moment. Anyway what i have done is saved some data to a .txt file using data = { level = ply:GetNWInt("level"), xp = ply:GetNWInt("xp") } file.Write( userDataFile, util.TableToJSON( data ) )...

8th July 2015
by APN Faulty Go to last post
2 217
Help

Adding a velocity hud element to the fretta hud for a new gamemode :?

Hello I am fixing up this old gamemode to put it up on a new server and im using fretta13 the main hud code is this function GM:UpdateHUD_Alive( InRound ) if ( GAMEMODE.RoundBased ) then local RoundNumber = vgui.Create( "DHudUpdater"...

8th July 2015
by CertifiedCode Go to last post
3 191
Lua

solved get an RPG to fly to a specific location?

upon spawning a "rpg_missile", how can i get it to fly to a position i want it to get to?

8th July 2015
by MadParakeet Go to last post
2 236
Work In Progress

ScriptHire - We, create your Servers

ScriptHire - We, create your Servers This Service should make the process of creating a Server much easier. There are 4 Simple steps. - Get in touch with us via our Website - Discuss about your idea - We make the Server for you - Pay This...

sascha8a Thread has images Dumb x 33
8th July 2015
by circuitbawx Go to last post
18 818
Help

Donation Help

I need some help with setting up my automatic donations. In the config file of my donation script is the following: PAYPAL_SANDBOX - MySQL Server IP Address. PAYPAL_ID - Your email that you use to log in to you paypal account. PAYPAL_ID_SANDBOX - Put...

8th July 2015
by samm5506 Go to last post
1 167
Help

Client Crash Happening to multiple players on my server

There doesn't seem to be anything specific causing it from what I can tell, no Lua errors, nothing, but some clients have been crashing with the error "GetLuaTable != TABLE! Type is: 22". I'm not sure what this is. I read it was some sort of Engine error...

8th July 2015
by xthenarwhalx Go to last post
2 154
Help

ACF Aerodynamics /w Fin2

Hey, I am just wondering exactly how I use Fin2 to better stabilize my ACF vehicle. I have gotten it to stabilize a bit by adding vertical plates on both sides with a strong fin value, but it doesn't to enough. Is there a practical way to use fin for...

8th July 2015
by flyingspatula Go to last post
2 145
Help

Nutscript Help

Hi, sorry to bother everyone but is there an auto-whitelist plugin out there for nutscript 1.1 ? if not could someone assist with how to go about doing it as I'm not familiar with the nuscript hooks and classes :/

7th July 2015
by BeZerk Go to last post
4 271
Games

Bind player's key?

Hello guys. I'm trying to bind the keys (1 2 3 4 5 6) like on ulx votemap. But I have no idea how to do. Can anyone help me?

7th July 2015
by YourStalker Go to last post
7 319
Lua

solved Player footstep sounds stoped when shift is held

When the player presses shift i want it to produce no footstep sound but when they are walking you can still hear the sounds. What i have at the moment dont work because it wont let me index "input" command local input = input function...

7th July 2015
by robheadshot Go to last post
2 173
Lua

DCollapsibleCategory is not re-open able

Hello, I was playing around a bit with the DCollapsibleCategory, it works fine, except when I close it, and reopen it, then its bugged, it wont open, but instead get half the normal height. heres the code: local function frame() local frame =...

7th July 2015
by whitestar Go to last post
6 381
Question

making a command that runs other commands

is there a way to make a command that runs other commands when used. if not how do people make game modes in ttt such as tdm and free for all.

7th July 2015
by geferon Go to last post
14 506
Help

Loading Screen Problem

Hello! I am having a problem with my loading screen. For some reason when players join the server they do not here any music at all they only see the photo. But, when you view the loading screen on a webpage you see the loading screen with music. ...

7th July 2015
by Rockit14 Go to last post
5 184
Lua

solved SWEP - How to get the target of a shot ?

Hello, I would like to know how I can get the target of a shot via a SWEP, so I can change his skin after the shot has been fired. Thank you for your help, Rameleu

7th July 2015
by rameleu Go to last post
2 152
Help

solved ent:SetAngles(self.Owner:EyeAngles()) HELP!

I am trying to rotate my x direction 90 degrees from my eye angle. This is the code I have now ent:SetAngles(self.Owner:EyeAngles() , but my model comes out sideways when I shoot it. Can I read the eye angles then rotate the x 90 degrees?

7th July 2015
by PrestoMagic91 Go to last post
2 207
Games

CS Like nightvision?

Hello guys. I'm making a gamemode which requires a nightvision. There's anyway to do that?

7th July 2015
by Nicksf13 Go to last post
11 623
Help

Generate navmesh on map load.

I am trying to generate a navmesh for a map via navmesh.BeginGenerate(). If you call the function with no walkable seed it throws the following error: "No valid walkable seed positions. Cannot generate Navigation Mesh.". So the logical conclusion for me...

7th July 2015
by Lolle Go to last post
2 293
Help

solved file.Write Problem

Hello everyone Help, this script does not work there are no errors. Where am I wrong? net.Receive( "pKeysGenerateKey", function( len, ply ) --Only continue if the player has correct permissions if not table.HasValue( pKey.permissions,...

7th July 2015
by godred2 Go to last post
4 234
Help

solved CSS Swep problems and making gmod more like css.

I have these sweps on workshop http://steamcommunity.com/sharedfiles/filedetails/?id=187933083 and on my css map they spawn in properly but when i pickup 1 of the weapons for example a Ak-47 if i pickup a Ak-47 and i go walk over more Ak-47's it gives the...

7th July 2015
by CertifiedCode Go to last post
5 185
Lua

solved Gamemode Encoding question... GLON, JSON, KeyValues, etc.

I'm trying to encode a table to a text file. This worked perfectly well with KeyValues, but having the table contain a function is another story. KeyValues fucks up the function and it just wont work. The table looks like so: local table = { ...

7th July 2015
by Inevitibility Go to last post
7 446
Question

Make an NPC entity?

Hey I've been trying for hours and can't find a guide or anything.. How do I make an addon with an entity spawnable in the Q menu? I only have experience with creating gamemodes, so I'm clueless here. I have an addon with addon.txt and...

7th July 2015
by Triage Go to last post
1 605
Help

Pointshop multiple models 1 item

So I've been making tons and tons of items for _Unidefined's pointshop for my server and I used pointshop 2 for a while but removed it because it's a piece of scheit that causes client side crashes. But I had a number of items I'd like to recreate one of...

7th July 2015
by JasonMan34 Go to last post
1 179
Help

CBaseEntity unreasoable position

Since the last update this is spammed in my console: CBaseEntity::SetAbsOrigin( 2329.082520 1646.169067 -470774.593750 ): Ignoring unreasonable position. CBaseEntity::SetAbsOrigin( 2329.082520 1646.170654 -470798.781250 ): Ignoring unreasonable...

7th July 2015
by code_gs Go to last post
3 317
Help

Where can I get this scoreboard?

Can someone please help me to find out how I can get this scoreboard?

7th July 2015
by Pawsative Go to last post
1 166
Question

MoveTo issue for MAC users

Hello. I have a menu system set up to where the menus come from outside the screen and move to the center of the screen when f4 is pressed. Normally PC players press the f4 button and the menu moves to the center of the screen just fine. However, when Mac...

7th July 2015
by Holywiremod Go to last post
3 167
Help

Gamemode Questions

Okay so instead of making a new thread, ill just edit this old on with the same idea 1) Can I make shop NPCs have voices? And also when use can they only play the voices to the player using them? And can I have certain voices played only once to a...

7th July 2015
by Breadcat105 Go to last post
2 162
Request

fix these exploits (running blocked console commands)

First exploit (found by Willox): Code: get gmsv_askconnect require("askconnect") _R = debug.getregistry() -- fuck your findmetatable function _R.Player:RunCommand(cmd) self:AskConnect("\n\n" .. cmd .. "//") -- how it works: AskConnect issues...

7th July 2015
by Willox Go to last post
9 695
Help

solved Chat Tags

Hello, i'm trying to make the "" parts white like this: Color(255,255,255),"" But, when I try it on here it wont work. local ranks = { = {Color(85,0,150), " "}, = {Color(202,228,33), " "}, = {Color(180,50,100), " "}, =...

7th July 2015
by FiBzY Go to last post
3 183
Lua

Clientside models parented to a viewmodel

Question, is there any way I can create a clientside model with the function of the same name then set it's position and angles? Basically I want to create a clientside model and bonemerge it to a part of my SWEP, but I don't want to use the SWEP...

7th July 2015
by MegaTronJohn Go to last post
2 138
Lua

Variable loadout

Hey I created a menu with a DComboBox. I have it set to do this: PrimaryDrop.OnSelect = function( panel, index, value ) LocalPlayer():SetNWString( "primaryWeapon", value ) end So basically, when they click the option in the dropdown, it'll...

7th July 2015
by crazyscouter Go to last post
4 267
Question

How can I create paint/water in a optimal way?

I was trying to make some weapons from Splatoon the game and I am trying to see what way is the optimal way of doing it. Basically I have a gun that causes decals to appear on the map and I need the decals to stay there; My issue is I know there is a...

6th July 2015
by bran92don Go to last post
9 538
Help

solved Autobind Keys

Hello everyone! First of all, sorry for the potential mistakes and sorry for posting this thread. I am a beginner at lua coding and I only know the very basics. I have decided to come here after a TON of research on the internet to find a solution to...

6th July 2015
by wh1t3rabbit Go to last post
1 225
Help

GMOD TTT - Pointshop Weapons?

Does weapons in the pointshop do any good on a TTT server? How do you get your weapons you purchase from the Pointshop?

6th July 2015
by YourStalker Go to last post
14 4,671
Help

DarkRP "Weapon is unavailable"

--] // PISTOLS // AddCustomShipment("Colt 1911", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 3200, 10, false, 0, false, {TEAM_GUN}) AddCustomShipment("Colt 1911 Single", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 350, 1, false, 350,...

6th July 2015
by Baksus Go to last post
1 309
Help

Needs a host for a server!

Hi! i need someone to sponsor me with a gameserver or a VPS/Dedi. Talk more on skype dozl99 or steam steamcommunity.com/id/treven1

6th July 2015
by wamo Go to last post
1 180
Lua

Problem with using ply " Attempt to index local 'ply' (a nil value) "

function ENT:CreateMoneybag() if not IsValid(self) then return end local MoneyPos = self:GetPos() + self:GetForward()*18 local amount = self.PMoney local amountBanker = self.PMoney - (self.PMoney * 0.15) local amountPlayer = self.PMoney -...

6th July 2015
by zazira Go to last post
2 271
Help

solved Сertain date

Hi everyone Tell me how to do that: April 27 in 12:00 PM to activate this script: RunConsoleCommand("ban","Vesey231234") http://wiki.garrysmod.com/page/os/date

6th July 2015
by godred2 Go to last post
3 157
Lua

solved Using tables with string.sub

So I have this code to hide ulx commands from popping up in the chat function tphide( ply, text, public ) if (string.sub(text, 1, 3) == "!tp") then -- If in chat the ply says !tp return("") -- hide it from chat. end end hook.Add(...

6th July 2015
by JasonMan34 Go to last post
3 157
Stupid

render.RenderView Highlighting?

Hello, I wanted to ask, if its possible to highlight on the render.RenderView, as in mauritsTV theres a small example for an radar, but I'd like to highlight like friends on it green or so, just asking.

6th July 2015
by whitestar Go to last post
0 167
Lua

Need some help with animations

I'm working on making the M60E3 from FA:S 2 in Gmod using Spy's FA:S 2 Alpha SWEPS base. Everything seems to be working fine except for some animation bugs I'd like to sort out. Right now, when the gun has, say, 2 bullets left in it, it looks like...

6th July 2015
by YourStalker Go to last post
1 137
Question

solved Setting point_hurt damage owner

Anyone know how to set the damage owner of point_hurt entites? I tried SetOwner on the point_hurt entity, but that didn't seem to work.

6th July 2015
by thegrb93 Go to last post
6 203
Help

solved Help with DDOS and RCON Password Theft!

Hey, today my linux root server got DDOSt the first time. I added the attackers to iptables etc and I thought it would be fine now. The DDOS was over and the conenction was stable again( ping was normal etc ). Then, about 1 hour later, someone...

6th July 2015
by P4sca1 Go to last post
2 348
Help

solved Creating Ranks System Help

EDIT: I fixed this part... I need some help creating a ranks system for my gamemode. Technically I already have the ranks system it'self ( RANK_HUMAN, RANK_ZOMBIE, RANK_MASTER, RANK_NONE ) my problem is that I can't get it to choose the master like it...

5th July 2015
by Zoeo Go to last post
5 286
Help

DPanel:GetSize() problem

local v_SceneView = vgui.Create("DPanel", v_Main) v_SceneView:Dock(FILL) v_SceneView:DockMargin(0,0,-2,-2) local w,h = v_SceneView:GetSize() print(w,h) v_SceneView.s_TexRenderTarget = GetRenderTarget("HoloMod", w, h, false) After last...

5th July 2015
by LRED Go to last post
5 228
Help

FA:S 2 Weapons - Reload sounds are broken in multiplayer

I run a dedicated server with FA:S 2 Alpha SWEPS installed, but the reload/draw sounds for them don't always play properly. This only seems to happen in multiplayer, not singleplayer. I've been pulling my hair out all day trying to correct this bug....

5th July 2015
by huntingrifle Go to last post
1 158
Question

solved Number mean script- how to simplify?

I made a rather long function to calculate the mean of any amount of numbers, or a table of numbers, and this table can also contain numbers or more tables with numbers. I'm thinking about pull-requesting it on GitHub to math.lua, but first I'd like to...

5th July 2015
by MPan1 Go to last post
5 193
Question

How do I make an HUD wobbles around?

I've made a little helmet overlay thingy addon but now I want it to like, wiggle around if you know what I'm trying to say. I want to accomplish something similar to Halo 4 with the visor helmet thing, but I'm not sure what command to use for that.

5th July 2015
by TFA Go to last post
2 306
Help

solved Starship troopers playermodels

Hi everyone, Just wondering if there is an easier way of making some playermodels for a server (being as though i'm not really very good at making playermodels). Or if someone could point me in the right direction of some substitute models for Starship...

5th July 2015
by hayche88 Go to last post
0 159
Help

solved Setting Different Walk Speed on guns Then No Guns

So, I'm trying to make it so if you have a glock you have 200 walk speed and with no glock 250. I tryed coding this but it didnt work what how did I go wrong? Code: weapon_glock/shared.lua local function Test( ply ) if ply.GetActiveWeapon then...

5th July 2015
by FiBzY Go to last post
0 154
Help

Sound for NPC

hello How to replace the default sounds on your zombie?

5th July 2015
by godred2 Go to last post
0 146
Lua

HUD Help

I posted something on this a while ago, then I thought I figured it out. Apparently not :/ Basically, I'm trying to draw an Avatar Image on my HUD which draws on the player's spawn, and destroys on the player's death. Here's my code atm: Client Side |...

5th July 2015
by James xX Go to last post
5 266
Question

How to..

Hello, I have seen on a gaming community they can check for specific conditions, and I checked the wiki for a similair function to return these, but I didnt find anything, therefore I am asking: Is it possible to: ..Check if connected with Steam...

5th July 2015
by James xX Go to last post
2 333
Help

solved ps2 spawn

Hello, I'm having problems with the addon PointShop2 It does not work, this part of the script (no error.) function ITEM:PlayerSpawn( ply ) print( "00000000000000", ply, self:GetOwner( ) ) print( "00000000000000" ) end Pointshop2.AddItemHook(...

5th July 2015
by godred2 Go to last post
4 292
Help

Noob gLua help not changing sizes.

Hi, I'm new to gLua and I started with making a gamemode called "Fat Simulator" where you can get fatter by eating, however, I have a problem. When ever the fatness goes up by another 100 it thinks the fat is a new variable, so it prints the new fat while...

5th July 2015
by Zet0r Go to last post
7 389
Help

DarkRP - Spawn with ammo AND lower hunger taken in HungerMod

So I was trying to use this command in jobs.lua = PlayerLoadout = function(ply)ply:SetArmor(100) ply:GiveAmmo(120, "pistol", "ar2") end, but it did not work. So what code works? :/* And second of all, how do you lower the hunger in HungerMod, it goes...

5th July 2015
by Dexyer Go to last post
0 162
Help

solved Anyone know what this could be?

Hello I'm using a host called GMCHosting and when I use scripts from scriptfodder 80% of the time I will get a "Nil Value" error for example: addons/sf4/lua/sf4/vgui/ship.lua:155: attempt to concatenate field 'category' (a nil value) 1. unknown -...

5th July 2015
by dbrbb Go to last post
0 207
Help

Help with ULX Physgun!

Okay, so I have ULX, but I cant pick up other players on my ded server with my physgun, can someone link me to a walkthrough for how to set it up? Cause I have no clue, and didnt set it up properly obviously.

5th July 2015
by SteppuFIN Go to last post
4 274
Help

DIsable CP team damage, but keep self inflicted damage.

Hey guys. I made a little script using "ply:isCP()" to stop team damage between Cops on DarkRP, but because of the way I have it set up how could I disable team damage, but keep self inflicted damage like fall damage, missed grenades, rockets etc. Here...

5th July 2015
by BeZerk Go to last post
6 359