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

solved HUD that fits all resolutions?

I'm completely lost. I can't seem to figure out how to make the HUD stay in a constant position, no matter what resolution the client is running. I have tried multiple different ways to go about this, but none of them seem to work. local SCREEN_W,...

10th April 2016
by NeatNit Go to last post
10 187
Help

DarkRP Several Jobs 1 Limit

Alright so this is a weird one. I am using the DarkRP gamemode as a base for my RP server. I have many Police jobs setup but just with different ranks that require different amount of playtime. Rather then have a limit to each rank I'd rather have a limit...

10th April 2016
by Joshpai Go to last post
1 94
Help

Player:AnimRestartGesture not always playing the correct ACT

I've made a custom animation for a player model of mine (a custom SMD) which replaces an ACT from the ACT Enumerations and gets played by using Player:AnimRestartGesture. It plays OK but only about 50% of the time. The other 50% it plays the ACT that I...

62
10th April 2016
by Robotboy655 Go to last post
7 177
Lua

Quick Scoreboard questions

I'm trying to edit a scoreboard that has been made by someone else, and I'm adding an icon16 for certain groups, and I have a few questions. First question, is there another more effecient way to do this? (Setting the icons for each group):...

10th April 2016
by geferon Go to last post
16 251
Lua

can we play minecraft in gmod?

In fact i want to make a map in gmod like minecraft. i have seen many mc maps in gmod,but those maps are already done,we can't destroy or add some cube in that map. imagine player spawn on the ground , everyone has millions cube like mc god...

10th April 2016
by NeatNit Go to last post
4 147
Question

solved What does PlayerHurt do on client?

