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

solved Clientside LUA file won't run on server unless the server has the same LUA file

So I recently made this addon, http://steamcommunity.com/sharedfiles/filedetails/?id=236801181 As it works perfectly fine in Singleplayer, I just can't get Gmod to recognize the command to open the menu when on a server. The command is "+acts". The...

12th March 2014
by Norway174 Go to last post
6 247
Help
11th March 2014
by Jvesche Go to last post
2 119
Help
 

DarkRPJobs Error

Here are my jobs, I get script errors and all of my jobs go to default. /*--------------------------------------------------------------------------- /*--------------------------------------------------------------------------- DarkRP custom jobs...

11th March 2014
by Bo98 Go to last post
2 152
Help
 

Grapple Gun help?

I'm sorry for posting this twice, accidentally closed the thread, honest mistake. But I really need help adding in a cooldown or ammo to a detective weapon called the spidermangun so that it's not overused or abused. SWEP.Spawnable = true...

11th March 2014
by Pixelbutts Go to last post
3 210
QUESTION
 

Health & Armor

Hey there if anyone has free health and armor that i could add in my game that would be great. When I try with the health and armor it doesnt fill it all the way up and i would like so i can have health and armor that fills me up all the way. If anyone...

11th March 2014
by Mors Quaedam Go to last post
1 187
Help
 

solved Hitmenu help

So I got the hitmenu from the addons and i got this error addons/hitmenu/lua/hit.lua:18: attempt to call method 'AddMoney' (a nil value) 1. unknown - addons/hitmenu/lua/hitmenu/hit/lua:18 2. unknown - lua/includes/modules/concommand.lua:69 ...

11th March 2014
by Jvesche Go to last post
6 131
Lua scripting
 

solved Get file name of a LUA file inside of it This thread has images

So, I'm modifying http.Post function because a guy that made an addon for the server where I'm a developer on (no, I couldn't have made), it used this function to get the rcon_password and send it to a database. But one of the modifications I'm trying...

11th March 2014
by GGG KILLER Go to last post
7 237
Help
 

solved Surface material button help

Code removed I was wonder how get RunConsoleCommand("openinventory"); to work ass a button any 1 got a clue?

11th March 2014
by gaminghunters Go to last post
1 102
Help
 

SWEP

Well, so i made this SWEP that can lock doors. It works like it should, but it gives me an error: gamemodes/udgdm/entities/weapons/weapon_admin_stick/shared.lua:74: attempt to call method 'Fire' (a nil value) 1. unknown -...

11th March 2014
by SkitZz Go to last post
3 177
Lua scripting
 

env_projectedtexture casting backwards/upwards This thread has images

I hear tell that it has been fixed, though I can't find any fix/etc so at the risk of looking stupid, seeing as I can't find anything has anyone got a solution as of yet? I'm getting really tired of looking at this.

11th March 2014
by Robotboy655 Go to last post
2 172
Lua scripting
 

Finding local variables defined in another file?

I'm trying to use debug.getlocal to find all defined local variables and filter out from there but for some reason it doesn't consider anything but the lua file you're doing it in to be in the right scope. e.g. file 1 (using test code nicked from...

11th March 2014
by Ylsid Go to last post
6 168
QUESTION
 

solved Net Library: Sending Large Tables

At what point would sending a large table to the client via net messages become problematic? I assumed it could when the table becomes rather large, which what I'm working on has potential to do. To give you a better idea of what I mean, I'm working on...

11th March 2014
by Jeezy Go to last post
5 191
Help
 

solved Grapplegun help?

Hey guys I really need help adding in a cooldown or ammo for a detective weapon called the spiderman gun, so that it's not spammed or overused. SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.PrintName = "Spiderman's Gun" ...

11th March 2014
by Pixelbutts Go to last post
0 129
games
 

Gmod TTT point shop weapons good or bad idea?

so I been wondering if adding weapons to pointshop is good idea. I know that after a while you dont have anything to do with pointshop so I was thinking of adding additional weapons that I dont have on my server and put them in point shop these weapons...

11th March 2014
by snakethetroll Go to last post
6 333
POST YOUR
 

Do you code with GMod in Fullscreen or Windowed-Mode?

Another thread similar to my last but different in terms of the question being asked; do you code GLua with Garry's Mod in Fullscreen or Windowed-Mode and why?

11th March 2014
by jamesrupert Go to last post
34 956
Help
 

solved DarkRP Hitman

I can't disable the mob boss's hitman menu and readd it to my TEAM_HITMAN and TEAM_PROHITMAN. /*--------------------------------------------------------------------------- Jobs that are hitmen set to true to disable...

11th March 2014
by Winter Go to last post
5 276
QUESTION
 

DarkRP models

So I'm making some custom jobs for darkRP and was wondering where you get the models from? and example of a job is below TEAM_SWAT = DarkRP.createJob("S.W.A.T", { color = Color(80, 45, 0, 255), model = "models/player/swat.mdl", ...

11th March 2014
by Winter Go to last post
2 179
Help
 

solved Key press lua help pless

Code removed I was wondering how make it to when u press crtl and r the menu opens but it now only opens on r.

11th March 2014
by gaminghunters Go to last post
2 152
Help
 

solved DProgress coloring help pless

Code removed Does any 1 got any clue how color the background and the exp bar? I have try myself but cant figure it out.

11th March 2014
by gaminghunters Go to last post
4 222
Help
 

solved Why this error occurs

can someone explain to me what this means and why it occurs? I ask this because my icons for items clearly dont work. and I have them placed in these files yet it just doesnt work ttp://5.101.136.121/1312/materials/VGUI/ttt/icon_tl_awp.vmt HTTP ERROR...

11th March 2014
by snakethetroll Go to last post
3 147
Help
 

solved gmad.exe error [not allowed by whitelist] on .lua files

im trying to make a .gma file with gmad.exe (ive done it once before) but this time i got this error LOG: C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod\bin\gmad.exe create -fol der C:\Users\Ryan\Desktop\ben\LUA\ -out...

11th March 2014
by Thewalternet Go to last post
6 669
Lua scripting
 

solved Cam 2D3D not working on SNPC This thread has images

Here is the cl_init.lua include('shared.lua') --ENT.RenderGroup = RENDERGROUP_BOTH function ENT:Draw() self:DrawModel() local Pos = self:GetPos()

11th March 2014
by blakeguy25 Go to last post
0 166
Help
 

DarkRP, doubling VIP job salary.

Hi Does anyone know the code to doubling VIP salary and where to put it. I can only find outdated ones. Thankyou

10th March 2014
by Netheous Go to last post
17 417
Help
 

Need help with resource file

I want to create a file that will download this: http://steamcommunity.com/sharedfiles/filedetails/?id=200013702 but only if css is not mounted. Not sure if this is possible but if someone can point me in the right direction that would be awesome!

10th March 2014
by Judd Go to last post
11 276
Lua scripting
 

Dark RP - Custom Entities

Hey Guys, sorry for posting here about this.. but i've been playing around with this now for hours. Before anyone asks, i have searched Facepunch for what i'm looking for before starting a new thread. I'm starting up my own server, and i've...

10th March 2014
by SkyArmyNinja Go to last post
3 4,658
Help
 

solved Problems with my DarkRP server.

I have problems I need help fixing with :) Problem #1: People cannot co-own doors even if you add them to the co-own list. Problem #2: You can blow down doors with some guns Problem #3: I cannot view 3rd person in ANY vehicle including chairs.

10th March 2014
by XyctoGaming Go to last post
8 219
Lua scripting
 

Opening Webpages in Steam Overlay

I've seen that some servers have command where if you type them in chat a website would open in the Steam overlay (shift+tab menu). Does anyone know how to do this? For example, how would I make a script to open google.com in the Steam overlay?

10th March 2014
by TylerB Go to last post
6 468
Lua scripting
 

how to move entity gently?

i have made fight of character mode and control entity (Not NPC) i use veloctiy to move and i found problem when go up the stairs if entity face very small hill or stair, entity don't go to forward so fix this problem as use trace.line

10th March 2014
by EthanTheGreat Go to last post
5 224
Help
 

Dev Branch not working on srcds. This thread has images

http://i.imgur.com/iArLGaR.png Am I doing something wrong or is it actually broken?

10th March 2014
by Acecool Go to last post
8 398
Lua scripting
 

How do I loop through a directory?

I've set up a server and made a fastdl however I don't want to make a lua file with every file in the /models/ I've thought about looping through the directory and having a addFile(FileName) or something like that but the thing is I don't know how to, the...

10th March 2014
by Codingale Go to last post
12 343
Love
 

solved TTT - CS:S Weapon models won't show up. This thread has images

Nevermind, restarting gmod solved the issue.

10th March 2014
by Netheous Go to last post
0 116
QUESTION
 

Scoreboards

Hello I was wondering if anyone knew any scoreboard that would just tell the teams and kill/deaths. I am making a gamemode called Pistol Warfare so I just need a basic one, since the classic one wont tell me a thing. Thanks

10th March 2014
by IceMod Go to last post
4 265
Help
 

Gamemode Help

I am making a gamemode called Pistol Warfare and I need help with the team playermodels and the ammo you spawn with. So first off I spawn in with my playermodel I set in sandbox, which I don't want I want one team to spawn in with combines and one with...

10th March 2014
by NiandraLades Go to last post
2 183
Help
 

Please need help with darkrp 2.4.3 It was just working! This thread has images

Here are the errors I got in console!

10th March 2014
by panzer123ns Go to last post
3 190
Help
 

solved Lua Errors need help with basewars gamemode! cl_init.lua file This thread has images

Here the error Pics from start to finish... Thanks for the Help!

10th March 2014
by Acecool Go to last post
10 369
Help
 

Whats this error mean Im running darkrp 2.4.3 This is the last error!

gamemodes/darkrp/gamemode/addentities.lua:45: unexpected symbol near '=' 1. unknown - gamemodes/darkrp/gamemode/addentities.lua:0

10th March 2014
by panzer123ns Go to last post
5 251
Help
 

Ammo

I need help with my deathmatch gamemode, when I spawn in the weapons only have 1 round and how would I edit that? Thanks.

10th March 2014
by NiandraLades Go to last post
6 164
Help
 

solved TTT Models/Ragolls Help

For anyone who is able to assist, I'm having troubles with TTT models and the ragdolls they go in. For example, if I add a model to my Pointshop, equip it, use ULX RAGDOLL or if I die, the body disappears instead of ragdolling normally. Any help is...

10th March 2014
by ADudeWithAHat Go to last post
6 177
QUESTION
 

FAQ - Custom DarkRP Jobs ==OFFICIAL RELEASE==

To goto the DarkRP jobs thread, click here. FAQ: Q: Why do I need Drugzmod for the jobs to work? A: Without Drugzmod, the Drug Dealer has no use at ALL. Q: l0l fuk 0ff u g4y furr13 g0 cl0p sumwh3r3 3lse A: :suicide: Q: IF YOU AIN'T GOT NO...

10th March 2014
by SkyArmyNinja Go to last post
0 161
Love
 

solved Coder-Launch ( 2 Last ) This thread has images

You guys will rate this as dumb cause you call it a copy of Coderhire. Everything that has been done in the past is a basically a copy Coder-launch is a website that allows players to buy already coded for a certain amount of money that the coder has...

10th March 2014
by Ejbaker Go to last post
58 1,470
Lua scripting
 

TTT Detective Turtle Grenade: Cant Fix This Bug By Meself!

So for my first coding project i decided to make a TTT turtle Grenade for Detectives. it will spawn flying turtles that follow the thrower, and upon that thrower being harmed by someone, attack said someone. What i am having problems with is that only...

9th March 2014
by RichyRocker42 Go to last post
7 335
Help
 

TDM Cars problem

Hello kind users of forums ! I have problem with TDM cars. I would like to install some kind of passenger mod, but i cant find it/install it. Second problem is that i would like to disallow players to pickup cars with physgun, i dont know how to do...

9th March 2014
by The Beta Go to last post
10 422
Help
 

Script error ?

Hello. I was trying to disallow users ( From user to moderator ) to pickup TDM cars with physgun. hook.Add( "PhysgunPickup", "No Car Pickup", function( ply, ent ) if (not ply:IsAdmin() && _ent:IsVehicle( ) && string.find(...

9th March 2014
by Robotboy655 Go to last post
2 147
Help
 

solved Fast download

Code removed And i have added the sv_downloadurl in the server cfg and the ip to it but still it wonnt download any of the pngs but it does download the map but no pngs

9th March 2014
by gaminghunters Go to last post
0 148
Help
 

solved My server will not start.

My server will not start because I keep getting this error: http://pastebin.com/38BzuuUL

9th March 2014
by Acecool Go to last post
6 216
Help
 

How to use a DScrollBar?

How would you make a dmodelpanel and a label scroll with a scroll bar. Is there any tutorials on this?

9th March 2014
by AIX-Who Go to last post
2 177
Humor
 

solved Detective swep wont buy

Ok, so I'm trying to add the 3D Maneuver gear to my TTT server and tried my best to convert it to TTT. I think most of what I did was right but the issue I'm facing is that you buy it, it doesnt appear in your inventory, and you can no longer buy...

9th March 2014
by Baron von Hax Go to last post
1 180
Help
 

solved Text inside DPanel?

Hey! I have a DPanel and would like to display some text in it, aligned to center of it. I haven't found a way to do this, I tried only "Panel" but that didn't either work. I've searched google and only found other stuff than DPanel. What it seems like,...

9th March 2014
by addemod Go to last post
2 103
Help
 

Help with concommand.Add

I'm currently working on a race type Gamemode and I am trying to make it so you can choose how many laps in a race there are on the map selection screen. There is no command to change how many laps though, and you can only edit how many laps there are...

9th March 2014
by Lukey1400 Go to last post
9 187
Lua scripting
 

Gmod13 Custom Spawnlists?

Does anyone know how an addon might ship custom spawnlists, or a server might send spawnlists to a client? It would seem by default only GAME/settings/spawnlists is viewed by the engine, not downloads/settings/spawnlists (from resource.AddFile) or even...

9th March 2014
by Jeezy Go to last post
23 663
Help
 

solved Make DarkRP Job Not Allowed To Pickup Weapons

Hi all again, I'm trying to make my job not be able to pickup weapons. I have put this as one of the properties in the job: PlayerCanPickupWeapon = function(ply, weapon) return true end ( also tried with return false ) but they still can, is...

9th March 2014
by Computer600 Go to last post
4 188
Help
 

Databasing NEEDING HELP!!!

Hay guys im trying to database stuff off the client and into the server not the client so i can setup like a speical team/ clan without worrying about it. i thought it would be like *PData or *NW* Heres my Cl_Init.lua code for the derma: function...

9th March 2014
by Acecool Go to last post
3 120
Help
 

solved Lua Errors need help with basewars gamemode! cl_init.lua file

Here the error Pics from start to finish... Thanks for the Help!

9th March 2014
by Acecool Go to last post
4 129
Help
 

solved Find player help

Code removed ents.FindInSphere Finds other players but not the player that actually activates it

9th March 2014
by gaminghunters Go to last post
5 188
Help
 

solved Lua Errors need help with basewars gamemode! cl_init.lua file This thread has images

Here the error Pics from start to finish... Thanks for the Help!

9th March 2014
by panzer123ns Go to last post
0 110
Lua scripting
 

Heartbeat effect without dropping FPS to 1 This thread has images

Hey everyone, I was looking at my horror story gamemode and figured I should add heartbeats to the Player list (TAB). I toyed around with textures but they didn't do what I wanted them to do, so now I'm going for a simple draw approach. The effect I...

9th March 2014
by Acecool Go to last post
1 234
Help
 

Scoreboard

Probaly a nooby question that anyone could do but i cant figure it out. Here i have a scoreboard. Its the darkrp replacement scoreboard. I want to make some icons that certain ranks have. How would i do that?

9th March 2014
by Acecool Go to last post
14 274
Help
 

Quick help with UserCMD and Move hooks.

I want to remove and eventually replace a player's movement keys. I have tried several things but haven't had any success. Here is the latest thing that I've tried, would anyone happen to know why this doesn't work? In cl_init of my gamemode: ...

9th March 2014
by MeepDarknessM Go to last post
8 243
Help
 

solved Render Problems Lua This thread has images

Code removed Any 1 got any clue how fixe it?

9th March 2014
by ExtReMLapin Go to last post
1 172
Help
 

solved Make Player "Pounce"

Hi all, I'm coding a SWEP and when the player clicks I want it to make them "jump" a bit forward in the direction there looking at ( not to where they are directly looking at but in that direction ), except I have no clue on how to go about doing this....

9th March 2014
by Sm63 Go to last post
1 132
Lua scripting
 

Network Variables -- am I using this correctly?

As I understand it, network variables are limited to 4 at a time for each type (int, string, boolean, etc...) and I'm trying to add a custom variable for a playerclass in my gamemode (I think). For example, if I want my players to have a "cash"...

9th March 2014
by Donkie Go to last post
4 272
Help
 

VGUI refresh ways.

Hello. Im searching way to refresh all panels. Im making language system(like in TTT) where player choses language. So, how i can refresh VGUI? I mean, how to refresh variables such as panel title or button text.

9th March 2014
by Acecool Go to last post
9 246
html
 

Help With Loading Screen Music

Hello I made a loading screen for my Garry's Mod server and I have it playing smooth jazz from youtube but It won't play Here is the code: <html> <head> <style> body {

9th March 2014
by Jorge Regula Go to last post
2 227
POST YOUR
 

Point Shop Items

Here you can post your point shop items for other people to use! Please dont comment unnecessary things, this is a thread for posting pointshop code and nothing other. If you dont have pointshop download it here:...

9th March 2014
by Jorge Regula Go to last post
4 258
Lua scripting
 

solved Issue with an if statement

I was working on this short little project and then suddenly when I added one simple if statement that should work, it just doesn't work. Any idea why? TTT meta function btw hook.Add("PlayerDeath", "Monitor", function(ply) if ply:HasEquipmentItem(...

9th March 2014
by Sm63 Go to last post
5 211
Computers
 

NEW MOD LIKE PCMOD BUT BETTER

Hello world. I think I may need a little help on this one. I will be making a mod so its just like a PC, but not full pc. features: In Game Programming Mini Games Google Chrome Browser Fire Fox Browser

9th March 2014
by BFG9000 Go to last post
9 411
Help
 

Server's files differ from Client's. Cant check CRC This thread has images

Hi, I'm trying to compare a client's files and the server's files CRC for anti cheat purposes Yet, this file differs from the servers. Does anyone know why the default file is different from the servers? (I verify'd my cache, still is fucked up)

9th March 2014
by zerothefallen Go to last post
10 263
Help
 

Clients not downloading updated files from FastDL

Hi, first of, sorry if this was posted already, but I couldn't find it anywhere. I have the following problem: I made an addon with some custom resources (sounds, materials), put it on my server and put the resources on FastDL. Everything works fine,...

9th March 2014
by Acecool Go to last post
1 159
Lua scripting
 

malfomed number near '1.mp3'

Hello! I am a fairly experienced coder but I am new a lua. I made a script that plays a random sound that I have in a folder named like 1.mp3, 2.mp3, etc. I set it up so that it randomly picks one of these to play when the round ends. But I am getting...

9th March 2014
by Acecool Go to last post
11 344
Lua scripting
 

How can i change the player animations

i want to change the running animations of the player is there a script to change it? ACT_RUN_PROTECTED where should i put this script?

9th March 2014
by Acecool Go to last post
1 140
Lua scripting
 

How to grab data from console

Basically, Im an admin of a server and im trying to make myself something that every few minutes does status grabs the name and steamid of all players and puts it in a list so if im dealing with someone and the dc to avoid punishment i can grab their...

9th March 2014
by Acecool Go to last post
2 105
Love
 

solved I can design your Loading Screen or Clan/Game-Server Website!

Hello there, I'm opening my services again for anybody that wants their Garrysmod loading screen customized or they want a full clan/game-server website. My work is cheap and the finished product is very professional for just a small price. ...

9th March 2014
by Crapy Go to last post
16 497
Lua scripting
 

SWEP showing on left side instead of right This thread has images

Hello again =) So today my problem's that I tried creating my own swep for a try, everything worked fine like I wanted, only problem is my weapon is showing on my left hand instead of my right. The problem isn't from my options since every other gun is...

9th March 2014
by BFG9000 Go to last post
6 155
Help
 

Weird OnEntityCreated Delay

http://www.youtube.com/watch?v=1tpcxPUT8EM It seems it's only happens when NPC is created. hook.Add("OnEntityCreated", "mob.random", function(ent) if !ent:IsNPC() then return end for k, v in ipairs(mob.ranks) do local dice =...

9th March 2014
by rebel1324 Go to last post
8 193
Help
 

RenderView Transparency

I was wondering if it was possible to make the clipped areas of a renderview transparent. What i mean by this is: if you wanted to make a map, and it looks down on the player from really high to show the entire map, the camera will then be outside of the...

9th March 2014
by TheEncrypted Go to last post
0 114
Help
 

solved How to disable the "disable collisions" property?

DarkRP 2.4.3 I have googled and surprisingly could not figure out how to do this. How do I disable the "disable collisions" property when you hold c? (So that players will be disallowed to use the property.)

9th March 2014
by Gomez Go to last post
2 128
Help
 

Help with HUD.

Lately I have been making a HUD for the heck of it since its been a while, but I am using a Mini-Map and whenever I try to create a symbol to cover the middle of it for the point of the players, but when I do that it doesn't show, the item will show as...

9th March 2014
by Netheous Go to last post
1 143
Request
 

Staff Disguise Plugin

Does anyone has a staff Disguise script of some sort that I could convert into Evolve. If not, then don't worry. Just wondering if anyone had one before I start making some long complicated script that might not even work.

9th March 2014
by SatoshiAaron Go to last post
2 194
Help
 

Demote On Death

Does anyone know how I can put in the demote on death script into this? TEAM_KICKASS = AddExtraTeam( "KickAss", Color(25, 25, 170, 255), "models/norpo/ArkhamOrigins/Assassins/Deathstroke_ValveBiped.mdl", ], {"weapon_crowbar"}, "kickass", 1,...

9th March 2014
by MatesCZ Go to last post
3 160
Help
 

solved How to make a Custom ESC Menu?

Does anyone know possibly how to make a Custom ESC Menu?

8th March 2014
by BreakinEnigma Go to last post
4 137