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

Creating custom airaccelerate?

Hey, How would i create custom airaccelerate in lua? For bhopping as the normal accelerate doesn't allow it. Thanks!

9th August 2015
by FiBzY Go to last post
3 298
Help

Bhoppings max speed?

Hey! I have bhop script and can't get velocity bigger than 600. But if i bhop backwards i get to my sv_maxvelocity? How do i set up bhopping on my server so forward bhop would be normal?

9th August 2015
by FiBzY Go to last post
11 477
Help

solved DarkRP 2.4.3 F4 Menu for 2.5?

I want to be able to use the last f4 menu of DarkRP 2.4.3 for my 2.5 server. By any chance does anybody have the code for this?

9th August 2015
by HDG_MrDeeJayy Go to last post
6 539
Help

solved Need help with adding staff groups to tool restriction code.

I have already tried doing this myself, but for some reason the code only allows one group to be defined as donator. Sorry I'm all noob at this lua, but help is appreciated. Aside from VIP, I need the groups moderator, admin, and superadmin added. ...

8th August 2015
by Gomez Go to last post
2 211
Lua

Level Requirement for rprinters

So on my darkrp server I have the rprinters installed which are added into the game as entities from a lua file inside the script folder, not the entities and it also has vrondakis leveling system. Because of this I can't use the "level = 10," thing for a...

8th August 2015
by Coffeee Go to last post
8 330
News

Help/Multi Menu Preview

Hello, I've been learning derma and I've recently finished the first stage of my first addon. It isn't something special, just something I thought was useful and I know it probably exists. Anyways feedback and opinions are welcome, a public version...

8th August 2015
by Munch1431 Go to last post
1 177
Help

Displaying an image from URL using 3d2d

I had no luck asking in the "Problems that don't need their own thread", so maybe someone could see it here and have an answer. I'd like to load an image on a board entity, using 3d2d. Besides using this, are there any alternatives available?

8th August 2015
by samm5506 Go to last post
13 693
Help

Code error that I cant figure out

I am setting up a TDM server with this addon. http://steamcommunity.com/sharedfiles/filedetails/?id=452370591 Whenever I boot it up I get this error spammed at me through the console. Its from the cl_init.lua file so here's the paste bin file - Any...

8th August 2015
by Spiv Go to last post
4 171
Lua

Health potion with regen effect

