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

Seemingly random Segmentation fault

Hi My linux (Ubuntu 16.04) servers are experiencing some seemingly random Segmantation faults. We tried enabling the -debug flag but all it writes to the debug.log is our launch settings. Any ideas as to what is causing it or how to properly...

3rd January 2017
by maldark Go to last post
0 136
Help

How to send a string from the server to a specific client?

Thanks to code_gs I have the !timeleft command sorted, but I don't yet have the answer for any other form of message from the server to the player (e.g. gamemode messages being sent as a notification instead of a chat message). To clarify, what I'm...

3rd January 2017
by MPan1 Go to last post
8 343
Computers

How to set the amount of money you drop when you die

how do I set the amount of money you drop when you die Thank you

3rd January 2017
by Benn20002 Go to last post
1 128
Help

[Help] Lua Rope Constraint Won't connect to the second entity.

Hey, I'm trying to rope to entities together. I'm not using using bones, sense the props i'm using don't have bones. And, this is placed in a existing Entity. Also, I'm not getting any Results from it. Meaning, no errors. And, the debugging that I did...

3rd January 2017
by Rory Go to last post
1 159
Help

solved Script Error in Entities

I probably did something stupid, but I can't seem to find the error. Any help is appreciated! Here is the code: -- Drug Entities -- DarkRP.createEntity("Alcohol", { ent = "durgz_alcohol", model = "models/drug_mod/alcohol_can.mdl", price = 2500,

2nd January 2017
by Spuhyke Go to last post
3 173
Help

solved LUA Error Regarding Meth Entities

While adding meth entities and attempting to restrict them to a single job, I seem to have been hit with a lua error: addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:148: '}' expected (to close '{' at line 142) near 'allowed' ...

2nd January 2017
by Spuhyke Go to last post
2 119
Question

Website link command opens up the site for everyone

Hello, when someone types !addons in the chat the command is supposed to open up the steam browser for the one that typed !addons, but when someone does it it opens up for everyone in the gmod darkrp server. Script in /garrysmod/lua/autorun: ...

2nd January 2017
by Potatofactory Go to last post
12 403
Lua

If ply is ghost

I have a killer notifier setup on my server that I got from workshop, I also have TTT spectator deathmatch on the server. I was fiddling around with the code to try to make it so that if the player is in spectator deathmatch it does not say who you were...

2nd January 2017
by stickman14714 Go to last post
3 281
Help

Print message in all chat and make image unclosable

I'm currently trying to create a ulx command that opens an image on a player when typing !meow {player} Currently, my issues are: - It wont say anything in chat (regardless if I use !meow or !smeow) - I don't know how to make the 'meow' part of #A is...

2nd January 2017
by NeatNit Go to last post
3 207
Help

Make props move and turn?

So I'm trying to make a car (entity) to move and turn like a player driven vehicle but without a player interacting with it. Now I got it to move in a straight line using this code local IsDriving = false local start = Vector() local finish = Vector()...

2nd January 2017
by NeatNit Go to last post
5 244
Request

Getting "attempt to index local ply (a nil value)" error for some reason

Hello! I ran into another issue the other day where I kept getting this error saying "attempt to index local ply (a nil value)". I see no reason for it to be saying that, everything should be working. Here is the snippet of where it's coming from: ...

2nd January 2017
by Moat Go to last post
5 275
Help

Disable switching weapon

Hi, how i can disable switching weapon ? function onPlayerSwitchWeapon( ply, oldWeapon, newWeapon ) return false end hook.Add( "PlayerSwitchWeapon", "PlayerSwitchWeaponHavanna", onPlayerSwitchWeapon ) That doesn't work Thanks.

2nd January 2017
by code_gs Go to last post
1 136
Help

Need help setting health for certain jobs

Hi I'm rather new to being a server owner for a Star Wars RP, and I have one question because it literally has me beat. I have everything done on my server, all the jobs, spawns, groups, weapons, addons, etc. The one thing I cannot manage to figure out is...

