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

[PSA] Backdoor Found in "Garry's Fireworks 2 (Final Edition)" workshop addon ( 2 3 4 5 .. 8 9 10 11 Last )

Found a nasty backdoor in Garry's Fireworks 2 (Final Edition) that allows any user to spawn any number of any entity they want. Like many Gmod owners, I installed the fireworks addon last weekend during 4th of july. However over the course of the week...

14th March 2016
by GB3_123 Go to last post
427 49,084
Help

Creating a gamemode

I've made a game on Roblox (Roblox Lua is very simple, no special client & server stuff really(I think?)). It's a very simple and fun minigames place. http://www.roblox.com/Item.aspx?ID=102505 How would I make this into a gamemode for Garrysmod? I can...

14th March 2016
by GB3_123 Go to last post
4 709
Help

GetTable()?

Is there a better and more efficeint way instead of using GetNWInt? I've heard there was one like SetTable( "name" ) and GetTable( "shfs", true ) If so, can someone give me a simple example an an explanation of this method?

14th March 2016
by GB3_123 Go to last post
3 802
Help

Method of driving a sent like a boat

I have been trying to make a sent drivable like a boat im new to sents this is my first one so i know that i should be using ENT:PhysicsSimulate and i have tryed so many codes and they all fail can anyone give me a bit of help function...

14th March 2016
by GB3_123 Go to last post
1 607
Lua

SWEP Model Changing

I'm making a SWEP as to answer one of the requests in the section (Zangetsu) but I am having trouble getting it to switch on a live basis. Basically I want to be able to change the view model of a swep and then it actually changes it on the screen, not...

14th March 2016
by GB3_123 Go to last post
2 810
Help

Problem with all .lua addons....

If you cant tell ima noob at gmod. Any addon that I have used that has anything to do with lua doesnt work! how do i use .lua addons? is it like any other addon? do i have to do something special for it to work? i'm asking this because i recently tried...

14th March 2016
by GB3_123 Go to last post
3 660
News

[PSA] Backdoor found in "(MC) Voltz Explosives Pack" (baldursgate3 approved!) ( 2 Last )

Well well well, would you look at that. Another backdoor by buldursgate3! Steam page And here it is, lua\entities\voltz_tier_one_debilitation_ent.lua Line 138 to 142 Revision number 2 in the workshop.

14th March 2016
by GB3_123 Go to last post
60 5,176
Help

solved [DarkRP] Small SChat Chatbox Problem

Before I start, I'll be happy to prove that I've purchased the product. If you go here: Script's Reviews you'll see why I came to Facepunch instead of even bothering him for support. Plus there's not even a damned "Script Support" button on the script...

14th March 2016
by Percipience Go to last post
1 204
Lua

solved DARKRP Issue: Everyone spawns as Statues and has the job "Joining/Connecting"

I've been working on this for 4 hours now and still no luck. Researched and found nothing that was able to help. I haven't modified anything inside the DarkRP gamemode, and have reinstalled it several times. I get these (this) error when someone...

14th March 2016
by duggy Go to last post
7 377
Lua

How can I force the spawnmenu to redraw its tile icons?

I want to be able to modify which spawn icons appear, along with their right-click menu options and invalidate the whole lot so that they redraw. Populating them once (when the player first selects a spawn list) is fine - I figured out by looking at...

14th March 2016
by ph:lxyz Go to last post
5 266
Help

solved Need help with derma panel

Ok I am trying to make a npc to get jobs. (like perp) btw i'm new to this How do i make the derma panel not open more than once Init.lua AddCSLuaFile("cl_init.lua")

14th March 2016
by kulcris Go to last post
6 312
Lua

solved F4 Menu Lua Error

So my F4 Menu is a bit fucked and I'm getting the following Lua Error gamemodes/starwarsrp/gamemode/modules/f4menu/cl_jobstab.lua:367: attempt to call field 'getCategories' (a nil value) 1. fillData -...

