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

Material path for WepSelectIcon for default Garry's Mod weapons?

I'd like to apply the HL2 .357 WepSelectIcon to my own weapon, which is also using the .357 weapon model. Is there an easy way to find the path for the .357 WepSelectIcon material? Or does anyone here know it? I've extracted the materials folder from...

3 Weeks Ago
by Robotboy655 Go to last post
3 126
Help
 

solved Soundlist problems

Okay so i use TCA Admin to edit my server, the other day i wanted to add some sounds and i realised there was no sound folder, so i created one garrysmod/sounds.. and i have added a few sounds, the sounds i have added do not show up on the soundlist in...

3 Weeks Ago
by Robotboy655 Go to last post
4 85
QUESTION
 

solved Issue with changing model of tool through console

Players in my server are able to get passed my blacklist (FPP) and spawn blacklisted models with this console command: toolname_model <modelindex> ex: button_model models/props_c17/chair02a.mdl How do I block this? It's becoming more and more of...

3 Weeks Ago
by imMrAnarchy Go to last post
6 111
Help
 

Any way to change the color of a player

I have tried multiple youtube videos and the code that they have provided do not seem to work for me and do not color the player. I would like a way to implement this for the team based gamemode I am creating. Init AddCSLuaFile("cl_init.lua")...

3 Weeks Ago
by Braden1996 Go to last post
1 115
Help
 

weapons in DarkRP give errors and no sound

Hello, I tried to add a custom weapon pack to my DarkRP server but when I spawn them in using Q most don't even work and some of them shoot but give no sound and I get alot of errors when people shoot. This is the error that keeps popping up in the...

3 Weeks Ago
by bluebull107 Go to last post
1 97
Help
 

DarkRP - Can't Arrest

So, lately you can't arrest people in-game with arrest sticks so I tried doing it in console and I got this error. gamemodes/darkrp/entities/entities/ent_unarrestbox/shared.lua:62: attempt to index global 'Lockpick' (a nil value) 1. fn -...

3 Weeks Ago
by ms333 Go to last post
3 110
Help
 

Grey Models

I'm trying to make teams so when it assigns you to a team it turns your model red or blue depending on team but in game it turns out as a grey player model. AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua")...

3 Weeks Ago
by alex578344 Go to last post
8 206
Help
3 Weeks Ago
by JasonMan34 Go to last post
3 154
Lua scripting
 

Client Join Freeze

https://dl.dropboxusercontent.com/s/8aovkxrud0spqqe/2014-08-30_09-25-01.mp4?dl=0 For some reason when you join server you can't move for about 30secs. It also happens on other servers like metastruct. Has anyone else has experienced this issue? Would...

3 Weeks Ago
by NiandraLades Go to last post
1 114
Help
 

solved I need help with Prop hunt Gamemode vote

The prop hunt server I am on is having troubles with there gamemode voting system, when no one is on the sever and the gamemode vote comes up if nothing is voted for it crashes and the server gets frozen on the last map just hovering around in spectate,...

3 Weeks Ago
by Dragondustin Go to last post
2 116
Request
 

Small Request