2nd January 2017
by code_gs Go to last post
6 259
Map

Gmod Custom PlayerModels not appearing in C Menu {DEDICATED SERVER}

I think that its about time i make a thread about this problem ive been having for weeks now trying to figure out. There are literally Zero threads about this problem on every forum/ website that can have discussion. The problem is, im trying to add...

2nd January 2017
by BoltGameZ Go to last post
5 279
Help

Broken Door HUD (DarkRP)

So usually when you walk up to a door it it will say "Press F2 to buy door" but that does not appear except when i press f2 it comes up with the menu to buy the door.

2nd January 2017
by Aloha Go to last post
0 144
Lua
2nd January 2017
by fappymcfap Go to last post
0 118
Help

solved [DarkRP] Hungermod lua error

Hello, I have a very strange lua error and I need the advice of someone experienced. This is the error: Lua Error: Chat command "buyfood" is defined but not declared! It does not give me any file directory.

2nd January 2017
by Yuriysama Go to last post
0 163
Help

My donation system

I was wondering how would I be able to allow a staff that's in a staff ulx rank be able to donate for a donator ulx rank and still be in his staff rank.

2nd January 2017
by samholio Go to last post
2 195
Lua

solved Replace disconnected-message on custom gamemode

Alright.. I've started working on my own gamemode and ran into an issue. I want to remove the standard disconnect-message "Player Jompe left the game (Disconnect by user.)" and replace it with something else. I've tried this: ...

1st January 2017
by Jompe... Go to last post
2 151
Help

solved Get vehicle name in gmod ?

if i spawn this car in Gmod DarkRP. Name = "Mini Cooper 1965", Class = "prop_vehicle_jeep", Model = "models/tdmcars/cooper65.mdl", I know how i can get the Class "prop_vehicle_jeep" and the Model "models/tdmcars/cooper65.mdl" But how do i get...

1st January 2017
by Fillipuster Go to last post
1 129
Lua

Lua non Corrected Image ( Need help in RP )

Hello everybody! I'm doing a RP project, and I really need your help. So, here's problem. Sorry for my bad English, i'm living in Ukraine, okay? hook.Add( "Think", "BM_Clients_Key", function() gui.EnableScreenClicker( input.IsKeyDown( KEY_LALT ) ) --...

1st January 2017
by VanderAGSN Go to last post
1 141
Lua

solved error

CBaseEntityList::AddNonNetworkableEntity: no free slots! Error in hook Think: lua/autorun/client/holster.lua:808: Tried to use a NULL entity! stack traceback: : in function 'SetNoDraw' lua/autorun/client/holster.lua:808: in function 'fn'...

1st January 2017
by luphi100 Go to last post
4 264
Help

Aimbot problem

Hi i currently have a problem where my aimbot makes me move when it targets someones head and id like it so it doesnt just stop me dead in my tracks and makes me keep walking like i was normally walking. For example id bhop in hvh and id instant snap to...

1st January 2017
by FlyPiggyBanks Go to last post
4 520
Lua
1st January 2017
by Invule Go to last post
1 192
Shitpost