14th March 2016
by TheChosenOne1 Go to last post
4 407
Help

solved Cinema VIP Area Lua

Ok, I need help ot just a poke in the right direction. I want to be able to get the THEATER_PRIVILEGED to recognise certain ranks, ie; admin and vip but also to teleport other players out upon entering. I have read pretty much every article on...

14th March 2016
by SamXXVI Go to last post
3 212
Help

solved Trigger sphere?

Hi, There are any function to setup a trigger as detect ents in sphere and I need to use ents.FindInSphere or a simply easier way? Like I setup the radius in keyvalue and the pos when I create the entity. And the detection will be higher from the...

14th March 2016
by Zeh Matt Go to last post
8 506
Lua

solved gm_cvar3 crashes server?

I want to use gm_cvar3 to delete flag "FCVAR_CHEAT" from convar "mem_force_flush". But it crashes my server when I do this. I get minidump also. Should I give it here? I've heard that they can contain private information or something like that. My...

14th March 2016
by uRandomAlex Go to last post
1 202
Help

Certain Prop Addons are not working.

//Back Story Not Important I am working on a Star Wars RP server and have coded on TTT before but never an RP server. Although I don't own the servers I am the only one with coding experience in multiple different languages. My friend owns the server and...

14th March 2016
by methisbest Go to last post
0 71
Lua

solved Panel.PaintAt crash

Can anyone confirm that this crashes the game? local button = vgui.Create("DButton") button:SetSize(96, 96) button:SetPos(512, 128) button.Paint = function(self, w, h) self:PaintAt(128, 128, w, h) end

14th March 2016
by Saana Go to last post
6 290
Help

ConVar resetting back to 1 and Player Models/Colors reset as well

I'm trying to make a ConVar where if you have it set to a certain mode it'll change the model/color of the player. The player models and colors do not set, but also, the ConVar always resets back to 1 even if I put it into the autoexec.cfg Any ideas? ...

14th March 2016
by StaTiiKxKALEb Go to last post
10 309
Lua

Permanent Models - Player keep the player model they last had!

Hello, I'm using DarkRP 2.6 and I'm creating a NPC shop that allows players to buy new playermodels e.g Suits etc. When players spawn they automatically go to the default groups model. I'd like it so when they buy a new playermodel, leave and then rejoin...

14th March 2016
by Danny F Go to last post
6 254
PC Games

DarkRP Anybody Can Ghost Anybody's Props

Im having an issue on my server where anybody can ghost anybody else's props (but not freeze them). This is causing people to be able to walk right into bases. The prop protection addons im using are: Enforcer and FPP Heres a video of the issue:...

14th March 2016
by papa john Go to last post
2 193
Lua

A Couple Pac Questions

1. How do i stop this DModelPanel been affected local PlayerDisplay = vgui.Create("DModelPanel",self.panel) PlayerDisplay.Entity = LocalPlayer() PlayerDisplay.OnRemove = nil PlayerDisplay:Dock(LEFT) PlayerDisplay:SetSize(300,500) ...

13th March 2016
by Wildo Go to last post
3 162
Help

Darkrp Notifications Not Appearing ?

I am trying to create a police ammo box: I am trying to create it so when the government official walks up to it and interacts with it, money is taken off him and he is greeted with a notification that reads; "You have spent $"..ammoprice.." on ammo!"...

13th March 2016
by Coffeee Go to last post
4 595
Help

solved DarkRP F4 Menu is a grey box.

So my F4 Menu is not working to be honest I have no idea why as this is freshly installed DarkRP my F4 Menu looks like this http://steamcommunity.com/profiles/76561198144611623/screenshots/?appid=4000 how ever everything else is fine including jobs I'm...

13th March 2016
by Athods Go to last post
9 474
Help

How do i properly make a blur screen

I've been trying many ways that i have just found all of them look pixelated or didnt work

13th March 2016
by defyReality Go to last post
8 581
Help

