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

Entity Damage

Hello, I am trying to make this tree entity damaged and then disappear when health at 0. I'm just having a hard time doing this. I have the idea that it is Entity.SetHealth, I did try putting it in ENT:Initialize, but it didn't work for me. I will post my...

27th April 2015
by sggamer Go to last post
2 172
Lua

Need help with these errors

I'm trying to fix an old gmod 10 ODST drop pod addon and I'm getting these bugs: addons/odst_drop_pod/lua/entities/odst_drop_pod/init.lua:184: attempt to call method 'SnapEyeAngles' (a nil value) 1. playerexit -...

27th April 2015
by glarkon Go to last post
10 240
Lua

Getting all darkrp jobs.

I would like to make an F4 menu and would the job part look something like this? for k,v in pairs(teams.GetAllTeams()) do jobName = team.GetName( v ) print( jobName ) end

27th April 2015
by meharryp Go to last post
5 252
Help

addon issues (surfaceproperties, mdlcache, particles, lua autorun etc.)

I have a variety of issues with my latest addons, that I need some help with. I have no idea what to do about them! Firstly, here is the error log I get, from the console. It should help The first big issue is with the autorun lua, included in a...

27th April 2015
by kizzycocoa Go to last post
5 471
Stupid

Helpful Apps or Processes for Maintaining a GMOD Server

I am starting to help my son start and maintain an Online Multi-Player GMOD DarkRP server (NFO Servers). Having a technical background has helped me give him some general pointers, but due to all the errors he tends to get every time we add something, I...

27th April 2015
by Acecool Go to last post
10 655
Lua

How would I set a player's team right before they disconnect?

Hello. I've discovered a basically gamemode-ruining bug that occurs when, well, I'll have to explain the mechanics. So, a code I made for this gamemode I'm making tells the game to: On a player's death, set their team to TEAM_SPECTATOR. Change...

27th April 2015
by A Fghtr Pilot Go to last post
14 400
Help

Finding barrel position of a gun.

I am trying to make a weapon that creates a visual effect that start at the barrel position of the gun. The only trouble is that I have no idea how to find the barrel position of a weapon. I tried using weapon:GetViewModelPosition(), but apparently SWEP...

27th April 2015
by Robotboy655 Go to last post
2 213
Help

Help with adding SWEP to Detective/Traitor Credit shop in TTT

