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

Rainbow Physics gun?

Hey, I found something on a sever the other day and it looked pretty interesting. I kinda suck with colors and hsv coloring so I was wondering if anyone knew something simple that could provide this effect....

4 Weeks Ago
by peatreat Go to last post
10 3,654
Help

solved input libary not working?

So recently when attempting to use the input.IsKeyDown etc always seem to return false. I know im using it correctly as I have used it before. I even use others example's to make sure I didnt get it wrong. but no matter what I do all of the functions...

4 Weeks Ago
by 0V3RR1D3 Go to last post
1 97
Help

solved Pointshop playermodel skins!

Ok so i have added yoshi playermodels to my server. But i dont know how to add the their bodygroups to the pointshop. I know how to add the the default model but how do i add the bodygroups like: 1,2,3,4,5, etc Link to addon: ...

4 Weeks Ago
by stonehatch Go to last post
19 308
Lua

solved How do I make it not possible to jump in my gamemode?

Hey I have tried things such as key pressing and concommand.remove, but nothing will work. Can anyone tell me a useful bit of code that will make it where people can't duck anymore? If so thank you very much!

4 Weeks Ago
by peatreat Go to last post
8 281
Lua

solved How do I remove a console command?

I've tried concommand.remove, but that won't work. Can someone tell me a good chunk of code that will actually remove the command. I'm trying to remove +duck. If so thanks!

4 Weeks Ago
by peatreat Go to last post
2 130
Help

solved [WORKSHOP] Cant't initialize Steam Context!

Hey, I need some help in uploading a workshop item. When I try to upload my .gma with my 512x512 .jpg, gmpublish gives me the Error : "Can't initialize Steam Context! I don't know, from where it comes and why Thanks for help

4 Weeks Ago
by Arlu3n Go to last post
6 193
Help

Nextbot Collision Issue

So iv'e been making a gamemode for some time now, and the most annoying thing I can not figure out is how to stop nextbots getting stuck on each other, iv'e looked it up, tried things out my self and can't find anything that will stop them from colliding....

4 Weeks Ago
by TubbyT Go to last post
4 120
Help

solved Figuring out if player is in mid-crouch

There's a delay between the player hitting the crouch button and them being completely crouched, where their model bound offset doesn't match the hull -- speed determined by GetDuckSpeed. Is there a method to figuring out when the player is in this state?...

4 Weeks Ago
by Internet1001 Go to last post
3 183
Question

Recive player amount

Hey guys im trying to make a gamepanel but i have no idea how to recive player amount from a server via php can someone please help

4 Weeks Ago
by Zortex Go to last post
4 165
Help

solved Pointshop hats and weapons permanent! Need Help!

Hello so i have a deathrun server but i need the hats and weapons to be permanent so if you die you get it back at respawn, change team you get it, leave and rejoin you get it, etc and the only way to get rid of it is to holster it This is the code i...

4 Weeks Ago
by stonehatch Go to last post
10 184
Lua

Nutscript Category/Gamemode Question

So I asked this question on my last post but I decided to make it its own discussion. After fixing the last issue I had with Nutscript Lua Errors, I have encountered a new problem. When you create a Nutscript based server, it provided a gamemode name...

4 Weeks Ago
by BrandonFTW Go to last post
0 88
Lua

solved Getting max health

Hey, when I'm trying to set up a med kit to heal up to the players max health it only heals up to 100 and not the actual max health I have set. I'm not sure why this is happening and would like some assistance. Thanks.

4 Weeks Ago
by techwarfare Go to last post
2 103
Question

Turn ragdoll into player model.

Is there anyway I cane use a ragdoll for a player model for a darkrp job with out it doing any weird poses or not working group correctly?

4 Weeks Ago
by gonzalolog Go to last post
5 164
Help

solved Way to connect to server in menu-state?

Hello, I'm making some edits to the default GMod menu and I was wondering if there's anyway to connect to a server the same way the server browser does (not legacy) So far RunCommand doesn't work, and I can't use LocalPlayer() or self inside the...

4 Weeks Ago
by kpjVideo Go to last post
2 114
Garry

What would you change if you could? ( 2 3 4 5 .. 24 25 26 27 Last )

We've been doing a lot of talking about Garry's Mod 2 internally. Mainly about mistakes that were made in Garry's Mod. What we would change. So we've come up with a few things we hate. The hook system is kind of wrong & invites addons to break each...

garry Thread has images Winner x 159
4 Weeks Ago
by YourStalker Go to last post
1,075 85,295
Lua

Settings like blocked models are not saving

Anything I do like blocked models, restrictions do not save and players are able to use them after restart