Cars not able to be bought in DarkRP

Okay so I set up the vehicles in darkrp DarkRP.createVehicle({ name = "507tdm", model = "models/tdmcars/bmw507.mdl", price = 5000, }) is one of them. When I try to buy it, it says "This weapon is unavailable"

13th March 2016
by XxLMM13xXx Go to last post
1 173
Lua

How i set running speed for a job?

Hey, how do i set the running speed for a darkrp job not walkspeed but only run speed.. so the job flash (team_flash) gets 300 or 400 run speed but normal walk speed?

13th March 2016
by SlayerLegendz Go to last post
5 154
Lua

solved Creating an Hud, problem with some screen resolutions

Hello, Today i'm creating my first HUD on Garry's MOd I started by created a box at the bottom left of my screen.. But when i'm changing the resolution of the game, the box goes over the screen. My resolution of the game is 1970x1080. This is...

13th March 2016
by rtm516 Go to last post
4 180
Lua

Disable pickup notifcations?

how would i disable the weapon pickup notifcations on the far right of the screen?

13th March 2016
by Coffeee Go to last post
1 103
Help

Hud Resolution Problems

local function Base() draw.RoundedBox(20,ScrW() -2000,ScrH() -70,ScrW() -1500,ScrH() -70,Color(110,110,110,250)) draw.RoundedBox(20,ScrW() -300,ScrH() - 70,400,170,Color(110,110,110,250)) --HUD-- draw.RoundedBox(6,-16,ScrH() -60,356...

13th March 2016
by Roag15 Go to last post
1 123
Help

Server Decals

Does any body know how to make a file that can be made or a addon that can clear decals once every 5 Minutes? Please help me out

13th March 2016
by Robotboy655 Go to last post
2 248
Lua

Demote on death?

Hi! Can someone give me a code which demotes: TEAM_MAYOR , TEAM_CHIEF and TEAM_COP . The wiki one doesnt work anymore since 2.5 .

13th March 2016
by tzahush Go to last post
19 362
Help

solved Entities and Self

So I'm modifying a radio that was posted on the workshop to open a derma menu and the buttons in the menu are supposed to control the radios functions.. -- Code from radio's init file net.Receive("radioon",function() local Mus = MUSIC ...

13th March 2016
by AustinH Go to last post
0 86
Help

gamemenucommand to view server browser?

I'm having a bit of trouble making a custom escape menu. I've almost finished it and I just need to fix to of the selections on it: servers and options. Servers should open the legacy browser and options should open the options menu. So far what I've got...

13th March 2016
by whitestar Go to last post
12 453
Help

HUD not appearing on servers using AtlasChat

Recently, the servers that I visit on Gmod using AtlasChat for chat, emojis, etc. have stop displaying the HUD without me having moved/delete any files. The error that shows up is: addons/atlaschat/lua/atlaschat/cl_init.lua:987: attempt to call...

13th March 2016
by Tupac Go to last post
2 398
Lua

Trails on jobs? DarkRP

How do i make a trail on a DarkRP job? How do i do it so they get that trail only when theyr RUNNING? - I want the electric trail at a start size of 120 and color yellow.

12th March 2016
by McDunkable Go to last post
1 161
Help

solved I need urgent help my server is not working!

So I am currently a customer of GTSGaming (there support isn't very good so I came here) basically whats happened is someone deleted my addons folder and I pressed repair all files and every single file was wiped everything and when I try and re-install...

12th March 2016
by imnotloved Go to last post
10 311
Shitpost

Gmod stops recording the logs after crash.

Hi. Server crashed in the morning, I checked logs and found last record: L 03/12/2016 - 09:18:26: Engine error: nikout\dishonored\assassin1.mdl (2) at 12.0 3.4 -51.7 in contact with nikout\dishonored\assassin1.mdl (2) at 12.0 3.1 -51.7, crash. dist =...

12th March 2016
by YourStalker Go to last post
3 173
Lua

solved capabilities add?

im attempting to make a npc and am using this self:CapabilitiesAdd( CAP_MOVE_GROUND | CAP_OPEN_DOORS | CAP_ANIMATEDFACE | CAP_TURN_HEAD | CAP_USE_SHOT_REGULATOR | CAP_AIM_GUN ) although im getting an error from it saying ')' expected near '|'

12th March 2016
by Wildo Go to last post
2 92
C++

Keys For DarkRP

Hi where would i find the scars key models and be able to use them as a standard key model in my server please?

12th March 2016
by Colesy Go to last post
0 165
Help

solved Trying to make a police ammo box!

Hey, I am trying to make a Police Ammo Box that will sit inside a PD and when a player comes up to it and presses 'E' that player is given SMG1 ammo however when I use Player/GiveAmmo it wont give the player the ammo. The code I am using is; Init.Lua...

12th March 2016
by ShadowHedge Go to last post
5 223
Help

solved Giving ammo with the m9k weapons ?

I am trying to make a ammo box that gives ammo with the m9k weapons. There is one problem pulse ammo (The ammo what most assault rifels use in M9K) isn't part of the default ammo types found here. What should I do ? The code I am using is function...

12th March 2016
by ShadowHedge Go to last post
1 118
Help

solved Coded NPC doesn't show up in 'Q' menu ?

Hi, so I have recently made a custom npc what opens a derma when used. In the future this derma will be a health system. It is currently in its early stages and I am trying to test it however for someone reason it wont show up in the Q menu under npcs or...

12th March 2016
by Robotboy655 Go to last post
5 162
Lua

func button

How can i make a wireframe material to the func_button? I tried to make the code. for k, v in pairs( ents.FindByClass( "func_button" ) ) do v:SetMaterial('models/wireframe') end But it does not work.

12th March 2016
by rtm516 Go to last post
5 318
Help

solved How to make 3D2D seem 2D?

I can't seem to find the right way to do this: Say I ran some basic surface-shape drawing code in the HUDPaint hook and it looked like this: http://images.akamai.steamusercontent.com/ugc/307738934727315777/5760AA2076DF175126CE5740E234B66FF82E743A/ ...

12th March 2016
by James xX Go to last post
20 2,658
Help

SetPos on vehicles

So I'm working on this infinite map addon, and there's a strange problem going on. Basically how it works is that, once you reach the "edge" of the map, it will set your position to the opposite side of the map, and uses rendering tricks and...

12th March 2016
by NeatNit Go to last post
1 284
Lua

solved [DarkRP] A Couple Lua Problems

The following code in addons/darkrpmodifications/food.lua doesn't work. I get no errors: DarkRP.createFood("Banana", { model = "models/props/cs_italy/bananna.mdl", energy = 10, price = 10, requiresCook = false, customCheck =...

12th March 2016
by McDunkable Go to last post
8 253
Lua
12th March 2016
by McDunkable Go to last post
5 348
Question

Question about ethics

Hi people. I want to ask you what you think about using code from other people. I'm pretty new in LUA, and most of the time I learn by checking other addons. The only two addons I published on the workshop were based on another one. I obviously asked for...

12th March 2016
by bitches Go to last post
6 234
Lua

solved Script wont work

Here is a rundown of my code: function SWEP:Initialize() SWEP.Secret = false util.PrecacheSound(SWEP.Primary.Sound) concommand.Add( "togglesupersecretoption", function() if SWEP.Secret = false then SWEP.Secret = true print( "Secret...

12th March 2016
by McDunkable Go to last post
7 162
Help

solved Food Sound Not Working!

So, whenever I eat the food on my server I get this: Create Stream Failed error 41 Failed to load sound "vo\sandwicheat09.mp3", file probably missing from disk/repository Why is this? I also tried to use my own sound and it didn't work... Yes I...

11th March 2016
by Percipience Go to last post
2 222
Lua

solved Issues with sound.PlayFile and IGmodAudio in general.

Hey, A friend approached me earlier today as he's trying to make a map replicate of a TV game show in Hammer, but can't do things such as pause/resume sounds. He told me it should be possible using Lua scripts, if I could take a look for him. I popped...

11th March 2016
by STiGYFishh Go to last post
2 255
Lua

Prevent multiple choices?

Title may be a little vague, but im not sure how to word it, im working on creating a menu for my script, and i want to know how i can set it so if the player clicks the button, then either A. the menu disappears, not to show until say, the next round, or...

11th March 2016
by DillyTheDill Go to last post
4 205
Lua

attach pac outfit on spawn

How would i make it so there is a default pac outfit attatched to a player on spawn? ive looked and can only find pac.setupent which only allows me to attach it to 1 person my error when i try to attach a pac outfit with a second player ...

11th March 2016
by Wildo Go to last post
9 422
Help

solved Derma Item Purchasing System

I've managed to figure out net messages now but im still having problems. I still can't get the buying function to work, i can't tell if its PData or my net messages that aren't working. I need some suggestions on how to set the players PData in when i...

11th March 2016
by LUModder Go to last post
5 546
Lua

solved Make Weapon Change Player Model

Hey Guys, On my ttt server, im trying to make it where if a detective buys this specific weapon it changes his player model. I saw a command (ply:SetModel) but im not sure how i could implement this into a weapon. Any help is appreciated. Thank...

11th March 2016
by Flelux Go to last post
3 290
Help

Properly parent element to child of DIconLayout

Hello and thanks for reading! How would I properly add a panel to a other panel that is parented to a DIconLayout element? Every time I trying something like this: local scroll = vgui.Create("DScrollPanel", base) scroll:SetSize(400, 400)...

11th March 2016
by MPan1 Go to last post
3 124
Help

solved [DarkRP] Money Gravity Gun Problem!

Before we start, yes, I do have CS:S mounted this is proven in the video. So, my money can move... But can't be picked up with the gravity gun. Here's a video showing: https://vid.me/eyeL Please help!

11th March 2016
by Percipience Go to last post
19 645
Lua

solved Thirdperson Camera Collision Problem

So, here is my code: if ( CLIENT ) then local on = false -- default off local function toggle() on = !on

11th March 2016
by Percipience Go to last post
14 582
Help

Gmod lua help - How to lock a open door?

I'm tryng to lock a open door using lua, but only works with the door closed... thx 4 reading :)

10th March 2016
by solid_jake Go to last post
1 625
Help
10th March 2016
by NiandraLades Go to last post
1 144
Question

Is there yet another exploit to crash servers?

Hello Facepunch community, I remember 2 months back there used to be some "corrupt packet" exploit which would bring servers down at an instant, it now seems that for the past week servers of my community (notably DarkRP) have been restarting without any...

10th March 2016
by Kevlon Go to last post
20 1,054
Help

How to attach an entity to another entity ?

Ok so basically if I had a printer entity, and I wanted to make it so when let's say a 'printer cooler' touched it, it would weld / attach the printer cooler to the side of the printer. How would I go about doing this ?

10th March 2016
by tzahush Go to last post
1 144
Lua

How do i draw a model.

How do i draw a model in Derma (The players one) and bind the menu to F4? Thanks

9th March 2016
by CupCakeR Go to last post
13 399
Shitpost

weird chat tags error (it basically says i need a ')' to close a '(' even though i did close it)

The error says on line 57, a ) is expected to close the ( on line 26. Here are all of the lines between line 26 and 57 hook.Add("OnPlayerChat", "Tags", function(ply, Text, Team, PlayerIsDead) if ply:IsValid() then for k,v in pairs(Tags) do...

9th March 2016
by BillyOnWiiU Go to last post
4 175
Question

solved Question about "Lerp"

How can I lerp a value to another point/number in a given time? Thanks in advance!

9th March 2016
by CupCakeR Go to last post
4 802
Help

Lua - Spawn

Hello , I have a problem with my lua code that does not seem to execute. Can you help me ? Regards , Proxene

9th March 2016
by proxene Go to last post
5 260
Question

solved Players can't talk while a panel is opened

Hey facepunch I need help with something. I noticed if our mapvote panel is active / opened our players are not able to talk. (Voice-Chat) Is there a way to bypass this? Thanks in advance.

9th March 2016
by CupCakeR Go to last post
7 309
Help

Map not changing

Hi, I've launched my new server, which is rooftops only. I set it to 25 round limit. But some users let me knew, that after these 25 rounds nothing happens. It's just the postround for an unlimited time. What could I have done wrong? Is it bad, if...

9th March 2016
by DrDemo Go to last post
0 168
Help

User Login with HTTP Request

I am currently trying to make a script that can send sms messages thru https://www.twilio.com/docs/api/rest/sending-messages . The problem I am currently having is that when i want to make a request, it needs to login per say. If it was curl it would be...

9th March 2016
by Coffeee Go to last post
5 306
Lua

solved lua error help

TEAM_ALIEN = DarkRP.createJob("Alien", { color = Color(149,205,237,255), model = {"models/f3alien/slow.mdl"}, description = ], weapons = {"deika_alien_disintegrator","itemstore_pickup","stunstick"}, command = "alien", max =...

9th March 2016
by Spadegaming Go to last post
2 129
Lua

Pac3 in DMOdelPanel

this should be my final pac3 question but how do i add pac3 elements to a model in a dmodelpanel?

9th March 2016
by Noi Go to last post
1 205
Lua

Wondering How To Make Custom Roles For TTT

Hey Guys, I have been playing with my friends on my private ttt server, and found it got a bit boring. So i installed addons on my server which really made the gamemode a lot more fun. Im fairly new to lua(But know the basics) and i was wondering how...

9th March 2016
by Flelux Go to last post
0 249
Lua

solved Creating a chat command?

I want to create a new chat command, on a specific Target, how do I do that?

9th March 2016
by GodGuardian Go to last post
6 228
Lua

PAC3 in lua?

Hi! i was wondering if there is anyway to give a player a pac3 outfit using lua?

9th March 2016
by Wildo Go to last post
5 507
Help

Prop Hunt - Join Team

Does anybody know how to disable team switching in Prop Hunt so that people don't switch teams to avoid being a Hunter. Please help me

9th March 2016
by NiandraLades Go to last post
1 203
Request

game.UnMountGMA()

Hello All, This is a request for a game.UnMountGMA() that if you supply a file path and the table that game.MountGMA() returns it will unmount that file. I would like this because i am recreating the gmod toybox in gmod 13 so far its going well but...

9th March 2016
by uRandomAlex Go to last post
20 4,668
Lua

button.DoClick Help

Simple question, im trying to make it so when you click a button it gives you an item. vddb.DoClick = function( ply ) ply:Give("ent_food_coke") end, ????

9th March 2016
by MPan1 Go to last post
6 357
Lua

solved DarkRP Jobs Bodygroups

Hey! So I have the following in my jobs.lua TEAM_TEST = DarkRP.createJob("Test", { color = Color(0, 0, 0, 255), model = "models/half-dead/metroll/a1b1.mdl", description = ], weapons = {}, command = "test", max = 0,

8th March 2016
by Percipience Go to last post
4 465
Question

solved Does PData have a size limit?

Thinking about storing masses of json in it.

8th March 2016
by BillyOnWiiU Go to last post
1 157
Question

Blending of Animations/Sequences (player)

How does GMod smoothly blend the player animations, for example standing to walking and vice versa, as introduced in GMod 13? Function for blending sequences? I can't get it to work with 'custom' animations. Instead they very abruptly move from sequence...

8th March 2016
by vrej Go to last post
3 193