I was wondering how to turn this code into a specific time like every 5 minutes ~ 300 seconds with the minInterval being 90 seconds always if AMG.UseTimer then timer.Create( "StartMinigame", AMG.minInterval, 90, function() StartMinigame(...

3 Weeks Ago
by Author. Go to last post
2 183
Help
 

solved [Not allowed by whitelist] Difficulty Uploading to the Workshop

Hi, I am attempting to upload a SWEP based on M9K to the Workshop, and I am met with a few of my files being listed as . E:\Steam\SteamApps\common\GarrysMod\bin>gmad.exe create -folder "C:\Users\Metasy nc\Desktop\workshop\uber_usp" -out...

3 Weeks Ago
by Metasync Go to last post
2 152
Tutorial
 

[TTT] Passive/Equip Items

Cause Code_GS said it wasnt possible without core gamemode editing in another thread and the OP locked it... I can't remember where I copied this code from but I've used it before and it works wonderfully. Enjoy EQUIP_TESTITEM = 256 -- Power of 2 ID,...

3 Weeks Ago
by Acecool Go to last post
9 232
Help
 

Disabling Fall damage when SWEP is in hands

I am making a SWEP that increases the players jump power when the left click and sets it back to normal when they right click. After doing this I wanted to disable fall damage when the SWEP is in the hands of the player. I have found this:...

3 Weeks Ago
by Acecool Go to last post
8 219
Help
 

Prewritten DarkRP Blacklisted Models

Hey! Title says it all.... Is there anyway I could possibly get a file/addon that has the unnecessary models blacklisted? Or do I have to go through and manually blacklist them all...

3 Weeks Ago
by |Legion| Go to last post
4 131
Help
 

solved Help with a func_door

Sorry if this is the wrong forum, but I've been having a little but of trouble trying to make a jump pad in the hammer editor. What I have works fine, it's just a func_door that moves up when a player stands on it causing them to fly up. However to...

3 Weeks Ago
by arbio22 Go to last post
2 100
Lua scripting
 

solved My Command wont give player a weapon

Hey i have a code to where if you click a button it will give you a weapon/weapons but it will not give the weapon. There are no errors but it wont give the weapon!? Here is the code where the button is //Buttons local DermaButton =...

3 Weeks Ago
by crazyscouter Go to last post
10 268
QUESTION
 

solved Weird file found in downloads/data

I know this isn't really related to Lua but I found a file in my downloads/data folder called game.it. It is all encrypted except for the first line. Extended Module: Feeling Irresistible FastTracker v2.00 Anyone have any ideas how it would get...

3 Weeks Ago
by SpiralP Go to last post
1 123
Lua scripting
 

Pointshop Accessory Issue

Recently my "Jump Pack" accessory suddenly stopped working. Here's the default code for the jumppack that I'm currently using: ITEM.Name = 'Jump Pack' ITEM.Price = 1000 ITEM.Model = 'models/xqm/jetengine.mdl' ITEM.Bone = 'ValveBiped.Bip01_Spine2'...

3 Weeks Ago
by Sequax Go to last post
0 116
Help
 

solved No Custom Reloading Sound with SWEP

Here is my code: if SERVER then AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "RazorShared.lua" ) end SWEP.HoldType = "ar2"

3 Weeks Ago
by COM.WILSON Go to last post
11 228
Lua scripting
 

solved Crash 30 seconds after running script

While making a HUD it started crashing shortly after loading the HUD and I have no clue on what in the code is make it crash function myhud() local client = LocalPlayer() if not client:Alive() then return end if (client:GetActiveWeapon() == NULL...

3 Weeks Ago
by Rtyan Go to last post
21 260
Help
 

Attempt to call global 'LookupPlayerClass' (a nil value)

WARNING: This code will be very messy, please ignore. function GM:PlayerSpawn(ply) if ply:Team()==1 then player_manager.SetPlayerClass(ply, "player_combine_soldier") ply:SetWalkSpeed( LookupPlayerClass(ply).WalkSpeed ) ply:SetRunSpeed(...

3 Weeks Ago
by RonanZer0 Go to last post
2 101
Help
 

Missing map.

I set up FastDL and it works just fine with everything, but first time i join a server without that map i get kicked because map is missing, and if i connect again without restarting game it will be fine. Is there any way to fix this? I have also tried...

3 Weeks Ago
by Belly136 Go to last post
15 338
Help
 

solved Having an Error trying to Give Weapons!

Hey im trying to make a button on the derma menu to give player a certain weapon. There is an error saying its a nil value which im confused why :P But i may have over looked something, or thought twice about it. THE CODE //Buttons local...

3 Weeks Ago
by Vizik Go to last post
4 138
Request
 

solved DarkRP Doors Not Locking Or Unlocking. Can you Help?

Inside DarkRP when you buy doors as any class you can't unlock or lock doors. However you can use the console commands to lock and unlock all doors server side. The animations are working. Any ideas? If you need any files ask me.

3 Weeks Ago
by JackTheFlap Go to last post
2 91
Lua scripting
 

solved Expodential Functions and math.Clamp

I'm new to Lua coding in Garry's Mod and I am currently trying to create a Speed Bar for my BHOP HUD which uses Exponential Fucntions as I don't want it to reach the end of the bar as speed on BHOP is unlimited. How would I apply this method to achieve...

3 Weeks Ago
by Loveasparagus Go to last post
4 166
Help
 

solved LUA error involving jobs

Hello, I've recently gotten this error and I can't seem to figure out the problem. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:505: '}' expected (to close '{' at line 490) near 'premiumgundealer' 1. unknown -...

3 Weeks Ago
by Tetris God Go to last post
5 101
QUESTION
 

solved Can't put a texture onto a derma button

Yes, I'm fully aware that I'm posting a lot in this section. Code for my team selection button (painting): team_2.Paint = function() surface.SetDrawColor( 255, 0, 0, 255 ) surface.DrawRect( 0, 0, team_2:GetWide(), team_2:GetTall() )...

3 Weeks Ago
by Kogitsune Go to last post
2 103
Help
 

Gmod Chat in color

Quick question? Whats the command to add color to a message in chat (serverside - Gmod)

3 Weeks Ago
by Mors Quaedam Go to last post
12 218
Help
 

solved Timers + ply = nope

Why are timers so uncooperative? timer.Simple( 1, function() player:EmitSound( "/npc/combine_soldier/vo/off2.wav", 100, 100) end) attempt to call method 'EmitSound' (a nil value)

3 Weeks Ago
by arcaneex Go to last post
6 126
Help
 

DarkRP custom weapons errors

I installed custom weapon pack on my server. I put the folder in addon and the weapon_blabla folders in the weapon folder in darkrpmod. I spawn them using Q to test. But when I shoot I hear no sound and I get this error in console: ...

3 Weeks Ago
by okkeh96 Go to last post
4 97
Request
 

solved Pointshop help?

Been trying to work on this code to get it a certain way for Pointshop. It's a traitor/detective buy, I've been trying to add a cooldown for 10 rounds, also something that will autoholster it, and not allow the player to reholster until the 10 rounds are...

3 Weeks Ago
by cbpunchy Go to last post
11 309
Help
 

Easy steam group join with !join addon

Can somebody please link me to the addon where people only have to say "!join" in your server to join the steam group? i've been looking all over for it i can't seem to find it anywhere

3 Weeks Ago
by crazyscouter Go to last post
9 182
QUESTION
 

solved Playing a sound from a player

I tried surface.PlaySound using a chatcommand thingy (in init.lua), but apparently surface is only for clients. Basically I want to play a sound coming right out of the player. How? Hopefully this is simple. (I did it when I first started Lua, but now I'm...

3 Weeks Ago
by Exho Go to last post
1 83
QUESTION
 

solved Making text only appear to players in a certain radius

How do I make text appear to players only in a certain radius, similar to RP gamemodes?

3 Weeks Ago
by Internet1001 Go to last post
1 96
Help
 

Addon Errors

I am trying to make a SWEP that adjusts the players jump height. When using the SWEP I get the errors posted at the bottom of this thread. This is my code in my shared.lua: //This makes sure clients download the file AddCSLuaFile() -- No arguments...

3 Weeks Ago
by Praesdynamite Go to last post
2 66
Help
 

Forced name change

Hey, I'm looking for a way to change a player's Nickname but I can't find out how. I've tried stuff like LocalPlayer():Name == "blabla" but thats clearly not right. All help greatly appreciated :)

3 Weeks Ago
by jrt232 Go to last post
4 118
Stupid
 

Uploading my first addon

I am trying to upload my first addon. I have already uploaded it but when I start up a single player game it says "Addon Gravity Minimizer Is Creating Script Errors." I have looked all over the internet for a detailed a thorough way to make a SWEP and...

3 Weeks Ago
by Praesdynamite Go to last post
11 319
Request
 

Background image for chatbox?

Hello all! I was wondering if there was any way to change the chatbox so that the background of it would be an image. Basically what I'm asking is "is there a way to remove the defult chatbox and simply keep the text aspect of it, but replace the...

3 Weeks Ago
by Nookyava Go to last post
8 224
Lua scripting
 

Speed Bar

I currently have this code: draw.RoundedBox(0, 320, ScrH()- 70, math.Clamp(velocity, 0, 250), 40, Color(0,130,130)) *250 being the width of the background* I would like to make it so that as your speed increases the bar increases with it but as...

3 Weeks Ago
by circuitbawx Go to last post
14 354