4 Weeks Ago
by XxLMM13xXx Go to last post
1 96
Lua

Switching between players not working in spectator mode

Hello, The spectator mode in Jailbreak allows you to 'chase' alive players like many other gamemodes. It is meant to switch between players with a mouse click, but it doesn't. I have looked through the code and I cant really make out anything...

4 Weeks Ago
by joealdred Go to last post
1 175
Everything/Nothing

solved GMod - What are you working on? June 2016 (#58) ( 2 3 4 5 .. 12 13 14 15 Last )

Highlights from the previous thread

4 Weeks Ago
by Mors Quaedam Go to last post
560 39,117
Help

Physics on custom entity not working.

In my custom entity I made, whenever I spawn it, it just collides into the ground, and when I try to physgun it, it won't move. It won't even fall from mid-air. EDIT: idiot me, forgot to put the code function ENT:Initialize() self:PhysicsInit(...

4 Weeks Ago
by code_gs Go to last post
10 150
Help

Somes questions for prop hunt

Hello everyone, with somes friends we started a prop hunt server. We are using this gamemode : http://steamcommunity.com/sharedfiles/filedetails/?id=417565863 We got somes problems that we cannot solve : -Delete the use button (E or +use) for hunters...

4 Weeks Ago
by Darkouille81 Go to last post
8 277
Lua

DARKRP Jobs Error

So I have setup a user group check and I get this error in console Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 200. The best help I can give you is this: A function is being...

4 Weeks Ago
by joealdred Go to last post
2 127
Question

solved Custom Icons on HUD

Alright so I've been making a HUD for gmod, and recently decided to learn how to incorporate DarkRP things like money, job, paycheck, etc. For those I used icons i made in Photoshop. The problem I'm having is since the HUD will be running in the servers...

4 Weeks Ago
by Apickx Go to last post
1 86
Lua

A CL function won't register unless I refresh the client files [GAMEMODE]

Hello there! I've recently began developing a small gamemode for fun, and I am stuck at this purely stupid error. gamemodes/ptp/gamemode/modules/client/hud.lua:201: attempt to call method 'GetPlayerData' (a nil value) 1. v -...

4 Weeks Ago
by >>oubliette<< Go to last post
13 293
Release

[RELEASE] SRCDS Unix terminal colors hack (for putty)

Beautiful color codes for your terminal! if you don't know what SRCDS or Linux is then this is not for you. http://dl.dropbox.com/u/1910689/unixtermcolors.png http://dl.dropboxusercontent.com/u/1910689/gmod/msgc.png Lua Download:...

4 Weeks Ago
by mitterdoo Go to last post
23 4,351
Question

Editing sv.db to get permanent props?

Hey dear Facepunch forum! I am trying to add permanent props to my map, without changing the gamemode again to sandbox. To do that, i need to kinda replace the sv.db, but if i do that every player stat will be removed... can anyone PLEASE help me to...

4 Weeks Ago
by joealdred Go to last post
7 416
Help

Entity Custom Check

Currently I am working on a Entity, which works fine without custom check. What I want to do is too make it so that if they do not ply:hasLevel(5,6,7) they will not get it, and the entity will still be removed, and show the fail message message. ...

4 Weeks Ago
by Padle Go to last post
3 180
Help

Restarting the round in my gamemode

I would like to restart the round in my gamemode when there is 1 player left alive but only if there is more than 1 player on the server. I don't know what functions to use for this because i'm fairly new to gamemodes but some pseudo code would be: if...

4 Weeks Ago
by BALIST0N Go to last post
7 212
Lua

solved Gmod obj importer

tonumber seems to not work: LUA File: function LoadOBJ(obj_file) local objectname = objname local v = {} local vt = {} local vn = {} local face = {}

4 Weeks Ago
by JakusPL Go to last post
0 73
Help

Problem with costum player:Is...

Hello. Excuse me for any grammatical errors. This code can be completely wrong, I'm only do some test. In a my script, in the client-side, I wrote the code: local player = FindMetaTable("Player")

4 Weeks Ago
by Predda Go to last post
6 190
Lua

Npc setting speed?

local zombiespawns = ents.Create("npc_zombie") zombiespawns:SetPos(346, 0, 129) zombiespawns:Spawn() zombiespawns:SetHealth(600) How would I set the speed of the zombie by using this method or others? Also is there a way to change...

4 Weeks Ago
by Zeh Matt Go to last post
6 282
Help

solved Setting Labels with DViewList lines?

Is there a way to make a certain DLabel display ONLY when i select a certain line in my DViewList? Here's some code below i personally tried to make work, and got pretty much zip from it. Any help is appreciated, sorry if it looks ugly. ...

4 Weeks Ago
by ScopedKnife12 Go to last post
3 103
Help

My game crashes, but only on my server.

So for some reason, my game crashes after a minute or two of playing around on my server. It only happens on my server, and it happens to everyone who comes on. Is there any other known issues like this, or any way I can fix it?

4 Weeks Ago
by SatoshiAaron Go to last post
8 171
Help

Server "Reminder Messages"?

How would i have the console automatically create a serverwide text in say hourly intervals, with a colorway, like be sure to visit our forums with a link.

4 Weeks Ago
by bumbumsoldier Go to last post
10 220
C++

solved Lua API

How can I call functions like lua_load or luaL_loadstring? I've found only this kinda similar thread so far.

4 Weeks Ago
by krekeris Go to last post
6 380
Lua

surface.drawoutlinedrect to fit players name, job, etc

I was wondering if their was any way to set the width of the surface.DrawOutlinedRect to correctly fit the font type I am using and to fit the players name / nickname. Thank you in advanced

4 Weeks Ago
by VeXan Go to last post
3 159
Help

Custom check DarkRP

customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "vip", "donator"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "You have to be a VIP or Donator to access this class." Whenever I put this in my job all the...

4 Weeks Ago
by Banana Lord. Go to last post
8 235
Lua

Display Class Name

Hello, I have a issue with something I am trying to do. I hope someone here can help me! I have different player classes, and I just want to display the class name on a hud. Here is my sad attempts. Here is the HUD code, I know the issue is here. ...

4 Weeks Ago
by Severity Go to last post
8 174
Lua

solved ULX: Command is silent?

When i type in my command it says Player: !slay ( SILENT ) <-- Why that part?

4 Weeks Ago
by Matsumoto Go to last post
3 132
Help

solved File:ReadLine() and file.Open()

local f = file.Open(obj_file, "r", "MOD") local v = {} local vn = {} local vt = {} local f = {} while true do if(string.StartWith(f:ReadLine(), "v ")) then

4 Weeks Ago
by Derek_SM Go to last post
4 178
Help

Custom Command which plays a sound

Hello. I want to create some custom commands which will play a sound to everyone, like /lockdown does. I don't want it to do something except than playing that sound. Is there an example somewhere, how i can do that? ~Sky

4 Weeks Ago
by Skytriqqer Go to last post
2 121
Help

solved The pullman haven't any collision.

Hello. When I spawn the bus, this have the collisions, but when I enter into the bus, this lose all the collisions. Someone know how to fix it? name of the vehicle: mr_temsa_opalin Thank you!

4 Weeks Ago
by Predda Go to last post
5 108
Help
4 Weeks Ago
by The Commander Go to last post
10 527
Lua

solved AOE Heal

Hey, I'm looking into making a med kit that heals the player and all players in a 150 unit range. I'm not sure where to start in making this swep, if someone could point me in the right direction or another person who has done this before that would be...

4 Weeks Ago
by techwarfare Go to last post
5 168
School

Attaching props to players (hats)

I've seen many people create "hats" which when used appear on the player's head. Could someone please explain to me how I could do this? Thank you.

4 Weeks Ago
by shipstreet Go to last post
7 436
Question

Prop that collides only with players and vehicles.

Hello. (I already checked the collision enumeration) I would like to do a prop that collides only with players and vehicles. Is there a method for do this? 29th June 2016 anyone?

4 Weeks Ago
by MasterDaPro11 Go to last post
3 202
Post Your

Backpack stuff

was thinking on doing a nice small addon that will act as general invetory and will render a backpack model relative to the size you got. so like small 10 slots and so on the thing is i cant think of a way to make the backpack attachement without making...

4 Weeks Ago
by shipstreet Go to last post
3 232
Lua

solved Third Person front, inverse camera (up and down)

Hi, The third person back work well, when I look down the camera go up and when I look up the camera go down. But with third person front, when I look down the camera go down and when I look up the camera go up. If it's possible I would like to reverse...

4 Weeks Ago
by azerty2016 Go to last post
6 218
Lua

Drawing hud on swep

How can i use 3d2d text on my SWEP's hud using DrawHUD function and is there a way to get my viewmodel position so i can draw my HUD on it ? (hud will display some networked vars) İ am draving on the viewmodel pos so it moves

4 Weeks Ago
by RedXVIII Go to last post
7 294
Help

Passing arguments to an entity on creation

Hi, how would I go about assigning an entity variables on creation that can be referenced from both client and server? E.g. when a player dies create an entity with his player object and a table attached to it. Thanks!

4 Weeks Ago
by RedXVIII Go to last post
7 199
Help

C++ or Lua first?

Hello, I want to learn Gmod lua and my friends have said that if I learn C++ first I would be able to learn Lua in under a month. Is this statement true and how should I start to learn lua.

4 Weeks Ago
by MeepDarknessM Go to last post
34 1,146
Lua

Catalyst - A pure lua framework for metaclasses (with inheritance) in GMod 13

I developed this library earlier this year. It provides a (fairly) rudimentary framework for metaclasses, complete with inheritance. I have found it insanely increases my productivity while coding in GLua. Here is a zip of the repo. I'll get a public...

4 Weeks Ago
by Potatofactory Go to last post
1 465
Help

Gmod Legs 3 TTT

I added Gmod Legs 3 to Addons folder and launched it for my TTT server and it didn't work anyone know why?

4 Weeks Ago
by C.Finley Go to last post
10 299
Humor

solved Lua metatables to userdata (Vector, Angle, etc)

Someone contacted me the other day asking if it was possible to create a Vector metatable in Lua and have the engine interpret it as Source's Vector struct. I've been trying to get the engine to recognise the metatable as userdata, but with no success....

4 Weeks Ago
by Jcw87 Go to last post
1 224
Question

solved Spawning every prop in the game?

Hi I was wondering if there is a way to lookup all the props that I have on my local server and spawn them one by one? I know I can do it if I had a list of every prop -- so is there a way to get that list? Thanks

4 Weeks Ago
by Newbrict Go to last post
12 291
Lua

solved Help(if then statement lua error help/ k,v loop error)

Server-side script sv_spawn_zombies util.AddNetworkString( "zombieSpawned" ) function spawnZombie() for k, v in pairs(ents.FindInBox( Vector(1945, 24, 0), Vector(986, 478, 500) )) do if v:IsPlayer then net.Start( "zombieSpawned" ) ...

4 Weeks Ago
by dustyroo Go to last post
5 166
Help

solved DrawTexturedRect Bug

Hello! So im attempting DrawTexturedRect and its not exactly working.. I have the image but there is a bug.. heres a video to show.. heres my code as well function DDGLogo() local ply = LocalPlayer() if !ply:Alive() then

4 Weeks Ago
by Robotboy655 Go to last post
3 128
Lua

Custom Input Function Doesn't Work

So I'm attempting to make a function that is similar to KeyPress that is clientside and has a custom hook and works with any KEY enum. This is what I came up with: hook.Add("Think", "doinput", function() prevInputs = curInputs for _, v in...

4 Weeks Ago
by HostileRobot Go to last post
0 106
Stupid

Starwars RP

Where do i find the game mode for this because every one that i found either doesn't work or it just fills my console with tons of errors.

4 Weeks Ago
by BillyOnWiiU Go to last post
2 229
Help

solved Regeneration item help

I am not proficient with LUA so I apologize in advance. I appreciate any help. Thank you for even taking the time to stop and help me with my trivial issue. So the issue lies with this regeneration pointshop item. It regens 1hp/second and that's...

4 Weeks Ago
by Dasichgud Go to last post
2 176
Lua

Manage volume radio help

Hello, I am currently coding a small radio communication for police but I'm confronted to a problem. When someone speaking into the radio, the voice is really too much for the listener. How could I adapt this? I use this hook :...

4 Weeks Ago
by Sachha Go to last post
0 99
Help

Ascension Gamemode Files, Help me fix this Gamemode!

Hello people of Facepunch! After spending a few hours I managed to get all the files for the old fretta based gamemode 'Ascension'. I managed to modify the info.txt and the 'shared.lua' file to use the fretta13 base. Good news, it loads and there...

4 Weeks Ago
by Gedo789 Go to last post
8 378
Help

CW:HL2RP Console Errors

Howdy everyone, I've recently setup my new HL2RP server on SerenityServers.net and I'm having some trouble. When ever I launch the server, I get an error in the console like this I've tried most things, even reinstalling the server, replacing all...

4 Weeks Ago
by code_gs Go to last post
2 135
Help

Same Sound Paths

I am confused as to how you're supposed to differentiate two sounds from each other in the original HL2 vpks and ep2 vpks. Ex. HL2 Entity:EmitSound("npc/combine_soldier/vo/on1.wav") HL2 Ep2 Entity:EmitSound("npc/combine_soldier/vo/on1.wav")

4 Weeks Ago
by code_gs Go to last post
1 108
Help

solved Playermodel NPC Sequences

I'm having this issue with making NPC models that are used as playermodels to play seqences, but It's not working, I've tried Serverside and Clientside and it's not working, can anyone help? Code: function GM:PlayerTick(ply,mv) local sequence =...

4 Weeks Ago
by Robotboy655 Go to last post
3 126
Help

Item Spawn (deathrun)

-snip- wrong section... Staff please remove... sorry for wasting time/space

4 Weeks Ago
by supermonkey89 Go to last post
6 228
Help

solved What exactly is "detouring" something? and how to properly size/position VGUI.

What exactly is detouring a string/function and how can it be used efficiently?

4 Weeks Ago
by RedXVIII Go to last post
7 231
Help

solved Should I release my gamemode? ( 2 Last )

-snip- I don't even know why I asked facepunch this question

4 Weeks Ago
by PhantomServer Go to last post
42 1,564
Question

solved Upside-down Health Bar

I made a health bar that works perfectly although when the player loses health the bar gets shorter from the bottom rather than the top. I suppose this isn't really something wrong it's just how it works. Is there any way I could reverse it? local hp...

4 Weeks Ago
by Thane Go to last post
3 172
Help

solved Adding Models to FPP Blacklist

I'm trying to make a script to add a list of models I have to the FPP Blacklist. What I have is this: local blockedmodels = ] local propnamestable = string.Split(blockedmodels, ",")

4 Weeks Ago
by danker pepers Go to last post
1 91
Help

solved Need Help with input.WasKeyPressedĄ

Hi, could anyone help me out whit this? if CLIENT then if input.WasKeyPressed( KEY_1 ) then if input.IsKeyDown( KEY_C ) then if self.Sight == 0 then print("reflex") self.VElements.color = Color(255,255,255,255)

4 Weeks Ago
by AbiSV Go to last post
10 423
Help

solved Colour changing health bar And Ammo bar not fully Working

Hiya i have just starting lua coding about 3 weeks ago and i have been working on a simple hud for some time now and i have been trying to make it change the colour of the health bar when the player takes damage but i cant get it to work however with the...

4 Weeks Ago
by Detxer99235 Go to last post
10 179
Help

Sorry to sound like dumbass

Hey it's me again, "the meme" But..... I need to know where to put this function CheckTool(ply, trace) local ent = trace.Entity if IsValid(ent) and ent:IsPlayer() then return false end end hook.Add("CanTool", "PreventPlayerTooling",...

4 Weeks Ago
by DavyDev Go to last post
12 396
Help

solved Need help getdarkrpvar (nil value)

Hello guys i create a custom swep whit you can get weapons thanks to shipments that you buy to a npc. But a get this error when i clic the button of a derma: addons/darkrpmodification/lua/weapons/shipment/init.lua:8 : attempt to call method...

4 Weeks Ago
by DovaSummer Go to last post
7 132
Help

column name is not unique SQLite

i have been working on a loadout menu for a deathmath gamemode. init.lua AddCSLuaFile("menu.lua") AddCSLuaFile("sql.lua") include("sql.lua") function GM:ShowHelp(pl) pl:createSQL()

4 Weeks Ago
by Tupac Go to last post
2 124
Help

solved Ragdoll Collision-Sounds

Is there a list with all sounds which could be played if a ragdoll collides with something? Where is the code for playing them?

4 Weeks Ago
by markusmarkusz Go to last post
11 343
Help

Force custom resolution?

Does anyone know of a way to force a resolution in GMod. For example if I wanted the resolution 1080x1080 its not possible. Thank you. (This needs to be done without weird stretching.

4 Weeks Ago
by 0V3RR1D3 Go to last post
2 164
Help

Team Spawnpoint Setup Help

Hi, I`m currently creating a team based gamemode and i need my 2 different teams to spawn at 2 different places. How would i go about implementing this? This is a piece of code iv`e been trying but i doesn't work. shared.lua team.SetUp( 1,...

4 Weeks Ago
by taz0 Go to last post
6 166
Help

Gamemode Scripting: How to get last used weapon?

How can I get the name of the weapon that was last used by the victim in a GM:PlayerDeath function?

4 Weeks Ago
by KO #1 Go to last post
8 160
Question

solved Changing color of HUD_PRINTTALK

Anyone know how you'd go about changing the color of HUD_PRINTTALK text?

4 Weeks Ago
by Thane Go to last post
18 295
Help

net.Send() returning null in swep

no clue why this isnt working. returns an error saying "attempt to call field Send (a null value)" here is the code in the weapon. function SWEP:PrimaryAttack() net.Start("StartBRequest") net.Send(self.Owner) end

4 Weeks Ago
by overki11 Go to last post
6 160