Hello I made a health potion with this script an I want to add a health regen effect onto it what would I put in my code?, sorry, new to Gmod Lua, items = { name = "Health potion", desc = " Use this to raise your health when you are...

8th August 2015
by code_gs Go to last post
3 196
Lua

custom textured inventory menu

Is there a way to put custom textures on any type of menu, ect. an inventory menu?

8th August 2015
by Anal_Febreeze Go to last post
4 180
Lua

Player Notification Help.

So, i found this code hook.Add( "Think", "LimitedBreath", function() for k, v in pairs( player.GetAll() ) do if v:Alive() then if v:WaterLevel() >= 2 then if v.NextHurt < CurTime() then v:TakeDamage( 3 ) v:EmitSound( Sound(...

8th August 2015
by LUModder Go to last post
1 207
Lua

3d2d button not working

Hello! I'm trying to make a 3d2d button inside a panel which is drawn on a prop (a model). I've managed to draw the panel properly, but I'm struggling to make a functional button in the panel (simple, just press E pointing at the button and something...

8th August 2015
by LUModder Go to last post
3 309
Help

Images in HUD

Hey, - I am adding a HUD via creating a module in darkrpmofications - I'd like to put an icon I have made via photoshop (it's a .png file) in the hud, to represent health it's called health-icon.png - I understand how to sync it to FastDL and get...

8th August 2015
by LUModder Go to last post
6 377
Help

Attach prop to player head

Hey, guys I am trying to attach helmet prop to player head, but nothing happens:disappoint: Can anyone help me? I'll be very grateful! This is my last code function ENT:Use(ply) local Bone=ply:LookupBone("ValveBiped.Bip01_Head1") ...

8th August 2015
by Abendorp Go to last post
2 226
Lua

Steam group

How would i go about creating a script that when people join a steam group they get money. *Want it to popup when they join the server. *Want it to keep poping up ever time they join the server till they join the group which will stop it from showing up...

8th August 2015
by LUModder Go to last post
6 434
Lua

Head HUD NPC

Hi, My code works half the time I do not understand , I have to reload the file every time. Otherwise it does not appear. My code : if CLIENT then surface.CreateFont( "NPC1", { font = "Arial", size = 50, weight = 2000, blursize = 0,

8th August 2015
by LUModder Go to last post
1 175
Help

Weapons On Spawn?

Hello Facepunch, I'm trying to learn more about GLua and coding in general and I just had a quick question. How would/what would the code be to allow a player to spawn with a weapon/weapons every time they join, for a darkrp server. For instance...

8th August 2015
by reginaldthund Go to last post
3 302
Lua

solved VGUI Animations

Hi, I've been coding lua for about a year and half and I want to try to do something that seems complicated(to me at least) I want to try to have VGUI animations. Ex. When I type !testmenu instead of my menu popping up, I would want it to say,...

8th August 2015
by whitestar Go to last post
4 274
Help

Give Prop Physics which doesn't have Physics

I want to add Physics to Props which actually doesn't have Physics. How would I do that? 8th August 2015 Okay Guys, I figured it out my own. http://wiki.garrysmod.com/page/Entity/PhysicsInitBox...

8th August 2015
by Robotboy655 Go to last post
2 241
Help

FAST LOCKPICK

Uhmm.. Fairly new to dark rp coding and stuff, but I was wondering; how do I make a fast lockpick and a fast keypad cracker? I want to give these to the donors of the server, but IDK how. I saw many servers have them and I would like to know how to make...

8th August 2015
by Chimpanzee Go to last post
6 541
Help

Can you include font files in Workshop addons now?

As the title says. I want to include a custom font in my addon but I know a while back this was not allowed. Has anything changed? It's a .ttf it that changes anything.

8th August 2015
by Ronon Dex Go to last post
3 209
Help

Restricting Tools (Wiremod, specifically) to jobs?

I've seen this done before, yet I havent the slightest idea how to replicate it. Basically, the fear of Wiremod abuse is pretty big for me, yet I dont want to remove most of the fun parts of it, so I came up with the compromise to attatch it to an...

8th August 2015
by TylerB Go to last post
9 303
Help

Gmod racer crash

Recently me and a friend went through the old gmod racer gamemode and fixed it up/updated it. We got through a good chunk of errors to the point where all the menus work, scoreboards etc but we just have one huge issue. When you queue for a race and the...

8th August 2015
by APN Faulty Go to last post
0 243
Lua

solved Render primitives using render library without depth

The render.DrawLine function has this as an argument, the last argument "writeZ" which decides whether or not to write to the depth buffer. This works exactly how I want it to work, but I need to draw a Quad rather than a line. DrawQuad or DrawQuadEasy...

8th August 2015
by Metamist Go to last post
3 274
Help

solved How to set a ClientProp's eye position (or rotation)?

Say I wanted to create a ClientProp in a player's exact location and position. If this sets the position of it (and the color and model): concommand.Add( 'spawnpointlessplayer', function(ply) local fake = ents.CreateClientProp()...

8th August 2015
by MPan1 Go to last post
2 177
Map

solved I need help for put a Tools entity on Workshop of GMod in Hammer Source

Hi I'm a mapper for garrys'mod and i found this addon: Advanced Light Entities. http://steamcommunity.com/sharedfiles/filedetails/?id=493751477 I want some help for put this entity lighting on point_entity in Hammer. Thanks for your help. ...

8th August 2015
by PERPGamer Go to last post
1 213
Lua

concommand and arg issue

I am making a simple ban command for a project. However it's turning out to be "not so simple". concommand.Add("banplayer", function( ply, cmd, args, str ) local banTableData = string.Explode( " ", str ) local player_id = banTableData local...

8th August 2015
by richardlb Go to last post
3 166
Lua

Bone positioning issue

I am attempting to create a ghosted model of a player when they die, maintaining the bone positions. However, SetBonePosition does nothing, and I cannot use GetManipulateBonePos to return anything other than 0, 0, 0 (probably because it was never set...

7th August 2015
by Saana Go to last post
1 377
Lua

My code doesn't work : Lua errror

Hello My code for bute to display the rank of the person surface.CreateFont("Douille", { font = "Arial", size = 27.5, weight = 600, antialias = true, }) hook.Add( "HUDPaint", "Years")

7th August 2015
by Coffeee Go to last post
8 255
Games

Sound manager (or something like that)

Hello guys. I know GMOD has surface.playsound and other sound functions. I was on the GMOD wiki and I saw the sound library. I want to know How can I do some sounds to play for x seconds. And then repeat when It's over.

7th August 2015
by Nicksf13 Go to last post
2 209
Help

How to make a rotated box in lua?

Hello everyone! I just would like to know how to make a box/rectangle that is rotated x degrees. I know about surface.DrawRectBoxRotated or something like that, but if that's what i'm supposed to use can someone explain it? Thanks.

7th August 2015
by CGHippo Go to last post
16 438
Help

solved surface.CreateFont

Are you able to create a font from .fnt or .tff files? I'd like to use the razer one but i'm not sure if it's possible.

7th August 2015
by mijyuoon Go to last post
8 217
Help

How to use input.IsKeyDown( KEY_E )

Hello guys! I'm trying to do if someone press E then it's gonna Print a message in the Console The problem is that, if someone changed his "USE BUTTON" key then it's won't work. I heard about : input.IsKeyDown(IN_USE) But it's not working ...

7th August 2015
by Abendorp Go to last post
3 4,071
Lua

FastDL not working #2

I dont know what the hell to do, my fastdl aint working, downloadurl is set right, allowdownload & upload 0, resources.lua file for all damn addons, still, pointshop icons etc are black/purple..

7th August 2015
by whitestar Go to last post
16 392
Help

Permanently locking certain doors

Is there a way to perma lock doors(without editing map), or at least modify the lockpick and battering ram so that they can't open certain doors if it belongs to a certain door group?

7th August 2015
by Zeh Matt Go to last post
2 206
Help

solved Surface.SetTexture + surface.DrawTexturedRect

surface.SetTexture(surface.GetTextureID("materials/noobshud/healthbar")) surface.DrawTexturedRect(ScrW()-ScrW(),ScrH()-ScrH()/4,500,250) That's what i'm using and i've placed healthbar.vtf in my garrysmod/garrysmod/materials/noobshud/ folder and...

7th August 2015
by Noobularkid Go to last post
2 179
Help

Removing the skybox forever?

I'm using the rp_evocity_v33x on a server and also using the 'Atmos' weather addon. Now the problem is for the addon to be shown to players I have to remove a big white prop (skybox) outside the map as it blocks the weather. The problem arises when the...

7th August 2015
by JabbaTheGamer Go to last post
2 193
Question

[DarkRP] Is there a way for a certain job to buy ammo?

I have a DarkRP server with FA:S 2.0, and I really want to know if it's possible for a specific job to buy ammunition, e.g. an ammo dealer. Is this possible? If so, how??

7th August 2015
by Matches Go to last post
7 443
Help

solved Background map at game start up

Hi there FP, trying to make gmod use a hl2 background map at startup, but can't figure out for the life of me how. I've tried MacGyver'ing a little lua script in garrysmod/lua/menu, but nothing happens. On the other hand, when I place...

7th August 2015
by taz0 Go to last post
5 284
Help

How to Use different body groups in Dark RP?

https://steamcommunity.com/sharedfiles/filedetails/?id=366438805 So thats the Shadow pups player model, and all the scarf stuff has been requested in a Custom class. However it requires body groups and it doesn't have it by default in DARK rp. Any...

7th August 2015
by mdeceiver79 Go to last post
1 172
Help

Creation of Clientside Props

How would I create a clientside Prop, which works with Physics. I tried around for now 3 hours, so I came here to beg for help.

7th August 2015
by deinemudda32 Go to last post
2 222
Lua

solved Adding player money in a function called from a 3D2D button

So, I have made a 3D2D button which is great! (This is in cl_init.lua). I have also used the Net library to be able to run a function in the init.lua from the cl_init.lua button which is great! The cl_init.lua looks like this: if...

7th August 2015
by Ott Go to last post
15 429
Help

Issue with HUD ammo bar

Hello. Currently I am trying to make a HUD with moving bars, and 2 of them work, the armor and hp one, but the ammo bar doesn't(at least correctly) The bar doesn't fill up the entirely with a full mag: ...

7th August 2015
by Robotboy655 Go to last post
3 223
Help

How to get M9K weapons to spawn in TTT using ttt_random_weapon

please delete post did not realize previous post went through.

7th August 2015
by Mastor Snipor Go to last post
0 236
Help

Nextbot problem - "cannot resume dead coroutine"

-Because cloudflare doesn't want to let me pass their captcha when I have long code, I'll just leave a link to the code here- http://pastebin.com/tdRQH7sj Every once in a while, I happen to get this error: NextBot error: cannot resume dead...

6th August 2015
by Mooda Looda Go to last post
4 303
Help

solved Removing game props from spawn list (Q menu)

Needing to know how to disable players being able to spawn props from games that they have mounted. Like tf2, css etc, but still keep the HL props there. Is there a way to make it so those mounted games don't show up in their spawn list?

6th August 2015
by covey88 Go to last post
10 352
Help

solved HP Increase via regen only if player is at 100 HP or above

So I've tried a few things for this. I'm looking to make an HP "increase" script that increases the player's HP to 130. The issue is, you cannot just use ply:SetHealth(130) because players can abuse this, by simply un-equipping it and re-equipping it. ...

6th August 2015
by Jerpy Go to last post
2 188
Help

Lua error! D:

I'm having some trouble with player models for a pointshop I'm getting an error in my console addons/arkham knight/lua/autorun/akak.lua:2: ')' expected (to close '(' at line 1) near 'end' 1. unknown - addons/arkham knight/lua/autorun/akak.lua:0...

6th August 2015
by Aerosoft Go to last post
6 232
Humor

[TTT] Exploit with Flare Gun and spectators found

So, recently I was playing TTT. But, I just found a nasty exploit. As a spectator, if you are shot by the flare gun(easiest to do by standing in front of a T that is about to fire one), you will be lit on fire like if a live player was shot. But, that's...

6th August 2015
by Robotboy655 Go to last post
3 298
Help

Spiderman's Swep not functioning properly/not working.

I'm sure many have experienced this on a server/their server where the Spiderman swep doesn't function properly as advertised. The author doesn't seem to have a clue, neither I. I was wondering if anyone knows a cure to make the spiderman's swep work ...

6th August 2015
by carz1175 Go to last post
2 205
Help

timer.Simple Not Working?

So i was setting up GForum and noticed that it disconnects a lot so i tried timer.Simple to make it run the ConnectToSQL() Function every few minutes and didn't seem to work. In Fact the timer doesn't run at all, It only reconnects with the...

6th August 2015
by stev_ Go to last post
6 238
Lua

solved "Hook" for crash?

Hello FP, I've seen some "Anti-Crash" Scripts, and I wanted to know how they notice if the server crashes? Is there a special hook or so?

6th August 2015
by tzahush Go to last post
16 649
Lua

DListView Painting

Hello FP, I wanted to ask how to paint the DListView(lines, colums etc) like in this picture: Thanks for the answers.

6th August 2015
by whitestar Go to last post
0 268
Lua

Need Help With A script

Bassicly,Iam Trying to make A currently equipped swep/Entity Stay with the player if they quit and rejoin Would anyone know how to do that?

6th August 2015
by James xX Go to last post
11 400
Help

solved database disk image is malformed

Today I was just opening up my sv.db file to check a player's time (utime). I use WinSCP so I downloaded a temp file, opened it up in DB Browser for SQLite, found the time and closed the file. I didn't save it, I didn't upload it back to the server. I go...

6th August 2015
by roastchicken Go to last post
4 579
Help

Jobs Not Working DarkRP

I can't find the problem in this code, can anyone else? TEAM_BANKER = DarkRP.createJob("Banker", { color = Color(0, 255, 239, 255), model = {"models/player/mossman.mdl"}, description = ], weapons = {}, command = "bank", max = 1,...

6th August 2015
by [LSG] Pawn Go to last post
8 518
Lua

DarkRP NPC Shop

I may just be a complete dumbfuck, but I dont know where to put this to get the NPC To Spawn. I followed the Wiki on NPC shops, even downloaded this https://garrysmods.org/download/1821/shop-npc-examplezip but still cant find it in game to use, is there...

6th August 2015
by whitestar Go to last post
4 769
Lua

Limiting ammo on a SWEP

Hey guys; I am trying to implement this sandbox SWEP C4 into a gameserver, and right now it works absolutely fine except that players have infinite ammo. How would I go about 1. Setting an ammo cap 2. Making sure that players cannot throw out another...

6th August 2015
by Coffeee Go to last post
2 282
Help

solved Use is a nil value or did I just goof?

Hey guys so I am trying to use DERP Inv and ran into an odd error whenever I try to use an item from the inventory. Here is the code and the error thanks for reading/your time! P.S- I tried looking around and asking others, but I have failed to find an...

6th August 2015
by Z0mb1n3 Go to last post
1 182
Help

Server Crash / Lag

It lags then crashes with the message "server shutting down", the error before the crash is: SoundEmitter: removing map sound overrides Whole console log: http://pastebin.com/1bS9UKT8 If anyone can help me with this, its much appreciated!

6th August 2015
by mikesdav Go to last post
3 290
Lua

Detect players within render.DrawSphere?

How would you detect players within a render.DrawSphere and use the player class to have things done to those players that are within the drawn sphere?

6th August 2015
by Keosan Go to last post
20 809
Help

DarkRP Name over head glitch

Hi. I am having the issue of names not appearing over the players head in DarkRP. I removed all of my addons and the issue is still present. I have the latest DarkRP via SVN.

6th August 2015
by DanielHershey Go to last post
6 230
Lua

Is it possible to make a Cut scene within a Gmod Gamemode

Hey, is there anyway to make a cutscene in your game mode? Also, can I make conversations in the style of Fallout? What I mean by that is like in Fallout they have subtitles where the NPC Says something, and you have options to choose what to say back,...

6th August 2015
by Breadcat105 Go to last post
9 660
Question

solved SQL limit?

Title isn't as informative as it should be but I couldn't think of a better one. So I was wondering, since I have a quest system, meaning every player could end up with a really big table, would this affect anything? Or at least, is there a limit to...

6th August 2015
by Pigsy Go to last post
16 395
Help

Need Help!

Okay this maybe like my 100 post on here this week working on this gamemode but when a person is killed, the killer gets the weapons and the loadout when the person who gets killed gets nothing on respawn function GM:PlayerSpawn( ply ) if...

5th August 2015
by PERPGamer Go to last post
0 164
Help

SWEP Viewmodel Problem

I've been testing out a SWEP recently, and no matter what hold type I use, the model is displayed like this The gun is basically right in front of my face. Anything I can do to fix it?

5th August 2015
by huntingrifle Go to last post
3 346
Lua

Force DVScrollBar permanently enabled

Hello FP, I wanted to ask if its possible to set the DVScrollBar to be permanently visible, I tried using "PANEL:GetVBar():SetEnabled(true)" but nothing happened.

5th August 2015
by whitestar Go to last post
0 150
Games

darkRP need coders/supporters

Hey guys so i recently decided to make a darkRP server and i've made one but im struggling to add stuff since i dont know jackshit about coding. So i need coders, and supporters ($$ support). if ur interested add me on steam: ...

5th August 2015
by mib999 Go to last post
5 354
Help

solved Anyone familiar with this error?

Hi, I added a load of custom SWEPS to f2s:stronghold, it worked great, then, I restarted the server and it still works for everyone else, but I can't get in, which is really confusing. I get this error: ...

5th August 2015
by mattymoo142 Go to last post
10 356
Help

solved [DarkRP] Disable Money to Money Collisons?

Hey, fellow Facepunchers! So, not more then five minutes ago I had a little mingypoo join my server. He took the 5,000 start cash and dropped roughly 2,500 2 dollar bills (Which is the lowest amount dropable on my server) He then placed them all in...

5th August 2015
by HDG_MrDeeJayy Go to last post
7 326
Help

HUD Resolution

So basically I have made a HUD and I get ScrW/ScrH etc... I would an example of what I'd type for a box to be placed in the top left (TO ALL RESOLUTIONS) as I am currently resulting to things like ScrW() / 800, ScrH() / 2000 Now I am sure you...

5th August 2015
by dandude7 Go to last post
2 181
Help

solved Overriding hud?

Hi, I want to override the hud in the gm I use, how can I do this?

5th August 2015
by mattymoo142 Go to last post
8 334
Lua

solved Using the Think hook

I was just wondering, when using a think hook, is it in any way putting more "pressure" on the server? Since it runs a function on every single tick, does it have any effect?

5th August 2015
by man with hat Go to last post
12 460
Lua

Using the Net library to call a function from a 3D2D button from one file in another

So, for the past 2 days I have been trying to get a button (made in cl_init.lua) to run a function (which is in init.lua). The button is fine and it works because I can test it with a print command. I have boiled it down to using the Net library (which...

5th August 2015
by Bittenfleax Go to last post
2 215
Help

DarkRP HUD Error

Hello everyone! I've been working on a HUD, but every time I switch to Civil protection I get this error: addons/darkrpmodification-master/lua/darkrp_modules/customhud/cl_hud.lua:177: attempt to perform arithmetic on upvalue 'RelativeX' (a nil value)...

5th August 2015
by CGHippo Go to last post
9 392
Help

solved Scriptfodder is blank?

Uhh...Is it just for me or is Scriptfodder just a blank page, like when I try to access scripts, users, the website itself, I just get a white blank page. Sourcecode is empty, already cleared my cache.

5th August 2015
by whitestar Go to last post
6 189
Help

bad argument #1 to string_gmatch

Why is it doing it? this is what i get: error in string.lua lua/includes/extensions/string.lua:91: bad argument #1 to 'string_gmatch' (string excepted, got userdata) 1. string_gmatch - :-1 2. Explode - lua/includes/extensions/string.lua 3. fn...

5th August 2015
by theplayer232 Go to last post
4 345
Help

Lightsaber help!

I'm very new to this lua coding and I'm reading that theres an error in an addon i have for my server this is the error addons/lightsaber/lua/weapons/lightsaber/shared.lua:144: attempt to index local 'self' (a nil value) 1. unknown -...

5th August 2015
by krekeris Go to last post
3 290
Help

Derma Groups

Hello, So within my code, I was wondering how I would make it so only if the user is the group superadmin the sheet in my DPropertySheet 'Admin Settings' would appear. Here is the code: if CLIENT then usermessage.Hook( "Openpls", function()...

5th August 2015
by krekeris Go to last post
4 194
Help

solved team.GetPlayers help

Hey guys, trying to set a limit for a team on my WIP gamemode. But when I do this team.GetPlayers( 0 ) =< 5 it causes this error gamemodes/jijo/gamemode/shared.lua:8: unexpected symbol near '=' 1. unknown -...

5th August 2015
by CGHippo Go to last post
6 288