The wiki (http://wiki.garrysmod.com/page/GM/PlayerHurt) says that PlayerHurt is a shared hook, so naturally I decided it'd be a good idea to try and make an entirely clientside hitmarker script. Obviously that didn't work, so now I'm here. There's a...

10th April 2016
by redpr1sm Go to last post
6 132
Lua

solved DarkRP Shipments / Categories Issue!

This is a very strange issue I'm having. Take note that another category I have set up, Snipers, DOES work, however this one does not.. Okay, so.. here is the code from my categories. DarkRP.createCategory{ name = "Handguns", categorises =...

10th April 2016
by sirlenopow Go to last post
6 98
Help

solved Custom HUD flickering in some areas of the map?

Hello. I have created a HUD for my DarkRP server. I created it in Singleplayer, and everything works TOTALLY fine. But after I uploaded the .png file(s) to my FastDL, and added the image and cl_hud.lua file(s) to the server, everything went south... The...

9th April 2016
by Cosmo51 Go to last post
3 136
Help

Addon for Tab/playerlist TTT server

Hello Facepunch Community its two weeks ago that i made a TTT server now I search a addon. At many server you can press tab then you can right klick on one name after this you can decide if you want to copy the steam id or go on his steam Profil. Can...

9th April 2016
by daWILLI Go to last post
3 101
Help

Open derma with USE on other player

hello i want to make a derma menu open on player presse USE ( e ) on other player and derma menu open ( sorry im french )

9th April 2016
by xBastien59 Go to last post
6 96
Help

Help with FastDL

Hi, first of all I don't know if this is the proper section to post it in (couldnt really find something more fitting than dev discussion) but anyway, I'm having a bit of trouble setting up FastDL on my DarkRP server. I've been using workshop downloads...

9th April 2016
by Threebow Go to last post
1 74
Lua

Get data from map entity

Hi there I am trying to get some data from the map that I am using. The map creates a bunch of entities, some of which are of entity type "power_socket". In EntSpy I can see that they have a "buildingid" assigned to them, but how do I get this from the...

9th April 2016
by maldark Go to last post
10 284
Help

Find in sphere

How do i check if a player entity is in a radius using the https://wiki.garrysmod.com/page/ents/FindInSphere and then i run a function if there is a player in that radius

9th April 2016
by xAl3xTh3K1nG Go to last post
7 137
Help

Add Steam ID tab to TTT Scoreboard?

Hello, I was wondering if it is possible to add a new Steam ID tab next to their name to indicate their steam ID in the TTT scoreboard? I've tried a few modifications to my Sb_main and Sb_row files but nothing worked correctly. If anyone knows how...

9th April 2016
by oliking021 Go to last post
3 383
Help

Need help with PlayURL!

I'm trying to make a Purge script for my DarkRP server, and everything's going great so far. My only problem now is that I can't get any sound to play. I've tried changing it to a direct file by putting it on my own site, and I've also tried having it...

9th April 2016
by Bubbie Go to last post
4 110
Help

The function surface.DrawLine does not draw the lines the way I want to

So, the thing is that I'm drawing four lines instead of one. Here is the red circle, where the drawing ends in the current iteration. https://drive.google.com/open?id=0B6vgydhudtoAUTFrVkZzSXRYN3M Remember when the point is not located in the screen,...

9th April 2016
by dvd_video Go to last post
2 80
Lua

[Lua Issues] attempt to compare string with number

Hello I've tried to create a command to change Players skins. I have asked help and we nearly fixed it but then I don't know what happend. The issue is line Nr. 35 attempt to compare string with number. Here is (a part) of the code and issue...

9th April 2016
by Nak Go to last post
16 439
Lua

solved Aligning text in DTextEntry

I've been cleaning up the Nutscript character menu since it was a bit cluttered and I was left with only small entry panel for the character description, which worked well with the more busy menu but now leaves it looking rather empty. I'd like to...

9th April 2016
by Shadico Go to last post
10 212
Help

Im having a bug on Gmod thats is blacking out all texts

Ok, im having a problem with Garrysmod(which is my life) and it just kills me when it happens. I join Public servers good just every id say, 3rd server i join without restarting gmod shows text blackened out and it can also be texts and pictures on props....

9th April 2016
by wh1t3rabbit Go to last post
1 80
Lua

solved LUA Stacker Tool stacking effects.

Hi, not a LUA expert but familiar with programming. I'm basically trying to make the stacker tool stack effects. All I get is watermelons though: I presume it's a default in Garry's mod. So I'm wondering how to stack effects. An interesting solution...

9th April 2016
by Mista Tea Go to last post
12 257
Help

solved attempt to index global 'ply' (a nil value)

I'm working on converting some parts of a gamemode to ULX and Im stuck on a simple error. Here's what I have for it: AddGear(" Puke", "Left click to puke everywhere.", false, function ( Player, Trace ) if not ply:IsUserGroup("owner") then...

9th April 2016
by VeXan Go to last post
2 89
Help

Swep open menu need help

hello i have a problem with swep (sorry for my english i'm french ) error : shared.lua:57: attempt to index global 'umsg' (a nil value) my shared.lua code function SWEP:PrimaryAttack() local tr = ply:GetEyeTrace() if tr.Entity:IsPlayer() then ...

9th April 2016
by whitestar Go to last post
1 38
Help

Lua Help, 'SetupMove' and 'EntityRemoved' are appearing to be a nil value, when trying to run my darkrp server?

Ok, So when I am trying to run and connect to my gmod darkrp server, my console is getting spammed with these messages: gamemodes/darkrp/gamemode/modules/base/sh_gamemode_functions.lua:5: attempt to call field 'SetupMove' (a nil value) 1. unknown -...

9th April 2016
by HardCostKill3 Go to last post
0 63
Help

Unknow error

Hey guys i need help i keep getting this error i have no idea why everything is correct i believe and yes its a dog meat follower WARNING: npc_dogdog2(models/npc/dog/npc_dog.mdl) has no eye offset in .qc! Model missing: models/dogmeat.mdl

9th April 2016
by SirWolfAlot Go to last post
3 65
Help

file.Exists not working?

Hello, currently im attempting to make an anti cheat using file.Exists and debug.getinfo, but for some reason file.Exists doesn't work. Right now here is my code: Server: util.AddNetworkString("verifylua"); net.Receive("verifylua",...

9th April 2016
by NeatNit Go to last post
1 64
Help

How do you get the vector position of a 3D2D point?

I'm using a cam.3D2D in which I've draw a rounded box (obviously a 2D drawing). I need to find the vector position of the top left of the box.

8th April 2016
by GregT2207 Go to last post
2 79
Help

Rotating a PhysicsInitBox

So in the gamemode I'm working on there's a tool that creates invisible walls from 3 given points, as shot by the toolgun. It creates it with PhysicsInitBox. But the problem is that this box doesn't seem to rotate correctly with the created entity. I can...

8th April 2016
by Zet0r Go to last post
2 79
Help

Scaling a player

How to properly scale a player? When I do SetModelScale both on server and client, I get prediction errors when move near walls, ceilings, etc.

8th April 2016
by TheMostUpset Go to last post
5 134
Help

solved 'Found unused .gma addon' Error

So, I put together my first voice pack today, and I've failed too many times now, so I could use some help. I don't know where to start; have I got a pathway wrong? is the addon.json messed up? I honestly have no clue. If you want me to post something...

8th April 2016
by HDD_Neptunia Go to last post
5 124
Help

Help with a LUA error for a short GMOD no-clip script

I really only have half an idea of what I'm doing... Any help is appreciated. Error: lua/autorun/server/antinoclip.lua:2: '=' expected near ' ' 1. unknown - lua/autorun/server/antinoclip.lua:0 Code: local function AntiNoclip(ply) if...

8th April 2016
by AK to Spray Go to last post
5 90
Help

solved Help with DarkRP jobs.

Here's the problem: When I fix jobs, they work, as far as displaying, but I can't change to them. I can only change to core DarkRP jobs. (Citizen, Hobo, etc.) Here's the console error. Lua is unable to understand file "darkrp_customthings/jobs.lua"...

8th April 2016
by DrTaq Go to last post
0 25
Help

solved Show DarkRP player model on HUD?

Hello. I am currently creating a HUD for my DarkRP server. I am trying to draw the player model of the player in the HUD. Does anyone know the best way to go about doing this? Thank you!

8th April 2016
by Cosmo51 Go to last post
3 76
Lua

Nutscript commands for ULX?

I have been working on ULX commands for nutscript. I used to just have the ulx command route through chat. Now I'm working on making it work with RCON. Here is what I have, but it is not seeming to work. local flags = { "p", "e", "t", "c", "C",...

8th April 2016
by AGApollo Go to last post
1 67
Help

[TTT] force spectator into first person only ?

Is it possible to force spectator into first person only ?

K4i
8th April 2016
by K4i Go to last post
4 67
Stupid

Strip weapon by class ttt

is there any way of stripping everything in, say, a pistol class without going through and putting the name of every pistol down?

8th April 2016
by Gamefreak26 Go to last post
10 440
Lua

Overheating for a weapon

I'm trying to create a weapon that, well, overheats. So I set a variable called SWEP.Heat and reset it at 0. Then, I do this: if self.Heat >= 255 then --Create explosion, destroy the gun return end if self.Owner:KeyDown( IN_ATTACK ) and...

8th April 2016
by JasonMan34 Go to last post
3 92
Question

Removing Key From Table ( key is player object )

I have a table called GAME.Participants where the key is the player object and the value is a table containing data such as score. When a player leaves, I need to remove the key from the table equal to their player object. Can this be done?...

8th April 2016
by Semajnad Go to last post
17 199
Lua

How to properly make SNPCs attack?

I'm a bit confused on the concept of combat for SNPCs. I created some basic citizen SNPC that can wander around my server however, at the moment I can only get it to run away if getting shot which I find quite lacking for flight or fight. I tried using...

8th April 2016
by vrej Go to last post
6 234
Help

solved HUD with custom materials. Pink checkerboard error.

Hello, I am currently making a custom HUD for my DarkRP server. I created the image in PS, converted the file into a VTF, and also created the VMF. I saved the file(s) in my garrysmod/materials/darkrp_themes folder. I created the darkrp_themes folder...

7th April 2016
by Cosmo51 Go to last post
7 100
Help

SWEP's Random Sounds on Multiplayer Playing Twice

Hello Facepunch. :smile: I am developing a small SWEP, and I need a bit of help. Currently when the user attacks using the SWEP, it will play two different sounds, each from its own selection. -The sound emitted by the weapon itself is a random swing...

7th April 2016
by NeatNit Go to last post
11 223
Lua

mysql

Hi i am new to this forums first off Now my question is are there any good mysql setup tutorials out there i cant find any can someone help me finding this? Thx Florian

7th April 2016
by Dgc2002 Go to last post
5 154
Request

Delete DFrame if key is pressed again

Hello i'm working on an F2 menu but i have a problem. If the user click again on F2 when Dframe is open,it won't close DFrame. So i'm looking for a solution to check if Dframe is open and if user is pressing F2 again to close. My code to call my...

7th April 2016
by trashium Go to last post
22 336
Repeat

solved Garry's Mod Wiki and Documentation Discussion

Recently I've made quite a lot of edits to the Wiki, which hopefully you all use as reference. It's not that I seek out things to edit or fix, it's just that every time I come across something that could be improved I try and improve it. Unfortunately,...

7th April 2016
by NeatNit Go to last post
12 257
Help

Different game-modes in different sections

So I recently open'd a server with the underdone gamemode. Here is the issue. This is a Underdone gamemode. No one knows what underdone is. so no one will join this gamemode that is listed FARRR down in the list So the question: is there ANY way to...

7th April 2016
by whitestar Go to last post
7 151
Lua

Check if a player is stuck

So I'm trying to create a teleportation gun for ttt - You look at an entity, shoot at it, and you teleport to that entity. The main issue I came across is players teleporting to outside the map - when an entity is out of bounds (Like a clear view to a...

7th April 2016
by AK to Spray Go to last post
2 148
Help

Drawing Text On Screen

I am using this as a base: https://facepunch.com/showthread.php?t=1477692 It works fine except for the ply:Nick but that doesn't matter for me. What I'm needing is for the Message to be displayed on screen only for a certain round. What I've tried...

7th April 2016
by iLackIQ Go to last post
3 135
Help

Starwars Roleplay Help

Need help making a StarwarsRP server I don't even know where to start, all I really know is the DarkRP base but I heard there was a pre set Darkrp modification for it which I failed to find. Please help.

7th April 2016
by boxvader Go to last post
14 232
Question

Detecting Keypress Client-side and sending to server

I'm trying to detect when the 'F' key is pressed / released by a client and have this information available server-side. I'm guessing I need to do something with input.IsKeyDown and net it to the server, but there isn't a input.IsKeyReleased so I don't...

7th April 2016
by Semajnad Go to last post
15 246
Question

New Gmod update change physics and break Deathrun?

Hello, In the new updates recently of Gmod I've been lead to believe that it has had chnages to do with physics and other problems relating moving entities and player spawning. I will explain in further detail. In my deathrun server there has been a...

7th April 2016
by Brramble Go to last post
18 509
Help

Notifications help.

Hello, I'm wondering if anyone could help me on overriding the 'AddNotify' function. The reason I want to do this is so that I can make my own custom colors for the notifications as an example. I'd apprecaite anyone who can help me, thanks. ...

7th April 2016
by MPan1 Go to last post
1 49
Help

Derma frame won't close?

Hi. I'm making a scoreboard and i've tried making a hide scoreboard function that does not seem to be working. I've checked on the wiki and i can't see any mistakes that i have made. Please could somebody advise on what i have done incorrectly? Code is...

7th April 2016
by MPan1 Go to last post
2 72
Lua

solved GLua | Is PData wonky when used excessively?

Was messing around with PData and was thinking about making a player shop where I would have 'ply:SetPData' for each weapon bought. I would use it as a boolean so I can know if the player bought that weapon or not. Are there any problems or...

7th April 2016
by bosnian_cyco Go to last post
2 90
Help

Mysql database

Right, so im creating a salary/payday system for my garrys mod gamemode, basically it connects to a database in GM:Initialize inside init.lua code: I replaced the db info with dummy info as i dont wanna give out that information. function...

7th April 2016
by zzaacckk Go to last post
16 262
Help

Fixing old tool, crashes other people not using it

I'm trying to fix the old layers tool, as it no longer needs a module but there's one slight problem. Moving props to a different layer crashes anyone near it. No errors at all, just the player either staying still or lagily moving in the direction...

7th April 2016
by YourStalker Go to last post
2 91
Help

Quick Question Parameters for GMOD Service

So after quite sometime of having our servers down we have decided to put them back up only thing is I never exported my firedaemon services to go back to refer to. I did have a server guardian bat with the following: set...

7th April 2016
by Judd Go to last post
6 247
Lua

how to add a data to "player" class

SERVER SIDE: local play=FindMetaTable("Player") play.abc=1 i want to send a number to client,so i write these code,i hope i can get ply.abc in client side but i fail. i get confused . do i have to use net.send or something? does there any...

6th April 2016
by swordjjjkkk Go to last post
8 157
Lua

End Game Results [Need some guidence or help]

Hi guys, Just creating the end game screen for my gamemode, and I want to give players some feedback yada yada yada. But I've come acropper and need some advice/guidance, maybe a little help with some code. I want to show the player with the...

6th April 2016
by iJohnny Go to last post
14 172
Help

Was banned from ScriptFodder

I was banned from script fodder because THECODINGBEAST thought i leaked his shit, when i didn't i was trolling him and he got me banned. i have a gmod server which i purchase scripts from, and on the other account, i was banned for having an alt to buy...

6th April 2016
by Mikey Howell Go to last post
7 374
Help

Problems with KeyPress and Think

I'm wanting to change a players velocity when the space key is held/pushed down. I'm at a complete loss so I com here hoping you guys can help me out I've come up with this: hook.Add( "Think", "upveloc", function( ply, key ) if ( key == IN_JUMP )...

6th April 2016
by iLackIQ Go to last post
10 238
Movies

Australian SASR Playermodels?

Anyone know where I can have made or get made some decent australian SASR playermodels? Thanks for any help!

6th April 2016
by iJohnny Go to last post
1 63
Lua

bad argument 'SetTexture'

lua/autorun/ndes_editor.lua:397: bad argument #1 to 'SetTexture' (number expected, got nil) 1. SetTexture - :-1 2. unknown - lua/autorun/ndes_editor.lua:397 lua/autorun/ndes_editor.lua:1347: bad argument #1 to 'SetTexture' (number expected,...

6th April 2016
by McDunkable Go to last post
1 59
Lua

Lua Auto Refresh making my Addon working

So I'm currently developing a TTT Addon, for TTT enabling you to use TraitorButtons as detective at a cost of 1 credit per press. The thing is, that the following code only works, if it gets re-saved while the game is running. I read the Auto Refresh...

6th April 2016
by RoiEX Go to last post
3 140
Lua

Menu when pressing USE on a player

Hey, I'm creating a addon where if your DarkRP job is Police and you press E on a player with a SWEP in your hand a derma menu pops up with info about the player. I've created the menu and I've managed to make it so when you type "/police " the...

6th April 2016
by Danny F Go to last post
8 184
Help

solved Changing DListView Line Font and Color

Hi, I'm in the process of making a scoreboard for my server, but I'm running into a bit of a problem, how would I go about changing the font and color of text in a DListView line? E.g. the font their name, frags, etc. are displayed in. To be honest...

6th April 2016
by SweetTea Go to last post
9 161
Help

TTT Stuttering (not "lagging")

Hello FP, I'm having like TTT 'stutters', but its no actual lag, since my ping & FPS is fine, the current addons we only have installed is ULX, ULIB, ULX-TTT-Commands from GitHub, some workshop addons including the M9K TTT Weapons & Pointshop, I aint...

6th April 2016
by MeepDarknessM Go to last post
1 66
Lua

Shipments not working

Shipments arent working, no errors, this is my shipments.lua http://pastebin.com/Enfst01D

6th April 2016
by boxvader Go to last post
22 216
Help

solved Random money printer color every 3 seconds

Hello. I would like to make my money printer change color every 3 seconds. I have figured out how to make the printer spawn as a random color every time a player buys it, but I want to add a timer so that the color of the printer model will change every 3...

6th April 2016
by Cosmo51 Go to last post
21 462
Help

solved GetPos doesn't match :'(

] lua_run_cl print( LocalPlayer():GetPos(), LocalPlayer():GetPos(), LocalPlayer():GetPos() ) 688.50164794922 578.74853515625 -143.96875 ] getpos setpos 688.501648 578.748535 -79.968750; setang 11.202493 -178.789581 0.000000 I took both these...

6th April 2016
by Hackcraft Go to last post
2 73
Request

Spawning Under Map, Money Not Saving.

I'm having a problem with my DarkRP gamemode where players join the server and their job is 'Joining/Connecting'. I've just reinstalled DarkRP and the error continues, here it is: gamemodes/darkrp/gamemode/modules/fpp/pp/server/settings.lua:100:...

6th April 2016
by Gogson8 Go to last post
6 126
Question

resource.AddFile Help

I've got a file in gamemodes//content/sound/effects/laugh.mp3 In my init file of my game-mode ( which does run fine, the game-mode works ), I have at the top: resource.AddFile( "sound/effects/laugh.mp3" ) However when I restart the server and...

6th April 2016
by DubyxD Go to last post
29 290
Help

Server Auto Restart on Linux

Hello I'm currently running a Garry's Mod server on Ubuntu Server 15.10 64 bit(VPS) and everything is working great but, I wanted to know if there was some way to make the server auto restart when it crashes. I know you can achieve this on a windows...

6th April 2016
by andreblue Go to last post
1 65
Question

Spawning a stationary player model entity

What's the best way to spawn a player model to just stand in the world still? What entity should be used? 6th April 2016 Ok, I'm using generic_actor. 6th April 2016 However... how can I make it so players can walk through the generic_actor,...

6th April 2016
by Semajnad Go to last post
3 51
Help

Door Groups

Hello, I was wondering if anyone could help me. I made some door groups and set them up on the door I would like but I cannot seem to unlock or lock the doors when I am in the group. I do not understand why this is happening but I would like to find out...

5th April 2016
by BasicallyLewi Go to last post
7 100
Lua

[HELP] Entity owner.

I want to get the entity owner on a spawnable entity (F4) so I can block other users from using it and stuff using FPP Btw using darkrp 2.6.2 cppi

5th April 2016
by whitestar Go to last post
4 100
Question

Collision between prop_vehicle_jeep and npc_citizens

Trying to get player-spawned vehicles based on prop_vehicle_jeep to collide w/ server-spawned npc_citizens. I've tried various combinations of SetCollisionGroup on the vehicle ent. Collision works out of the box against npc_combine_s Likewise,...

5th April 2016
by Buzzkill_HABB Go to last post
0 31
Question

solved Make npc_combine_camera Take Pictures (Hostile)

How do I make npc_combine_camera fully hostile towards a player, with a red flashing light and doing the "taking pictures" animation? It always does that in Half-Life 2. I've set the relationship with a player to D_HT 99 but all it does is turn orange...

5th April 2016
by whitestar Go to last post
3 50
Lua

If a players health is less than something draw a box?

Worst title ever but, let me explain. In this in hud I'm making, i want it so if a players health is < 50 it draws a box with text in it on their screen. and how do i get their health? And if their health is > 50 i want it the box to not exist ...

5th April 2016
by Borris_Squad Go to last post
5 88
Help

solved DarkRP ffp bug I thing.

Hello guys, so I made recently a new server and added every addon to it and then a week later I noticed a bug. The bug allows people to not move the frozen prop that isn't his but it allows him to left-click it and then it automaticly loses its color and...

5th April 2016
by xDagunLP Go to last post
0 43
Help

Vrondakis level system rejoin issue

Hello, I recently installed the DarkRP level system by Vrondakis from github. I placed all the files inside the DarkRP mod master for entities,weapons,and module and placed the materials & resource in fastDL. For some reason upon first join of server...

5th April 2016
by 274112 Go to last post
4 109
Help

Pointshop2 inventory

I can assume that not everyone has experience with Pointshop2 but I need help on how to manually and automatically add/remove slots from someone's inventory. I think this is the good forum to post it on, I hope... :D

5th April 2016
by Tabben Go to last post
0 34