solved GMod - What are you working on? December 2016 (#64) ( 2 3 4 5 6 7 8 9 Last )

Highlights from the previous thread

1st January 2017
by Mors Quaedam Go to last post
324 29,793
Help

solved Get vehicle owner in Gmod ?

I want to get the vehicles owner in Gmod DarkRP. Tried this but prints function ejer () local trace = Entity( 1 ):GetEyeTrace().Entity local ejer = trace:GetOwner() print(ejer) end i'm i way off here or what?

1st January 2017
by meanbeandk Go to last post
5 190
Help

bad argument #1 to 'gmatch'

Hey guys so I've been making a hud for above players heads, However I'm running into some issues, the hud works perfectly fine but whenever I save any lua file my hud file give lua/includes/modules/draw.lua:146: bad argument #1 to 'gmatch' (string...

1st January 2017
by CelaeonSan Go to last post
2 198
Lua

GMOD | Entity play custom sound | HELP!

Hello everyone, Happy new year! I'd like to ask why a command I'm giving wont play a "Custom" sound that I have added to my vault addon, its a simple entity that plays a sound when a player presses E on it, puts a timer on and then changes to green,...

1st January 2017
by ISONI Go to last post
0 110
Lua

solved SWEP: Draw viewmodel wired?

Hey! Sorry for the title, but had no idea. :goodjob: First off this entire code is in the SWEP:Initialize() function. It's because when I do this while drawing an ClientsideModel modelEnt:SetPos(self.Owner:GetEyeTrace().StartPos+Vector(4,2,-4))...

1st January 2017
by Melonos Go to last post
0 95
Help

Make Shipments Appear in Shipments tab and Singles in Weapons Tab

How do I make shipments appear in the shipments tab and singles in the weapons tab? Example code: AddCustomShipment("Colt 1911 Shipment", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 1200, 10, false, 0, false, {TEAM_GUN}) AddCustomShipment("Colt...

1st January 2017
by Slyde Go to last post
7 168
Tutorial

Tutorial: Updated GMod module tutorial (FINALLY) #1

Requirements: Intermediate C++ knowledge A desire to learn :P Read through https://wiki.garrysmod.com/page/Creating_Binary_Modules and https://wiki.garrysmod.com/page/Setting_Visual_Studio_Up_for_Making_Binary_Modules Hey guys, so recently I got...

1st January 2017
by Lunaversity Go to last post
10 1,010
Help

where would i start to making a Incognito admin mode

Hello, So basically with this.. a SA+ can run /incognito ( RP NAME ) and it will remove rank view from the user.. but they will still have the perms of the rank.. basically its to RP without being called..

1st January 2017
by Derek_SM Go to last post
13 451
Help

solved Help with Vehicle tab on custom f4 menu

Hey guys! I attempted to edit amenu (Dev said it was okay but he does not give support to editing his scripts) to add a vehicle tab. I got it to show up with vehicle in it, but it says 'Invalid Argument' upon buying the vehicle. Here is the code for the...

1st January 2017
by Jack1369 Go to last post
0 205
Help

DarkRP Help Thread V1 ( 2 3 4 5 .. 40 41 42 43 Last )

Hello Everybody and Welcome to the DarkRP Help thread. This forum covers everything related to DarkRP. This is the list of things that you can help others or get help from. 1. Lua=this includes HUD'S, lua errors, and lua code. 2. Jobs=generally...

1st January 2017
by Jack1369 Go to last post
1,708 88,803
Lua

Net message not sending as intended

When I run this command cl_init concommand.Add("testnet3", function() RunConsoleCommand("printmodel") net.Receive( "test", function() reads = net.ReadString() print(reads) end )

1st January 2017
by auri45 Go to last post
2 165
Poll

Drag and Drop system?

Is there a drag and drop system like the one in SantosRP? I have seen one on the forums but for some reason the thread is locked so their must be a problem with it.Does anyone know where I can find a similar system? Thanks for your time :D

1st January 2017
by YoutoYokodera Go to last post
11 288
Help

solved Ulx command help

Hello, so I am attempting to make my first ulx command. I have it placed in the /modules/sh directory of ulx but it doesn't appear in xgui when I restart the server. local CATEGORY_NAME = "Job Ranks" function ulx.givexp( calling_ply, target_plys,...

1st January 2017
by broden1234 Go to last post
0 90
Help

DarkRP Disable Prop spawning for players?

Hey guys, I just want to know. Is there a way to make players stop spawning props and make it only for admins or superadmins? Because I am making a serious rp and I don't want to see players just spawn props in the middle of the street or prop killing...

31st December 2016
by ShadowMarco Go to last post
7 257
Help

Custom HUD texture spazzing out

As you can see in the picture above the wood texture in the bottom left and is messed up. When I move and turn the texture freaks out even more, but there is a slight sweet spot where the texture looks completely normal. How can I prevent the texture from...

31st December 2016
by Yords Go to last post
3 233
Lua

solved Darkrp custom giverank command

Can someone help me make a ulx command to give a user a rank? I know there's adduser but I'd like a different one that does the same thing ,but has a CHAT command. !giverank

31st December 2016
by Shadowmist Go to last post
10 401
Help

Get Keypress on caller of entity

I've been trying to make an jetpack ent whole day and still got error after some fail attempt First I tried to add hook in the use function, it work but the hook got override everytime so only 1 ply can use it Then I move it out but I can't figure it...

31st December 2016
by YoutoYokodera Go to last post
7 260
Help

solved Make water red?

Does anyone know how to do it? I was looking at IMaterial but materials are alien to me. I was also looking into running a bunch of traces and to draw red over water but I think it's probably possible with IMaterial or something similar. Thanks.

31st December 2016
by Robotboy655 Go to last post
4 367
Help

solved Bug after update

Hi all, ive a lote of addon who die after update... And THE darkrpmodification-master.... Ive this error addons/darkrpmodification-master/lua/weapons/pocket/shared.lua:101: attempt to index global 'DarkRP' (a nil value) 1. unknown -...

31st December 2016
by Nyhu Go to last post
2 172
Lua

Add entities in a loop

Hello, I'm currently working on some scripted entities and since they all use the same cl_init.lua and init.lua with shared.lua containing settings, I was woundering if instead of having a folder for each one of them I could just have a base entity and...

31st December 2016
by WhiskerNip Go to last post
9 295
Question

Speech interpreting module

Hey, have been meaning to get to get back into swing of things and wondered if there was a working speech interpreter module? I.e. Feed it microphone input from a player and it'll output a string of text?

31st December 2016
by MPan1 Go to last post
3 252
Help

How to make that the object could not be shot through bullet ?

How to make that the object could not be shot through bullet ? I can not do this because I do not know the function of which is responsible for this.

31st December 2016
by Packages Go to last post
2 196
Help

surface.DrawTexturedRect

November 2016 4 Posts Hey guys I'm fairly new to gmod developing and developing in general and I'm trying to add an element to the HUD with a custom texture. The problem is I don't know where the vtf/png file should go and how to set the texture as the...

31st December 2016
by ph:lxyz Go to last post
2 182
Help

Making a speaker entity (music)

Hi. I was wondering if anyone could teach me how to make a speaker entity. A template for example. Best Regards, Nic

31st December 2016
by Nookyava Go to last post
3 181
Help

solved I can't render text on this 3D2D screen...

I'm trying to have a cooldown in seconds 2d3d text thing on top of a flag entity, but doing this in draw for client function ENT:Draw() --print(self:GetNWEntity("carrier")) --if self:GetNetworkedEntity("Carrier")==LocalPlayer() &&...

31st December 2016
by holmrekR Go to last post
2 185
Help

help with call function

how would i make a if ((LocalPlayer():IsStaff() and i could edit it in a tabel? for example local isstaff = {

31st December 2016
by moderatorondu Go to last post
2 132
Help

solved (DarkRP) Can not spawn shipments

Hello, I get this error when I try to spawn any shipment (single weapons work): gamemodes/darkrp/gamemode/modules/base/sv_purchasing.lua:173: attempt to call method 'SetContents' (a nil value) 1. callback -...

31st December 2016
by A2N Go to last post
7 206
Lua

DarkRP PayDay Help

Greetings everyone. I need some help from someone who knows how the payday system works on DarkRP please. I have made a level system but I can seem to find where the payday function is in: darkrp\gamemode\modules\money\sv_money.lua I want it to...

30th December 2016
by ISONI Go to last post
2 145
Help

How to call a gamemode function from a map

Essentially, I have a gamemode function that I would like to be called when a button in a map is pressed. I've looked around for an answer, but I'm failing to find one, so I'm begging ya for help facepunch. If there isn't a way to do this, is there an...

30th December 2016
by Cata Go to last post
1 170
Help

solved Replace the mic icon

Hey lads and lasses, so I've been trying to replace the icon used above someones head when they talk via voice chat This fella I've tried a method of using lua to replace materials with my new material with no success, tbh it was a copy pasta...

30th December 2016
by CelaeonSan Go to last post
8 313
Help

Engine Lighting on SWEP: Help

I set render.SuppressEngineLighting(false) in my SWEP's PostDrawViewModel function because the lighting kept darkening my SWEP and you coulden't read the 3d2d text that I put on there. How can I have the same brightness in every direction I look?

30th December 2016
by mijyuoon Go to last post
5 289
Help

solved Is it possible to make gradient alpha / box fadeout horizontally?

Hey Facepunch. I am trying to create a hud with a horizontally faded box. Is this possible with lua. I have tried using a image with these codes SetTexture, DrawTexturedRect. But the transparent part appears as missing texture.

30th December 2016
by xPsycho05 Go to last post
6 489
Request

solved Prices of singles change but shipment prices are same

Hey! It's me again... So I've finally managed to get what I wanted working with help here and there and I've made great process, but I ran into an issue after finally getting everything to work. Prices of shipments are supposed to change based on an...

30th December 2016
by LieutExcalibu Go to last post
1 201
Help

Gravity Jeep not working.

EDITED I have been trying to make it so that the vehicle "player.GetByID(1)" is sitting in sticks to every surface under it by making the gravity always downwards from the vehicle, but at the moment all props in the entire world goes to that direction,...

30th December 2016
by Thiefdroid Go to last post
5 345
Lua

I Need help with custom HUD

Right now i am currently making a custom HUD for darkRP gmod, however i want an image to be placed in my HUD. I am able to see the image on my Garry's mod because i have it installed into my materials folder, however i can't seem to figure out how to get...

30th December 2016
by Packages Go to last post
4 257
Help

solved 5kb limit on lua scripts?

Never ran into this issue before (been a couple years, but I used to be a decently active developer, if a bit inactive on FP), but it seems like there's a 5kb limit on lua scripts on my new development server. Is there a convar that I'm missing that...

30th December 2016
by shadowndacorner Go to last post
8 395
Lua

Help with custom gamemode

Hi there, I am looking for someone who is creating a new gamemode and I would like to help. (RP Gamemode prefered) Previous work: Oxygen System, Applejack (Cider) Refresh. (Took me along time, and still not everything is fixed)

30th December 2016
by s4sek Go to last post
1 208
Help
30th December 2016
by TheFifthSin Go to last post
4 168
Help

Using workshop for dedicated servers?

I added my Authkey and Collection ID to the startup config, I am trying to get my users to download GMOD Tower Playermodels through workshop but it isn't working.

30th December 2016
by geferon Go to last post
5 208
Lua

solved TF2 Particle Help

Hello, I've made this Winter Particle addon. http://gmodapi.16mb.com/winterparticle.mp4 As you can see, it uses TF2 particle system xms.pcf I tried to FastDL it with this: resource.AddSingleFile("particles/xms.pcf") But nothing worked. I...

29th December 2016
by Architekt_LP Go to last post
7 278
Lua

I'm having problems with GMOD MilitaryRP Jobs

I'm having problems with my gmod server, I have put some of the jobs e.g. Military Police Private... Sergeant... Lieutenant etc... but when I load in the server, I press F4 and They are all in the same area - Other - They are all classed as other, I want...

29th December 2016
by Fruitwesp Go to last post
1 185
Help

draw.SimpleText problem

Hello, I decided not to post this in the "Help & Support" forum because this isn't a problem "playing" Garry's Mod but rather a problem with myself. Anyway, getting to the point, draw.SimpleText seems to be "warping" if to say. I don't know if this is...

29th December 2016
by Unknown Gamer Go to last post
7 400
Help

Two ULX commands into one?

I have this custom code (untested) that I want to merge with the HP command so whenever I use this command, he will also get HP to it, but how do I do that thats my code so far: function ulx.warlock ( calling_ply, target_plys) ...

29th December 2016
by stickman14714 Go to last post
1 179
Question

Oops! Addon (blahblahblah) failed to download because of (0)!

Running a dedicated server with collection properly mounted but sometimes clients get this error upon trying to download the current map, any insight into this would be appreciated.

29th December 2016
by gonzalolog Go to last post
1 260
Help

Player:UnSpectate() issues

Hi, I have been having issues with Player:UnSpectate(). After "unspectating" the player has no collisions and godmode. Does anyone know how to fix this or a workaround for it? Thanks.

29th December 2016
by TheVingard Go to last post
0 152
Help

solved DarkRP - Players get kicked for changing name

Whenever a player changes their name in game they immediatly get kicked, it then comes up with a screen saying 'You've changed your name too many times'. Then they have to reconnect. What do I do to fix this?

29th December 2016
by Gogson8 Go to last post
3 192
Lua

Garrys mod player eye and entity height | Help! |

Hello all, I'm making an entity for Garry's mod that makes the player shrink, I have gotten the model scale to shrink down but the player entity is still the original size so for example if I drop a on top of me and use the entity the player model will...

29th December 2016
by ISONI Go to last post
2 222
Help

Permanent Weapons

Im trying to make a permanent weapons addon, but I'm having a lot of trouble with it. I want to make it so I can make a list of steamids and then list the weapon each steamid would get, here's what I have so far. ply:Give ( "weapon_crossbow" ) if...

29th December 2016
by Invule Go to last post
11 415
Stupid

For k,v loop not accurately doing its job

Hey all i recently made a post in regards to my entity. its drawing correctly however, the same method doing the calculation of render.DrawSphere for the size isn't working accurately in my entity. function ENT:Initialize() self.Size=50...

29th December 2016
by Keosan Go to last post
5 372
Help

Donations in loading screen

How would I add the amount of money donated in Prometheus on my loading screen?

29th December 2016
by DayFutureHD Go to last post
0 170
Stupid

solved Calling a function when gamemode finishes loading

Hey! Another stupid question sadly, but anyways, I am trying to call a function in my addon after a gamemode starts. I tried using this https://wiki.garrysmod.com/page/GM/Initialize and it didn't work. The error was ...

29th December 2016
by LieutExcalibu Go to last post
21 480
Lua

Horizon Gamemode Development ( 2 Last )

Okay So heres my second post today and third post ever, not sure if this is even allowed, if it is not please trash this thread Horizon Gamemode Server IP Elimination - 178.32.227.124:27055 To Do * Change SQL Database * Christmas?

28th December 2016
by StickmanJohn Go to last post
67 2,738
Question

Free DarkRP/SWRP Job Whitelist

Hello , is there any free DarkRP/SWRP Job Whitelisting system on the steam workshop or somewhere else? Last thing i need for my server. Greetings Melon

28th December 2016
by Clunky Go to last post
8 496
Help

Checking if a SWEP has hit a players head and giving back stripped weapons

I've been looking around and I can't find a clear way to check if a SWEP has done damage to a players head. Any help is appreciated. Also, I was looking for a way to give back a player there weapons after being stripped (they save on the ragdoll...

28th December 2016
by gonzalolog Go to last post
3 196
Help

Melee SWEPS don't use the hitgroups

Whenever a player is hit via a melee SWEP it just uses hitgroup "0". Can this be changed to use the real hitgroups? Thanks.

28th December 2016
by Jvs Go to last post
2 139
Help

CreateSound stopping after a few seconds

I have the below code, and the sound plays, but only for about 3-10 seconds then stops. Any input as to why this is happening? EG. If I save the file ( so it auto-reloads) the sound starts playing, when I alt tab to the game it stops. If I just save the...

28th December 2016
by Semajnad Go to last post
0 110