I am getting this error when I try to open up the Detective shop after buying a custom weapon in it. In the SWEP for the weapon, I put the following to add it to the shop: table.insert(EquipmentItems, { id = EQUIP_TESLA, type ...

27th April 2015
by Exho Go to last post
3 316
Help

What is the WorldModel and the ViewModel for the PhysCannon?

I've tried "weapon_physcannon" for both world and viewmodel, but when I did that the ViewModel showed up as the HL2 pistol, and the WorldModel was the HL2 revolver.

26th April 2015
by Tomelyr Go to last post
1 187
Help

DrawPoly SetMaterial not working

Hi all, I've recently started using the surface.DrawPoly function and got the shape I wanted, however when I try to apply a material ( using surface.SetMaterial ) it just goes black. Is there a way I can use DrawPoly with a material ? Thanks,...

26th April 2015
by Acecool Go to last post
4 269
Help

How would i update a F4 menu 2.4 -> 2.6

Hello, bassically i need to update an F4 menu but i have no idea what to do. I know i need to replace some old code with new code. could somebody point me in the right direction? Thanks!

26th April 2015
by vontiagaming Go to last post
5 455
Help

How would I install a Custom Addon? (READ BEFORE POSTING PLEASE)

Alright,stupidest or most complicated question ever. I have a DarkRP Inventory system,how the frick do I use it? Idk how to get the weapon / SWEP for it,one thing I did find is in Entities < Other I found a Item crate,which was supposed to come with...

26th April 2015
by James xX Go to last post
13 819
Lua

SomeEntity:SetPlayerColor(ply:GetPlayerColor()) or how to setplayercolor to ragdoll

SomeEntity:SetPlayerColor(ply:GetPlayerColor()) or how to setplayercolor to ragdoll i tried ent.GetPlayerColor = function() return ply:GetPlayerColor() end but, this works only ClientSide. How to setplayercolor on server ragdoll?

26th April 2015
by Phoenixf129 Go to last post
4 377
Help

solved Steamauth Issue

I have been getting thie below errors for a while now with players disconnecting for no apparent reason. I've looked into the error with little success. What is they error and what could possibly be causing it? Thanks for any given help :) STEAMAUTH:...

26th April 2015
by !cake Go to last post
2 318
Map

Using sound.Add as a soundscape

SO. I've recently discovered that the Garry's Mod workshop frowns upon text files (custom soundscape comes in the form of a text file of course). Upon requesting some help, I was told to use sound.Add, and given documentation. However, I am at a loss as...

26th April 2015
by imp0se Go to last post
10 387
Lua

This weapon won't automatically spawn

Is there any specific reason for which the weapon won't spawn? AddCSLuaFile() if CLIENT then SWEP.PrintName = "Revolver" SWEP.Slot = 1 SWEP.Icon = "vgui/ttt/icon_revolver" end

26th April 2015
by frankerdot Go to last post
5 362
Help

Help with GetActiveWeapon ( 2 Last )

Im trying to draw the playermodel if the LocalPlayer has a certain weapon equipped. Current code: if LocalPlayer():GetActiveWeapon():IsValid() && LocalPlayer():GetActiveWeapon():GetPrintName() == "Identification Card" then function HUD_Player() ...

26th April 2015
by AustinH Go to last post
46 906
Help

Problem with 3D2D on base "base_ai"

Im working on quest npcs for DarkRP. And i got a problem while making a 3D2D UI for npcs. A hook ENT:Draw() is not worked on base "base_ai", so after some time searching thru wiki - i found hook: ENT:RenderOverride() And its working.... kinda.... Its...

26th April 2015
by TylerB Go to last post
7 384
Help

Draw Distance

Is there a way of changing the draw / render distance on my server?

F14
26th April 2015
by SteppuFIN Go to last post
3 317
Release

Wyozi Libraries

Hello. Over time I've been working on a number of libraries which I think are objectively decent, so I thought I'd post them all here on the off chance that someone finds use for them. Medialib https://github.com/wyozi/gmod-medialib Could be...

26th April 2015
by broscodo Go to last post
6 932
Help

solved ulx gag

Ulx gag doesn't work. When I gag of the player occur nothing. The player of gaged can speak. I tried to change a hook, but didn't help. How to correct? ------------------------------ Gag ------------------------------ function ulx.gag( calling_ply,...

26th April 2015
by godred2 Go to last post
10 492
Help

animated texture with normal map

How to make an animated texture with the normal maps?

26th April 2015
by saref Go to last post
4 303
Games

Point shop bug?

Hello guys.I'm trying to do a single use item on point shop. But for some reason didn't worked. ITEM.Name = 'SANIC MASK' ITEM.Price = 100 ITEM.Model = 'models/props_junk/garbage_glassbottle003a.mdl' ITEM.NoPreview = true ITEM.SingleUse = true ...

26th April 2015
by godred2 Go to last post
7 398
Help

solved How to get client's mouse's target?

How to get client's aim vector/position their mouse is aiming at when SWEP:PrimaryAttack() is called.

26th April 2015
by GModKitty Go to last post
2 196
Help

How do i set a weapon type?

If i go to a rp server, after a little my gun will go all over a my screen. I open up my console it says SWEP : SetWeaponType - ActIndex ( '' '' ) and some other things, but my console wont come up unless im in a game, help? also, tell me if this...

26th April 2015
by Eridan509 Go to last post
0 194
Help

solved Playing a sound script

sound.Add{ name = "gasrob_alarm", channel = CHAN_STATIC, volume = 1, level = 100, pitch = 100, sound = GASROB.alarm, } How do I play it?

Ott
26th April 2015
by AK to Spray Go to last post
6 271
Stupid

solved Make a model invisible?

i'm sure it involves ENT:SetColor(), but every combo i put in gets me a vibrant Purple color.

26th April 2015
by Joeyl10 Go to last post
1 182
Help

solved Where to find/ how to get and use line textures like the physgun beam.

Where do I find/ how to I get and use line textures like the physgun beam? 25th April 2015 What I mean by this is, how do I actually use the material. For example "cable/blue_elec" is the file hierarchy for the blue electricity texture, but I am not...

26th April 2015
by Luni Go to last post
4 251
Lua

How would I create a grenade and set a velocity and position?

Hello. One of the key features I plan on implementing into a SWEP I'm making is it's ability to shoot SMG grenades(the entity name of this is grenade_ar2) for it's secondary fire. I've tried a lot of things, but I can't get it to work. What ends up...

26th April 2015
by MysticLlama Go to last post
7 380
Stupid

The simplest question ever,why do poeple lose there items when they disconnect?

I feel really stupid to ask this,because I feel like it is SOOO simple. However I've searched everywhere but if I put a tag in on google,wrong thing,not really any tags,wrong thing. How do I make sure people do not lose there items in pocket on...

26th April 2015
by AK to Spray Go to last post
7 375
Lua

Blacklisted Keypads

Hey guys, sorry for this idiotic question, it appears that one of my staff members was foolish enough to blacklist keypads, and now i'm unable to unblacklist them seeing as they won't show up on my FPP blacklisted models' list. Any ideas? Thank you! ...

26th April 2015
by Coolboy Go to last post
1 177
Help

Server Crash - IVP Failed

L 04/25/2015 - 20:52:32: Engine error: IVP Failed at /home/buildbot/buildslave/rel_hl2_linux/build/src/ivp/ivp_physics/../ivp_utility/ivu_vhash.cxx 157 I got this error in the server logs and the server crashed. OS : Linux centos 6.5 64 bit

26th April 2015
by James xX Go to last post
4 271
Question

solved equiavilent of net.Incoming for usermessages/printing out all usermessages sent?

I wonder if someone could point me in the right direction for how I could print out usermessages, same way as net.Incoming where it's possible to overwrite that function to print out, but I'm uncertain how to do it if I'm supposed to do it with hook...

25th April 2015
by Busan1 Go to last post
4 311
Lua

how to fire bullets from a gun's position?

trying to get a bot to shoot a damn gun. i'm using this currently: function ENT:GetAimVector() return self.Enemy and (self.Enemy:GetPos()+Vector(0,0,40)) end

25th April 2015
by A Fghtr Pilot Go to last post
4 365
Lua

solved DarkRP armor entity

Hello, so I have been trying to make an armour entity that gives 100% armour on use. First problem I have encountered is that when I use the entity it doesn't give armour and it "disappears" or better explained it just becomes invisible except for its...

25th April 2015
by BigBrainAFK Go to last post
7 456
Help

solved Which hook is called after addons are loaded?

I created a relatively simple entity spawning script but, it's having issues with spawning since addons are loaded after this script is ran. I put this in the autorun/server directory of lua hook.Add( "PostGamemodeLoaded", "SpawnPiano", function()...

25th April 2015
by James xX Go to last post
4 183
Lua

Restrict Physgun Touch

Hello, I wanted to know if there was someone to restrict the physgun (for admin) from using any of the superadmins props or even better would be if there was a way to restrict it using the ranks of ulx making one rank can't use another ranks props?...

25th April 2015
by Darkblizzard Go to last post
0 161
Help

Garry's mod gates open by team

So what i want are these gates: http://prntscr.com/6xc1mb to open when a certain team DRIVES up to them. Anyone got code for that? Or can tell me how i can do it.

25th April 2015
by AIX-Who Go to last post
10 558
Lua

solved How to make disintergating weapon? Help please.

How to make bullet-shooting swep that have disintegrating bullets? Any idea?

25th April 2015
by xgdg Go to last post
5 259
Help

solved Difference between Angle.p/pitch, y/yaw, r/roll?

Angle object. Properties/fields (1, 2): p/pitch y/yaw r/roll What's the difference between the two?

25th April 2015
by Robotboy655 Go to last post
4 261
Help

NEXTBOT - Damage?

Hello I've recently started a little project for myself on making bots do numerious things and the one I'm struggling with is making the bot kill me when he's in my face, could I get some help please? AddCSLuaFile() ENT.Base = "base_nextbot"...

25th April 2015
by Chickengbs Go to last post
0 215
Lua

Script Error

Alright, so a script error has been popping up for no reason recently and I can't find the problem. The last time this happened, I restored the backup files to get rid of it then it went away, but now it has come back when I haven't even changed the jobs...

25th April 2015
by meharryp Go to last post
3 315
Help

Make a server faster

Hi everybody , I'm got a darkrp server running on ubuntu but i'm got a little problem : when i want to spawn a tdm car or a weapon there is a server freeze of 2-5 sec , so when there are a loot of player who spawn a differents car , the server...

25th April 2015
by nico64160 Go to last post
16 590
Lua

[Gmod Lua]Autoban peaople in specific group

Hello i recendly made my own gmod server but i dont wand any people that joined a specific group please post a full example and say where i need to put it i am kinda new so its importand its something like this: if...

25th April 2015
by gmonfrere Go to last post
8 577
Help

solved How to repaint part of a DPropertySheet?

Here's an example of a DPropertySheet from the wiki- local frame = vgui.Create( "DFrame" ) frame:SetSize( 500, 300 ) frame:Center() frame:MakePopup() local sheet = vgui.Create( "DPropertySheet", frame ) sheet:Dock( FILL )

25th April 2015
by MPan1 Go to last post
1 184
Lua

How would I create a system that tells players how long they stayed alive?

Hello. I'm trying to make a system that times how long the team of players, in my new gamemode, stays alive. If you don't know what I mean, I mean that it's a system where, after each player is dead, it shows a message that says something like "You...

25th April 2015
by AK to Spray Go to last post
4 293
Lua

Spawning Jobs with Armor

I am currently having trouble trying to add armor to a job, since I haven't done it before I have no idea what to put. I was wondering if someone could give me the code and where to put it, here's the coding for the job. TEAM_MC2 =...

25th April 2015
by Exotic Prodig Go to last post
5 231
Lua

solved Making a rebel(npc_citizen) hate anything that is a player

Hello. I'm making a gamemode, and one of the key features is that rebels try to kill players. How would I do this? I've been using both NPC:AddEntityRelationship and I've tried using NPC:AddRelationship in my NPC spawn code(I used player.GetAll, I don't...

25th April 2015
by A Fghtr Pilot Go to last post
0 194
Lua

solved Garry's Mod Lua -- A command to play a sound file in the sound directory.

Hey guys, I am kinda stupid when it comes to coding lua so I was wondering if someone would kindly make me a little script that would allow me to enter a command like !song and then it will play a specific file in the sound directory. Please add...

25th April 2015
by StrandedHeart Go to last post
4 240
Question

FPP Ranks

Is there a way, with Falco's Prop Protection, to let certain groups be able to pick up users' props? I want the donoradmin group (below default admin) to be able to move/remove people's props.

24th April 2015
by Sweepyoface Go to last post
0 184
Lua

solved Renaming A Gamemode (DarkRP -> ZombieRP)

I know I know,doing this will put my server at the very bottom,but nope,ZombieRP is actually high up there,with 7 Servers (Only 2 Running with some good players). I'm running DarkRP 2.6.1,with DarkRP Modifications installed in the addons folder,I do use...

24th April 2015
by DragonPirates Go to last post
10 852
Help

Duel Elites SWEP

Is there any way to get a working SWEP of Duel Elites that does not have completely glitched animations and muzzle flashes? I've seen servers with them, but I've never ever been able to actually find a SWEP of one. Can anyone help?

24th April 2015
by XRAYBlake Go to last post
2 262
Help

All NPCs from addons aren't spawning..

Just randomly, all my npc entities aren't spawning. I have no reason why. 22nd April 2015 These are normally permanent npcs. Literally no reason for them not to spawn.. Weird..

24th April 2015
by Robotboy655 Go to last post
4 292
Lua

[Gmod Lua][Pointshop 2]Give certain amount of Points when done watching a video

Someone send me the code please the code to give Points is: PLAYER:PS2_AddStandardPoints(points, message, small)

24th April 2015
by James xX Go to last post
1 333
Help
24th April 2015
by XRAYBlake Go to last post
31 799
Help

The hard part of making a new gamemode...

I really want to get working on a new gamemode. I can script lua and I have to tools for making a gamemode, but I am stuck at this point... I don't have the idea for a gamemode. Consider this thread a brainstorm of gamemode ideas. Please only share...

24th April 2015
by XRAYBlake Go to last post
10 514
Help

A little Pointshop Help

So I am making an item for pointshop so that someone needs to have the item equipped in order to double jump. I have it working fine on my private server which is hosted in windows 8.1 on my PC but when I move it over to my Linux DS then for some reason...

24th April 2015
by npd1124 Go to last post
3 331
Help

Strange error with mysqloo

Hello everybody ! First post, i ask you help with this strange error that i get with mysqloo : Here's is my code. /*--------------------------------------------------------------------------- * *

24th April 2015
by Cabillaud94 Go to last post
2 298
Help

solved Usermessages causing server lag spikes?

I've noticed a lot of spikes on my server recently and checked it from net_graph 3 and noticed the following; As you can see, it is caused by usermessages - does anyone know what could possibly be causing this? The server is running DarkRP

24th April 2015
by GmodLUA Go to last post
4 626
Question

solved Does toolgunning stuff send usermessage by default?

everytime I use toolgun on something, I get usermessage in net_graph. I searched through every single addon(searched for tool in notepad++ and addons dir), but I find nothing that sends something. It's not the same in local server but I don't know if...

24th April 2015
by Busan1 Go to last post
2 269
Help

Non SWEP equipmetn

I was wondering how to add non-SWEP equipment items to the equipment shop, and more than that, where to add non-SWEP equipment items to the shop. Can anyone assist?

24th April 2015
by GModKitty Go to last post
0 145
Help

GDCW Impact Error

Hi. I asked permission for their code of some modified GDCW base stuff, and I ran into this error whenever a round impacts with grass. Every other material is fine. Excuse me if it's something simple, I'm a total noob to lua. addons/laser...

24th April 2015
by code_gs Go to last post
4 461
Help

Donation Box - DarkRP

Hello! I was bored so I decided to make something worth my time, or is it? :O I've simply made a donation box for hobos on darkrp however when someone puts x amount into the box ( by money touching the box ) it simply doubles the amount e.g I put iin...

23rd April 2015
by James xX Go to last post
13 494
Help

Deathrun & HomeStuck PlaySet

So basically I want to use these player models on my deathrun server... Not in the Pointshop but the same way they are intended to be used with the GUI that pops up when you spawn in. But, for some reason whenever players do /changeclass mid-game & choose...

23rd April 2015
by D3M0NiiCx Go to last post
6 314
Help

solved T/D item shop in TTT

In the terrortown file, where can I find the various things that are in the T/D item shop, and more specifically, the .lua file that contains the code for armor? Also, if it isn't the same file, I would also love to know what .lua file runs the T/D shop....

23rd April 2015
by James xX Go to last post
1 170
Request

Searching for Programmer for a community server [PERP]

hello, i am looking for a programmer to be committed to the server, to be in contact with the host of the server and the admins. the mode is PERP. *16+ years old *stay in contact with the host all the time. *update the server weekly (bugs,...

23rd April 2015
by mijyuoon Go to last post
10 398
Help

solved Are there any huds with these requirements?

I'm currently trying to expand my knowledge in LUA and I am best taught by reading and understanding the code. At the moment I'm troubled with how to make a custom Weapon selection system, aswell as a hud pickup draw. So that leaves me at my question,...

23rd April 2015
by TheClassified Go to last post
5 268
Question

solved timestring to time

Hi all, I'm searching for a method to convert a timestring like "1d2m" (1 day 2 months) into time like CurTime() + timefromstring("1d2m"). How can I do this? Thanks! Darrell

23rd April 2015
by Darrell Go to last post
6 253
Question

DarkRP Server Issue

On my live server I have an issue where players can see the info above other player's heads from miles away and through the map. Is there anyway to fix this? It wasn't always like that, and if I edited a folder I can't find which one it was.

23rd April 2015
by RsmCrazyGamer Go to last post
2 170
Lua

Change of command

How can I make a change teams? I tried this: function ChangeMyTeam( ply, cmd, args ) local oldTeam = ply:Team() ply:SetTeam("Spy") GAMEMODE:PlayerOnChangeTeam(ply, "Spy", oldTeam) end concommand.Add( "set_team", ChangeMyTeam )

23rd April 2015
by VortexZ Go to last post
5 253
Lua

solved TTT Give health to T?

Okay so i am messing around with the addon "powerrounds", what I'm trying to do is add a Juggernaut round. The only thing I don't know is how to code for health? Basically i just want a bit of code, (or a page that tells me) to change hp, if you could...

23rd April 2015
by Cynicaldead Go to last post
2 161
Help

Developing a gamemode!

Hello facepunch, I am making a gamemode and I am stuck on probably the hardest part. It is the idea of the gamemode. Can anyone recommend me something. I want to make it something that everyone can enjoy... I'll be working really hard on this one :) ...

23rd April 2015
by VortexZ Go to last post
10 447
Lua

Why won't my teams spawn in the correct spots?

Hello. In my gamemode I've kinda abandoned for a while just because of this one error, my teams I created don't spawn in the info_player_counterterrorist or info_player_terrorist spots they're assigned to spawn in. I need help... I have no idea what I...

23rd April 2015
by A Fghtr Pilot Go to last post
8 285
Help

Need help with LUA random loop

Hello FP, I'm using this example from the gmod wiki: === websites = { "facepunch.com", "google.com", "steampowered.com" } print( "I think the best website ever is " .. websites .. "." ) ===

23rd April 2015
by AK to Spray Go to last post
6 615
Help

Removing entity from map in deathrun

Hi all, I have a bugged entity on the deathrun map crash_medievil. I want to remove the entity but for some reason this is not going well... hook.Add("ShowTeam", "enityid", function( ply, ent ) print( ply:GetEyeTrace().Entity ) ...

23rd April 2015
by hipy Go to last post
7 752
Help

FastDL - 1 Directory for multiple servers?

Hey! I have servers and for each one i have own fastdl directory. Can i just make 1 fastdl directory and put everything there? Or will it add all files? Or the resource.AddFiles only?

23rd April 2015
by dingusnin Go to last post
2 230
Help

Q Menu Tabs And Tools

Hey, I am making darkrp and i would like to restrict some stuff in Tool and Prop menu. How can i remove tabs, tools and props?

23rd April 2015
by XRAYBlake Go to last post
1 161
Help

$texturegroup skinfamilies Question

Hello, I have a model with few Skins: (only 2 skins for now, but I make soon more). My Question is, can I change the names "Skin 0", "Skin 1" and so on? If yes, how?

23rd April 2015
by Shaklin Go to last post
2 260
Lua

DModelPanel set animation for model

how would i go about setting the model to use an animation such as taunt_cheer in a panel? i didn't make this btw self.ViewPlayerModel = vgui.Create( "DModelPanel" ) self.ViewPlayerModel:SetModel( LocalPlayer():GetModel() )...

23rd April 2015
by Busan1 Go to last post
3 342
Help

solved Infinite Sound Loop

I'm trying to figure out how to make a basic entity infinitely loop sound, but in a way suited for long term and multiplayer. CreateSound needs to be redone when a new player joins apparently. Could someone point me in the right direction? ...

23rd April 2015
by Robotboy655 Go to last post
4 405