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

solved Getting the class of a TTT weapon?

Trying to get the class of a weapon in TTT (vanilla weapons) and it only returns "player" when using dmginfo:GetInflictor():GetClass() But whenever I get hit by a crowbar it shows weapon_zm_improvised and when I checked weapon_zm_improvised.lua I...

2 Weeks Ago
by serfma Go to last post
2 105
Lua scripting
 

Is an NPC possessor even possible?

We've seen pills. We've seen SNPC posessors... But what we've NEVER seen, is something that can control vanilla NPCs. (Dropships, Combine Soldiers, Alyx, Barney, Gunships, Manhacks etc.) Is this even POSSIBLE? I see this comprehensible (for me, at...

2 Weeks Ago
by RonanZer0 Go to last post
7 284
Help
 

PointShop: Playermodel Unequip Problem

Hey, I got a problem with PointShop. My server runs the gamemode TTT. Everything is working fine for now except one thing; If I equip a playermodel and leave my server.. and join back in it won't let me unequip it until 1-2 rounds have been...

2 Weeks Ago
by Legendx Go to last post
2 91
Lua scripting
 

Lua Problem

so I want to save the the output of what ever a player says after /report in a variable. I can easly return it like this function ISaid( ply, text, public ) if (string.sub(text, 1, 7) == "/report") then--if the first 4 letters are /all continue ...

2 Weeks Ago
by selfdestruk1 Go to last post
2 150
Help
 

How to edit round timer?

I have my gmod server with a server round timer. The timer: http://pastebin.com/BY9RxUuf When I want to change the name of the round timer and then change the codes associated with the timer, all I get are errors. Why, and how do I fix this? I need round...

2 Weeks Ago
by Acecool Go to last post
9 194
Help
 

solved help with DTextEntry

Im trying to make a panel that stores a name using DTextEntry but it won't let me type is there a way to disable player movement as well as make it so player doesn't spawn till the name is entered?

2 Weeks Ago
by selfdestruk1 Go to last post
4 111
Help
 

solved TTT Special Equipment Bitflags - What's the highest?

Currently, I'm modding a weapons pack for TTT, which will add, a maximum of, 16 store items. So that it won't (or has a less chance of) interfering with other mods, I put a 10-ID buffer between the four that exist in-game and the custom ones I'm working...

2 Weeks Ago
by HumbleTH Go to last post
4 138
Help
 

Floating Weapons When Dropped This thread has images

So this is what happens, when I drop a weapon on the server it physically drops, but when someone else on the server drops it, it just floats in mid air. This is the code from one of my weapons: AddCSLuaFile() SWEP.HoldType = "ar2" ...

2 Weeks Ago
by YourStalker Go to last post
9 209
Art
 

solved Jigglebones in viewmodel hands This thread has images

I have made custom viewmodel hands for my playermodel, but I wasn't satisfied with the cloth around the arms not moving so I decided to add the same jigglebones as the playermodel (which work fine on that), but I got strange results for the hands: ...

2 Weeks Ago
by Shenesis Go to last post
2 168
Help
 

DarkRP Class Errors

Alright so I was making custom classes, and I am getting this error: addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:81: '} ' expected (to close '{' at line 67) near 'PlayerLoadout' 1. unknown -...

2 Weeks Ago
by RickyBGamez Go to last post
7 100
Help
2 Weeks Ago
by Ethan1232 Go to last post
0 77
Help
 

solved Workshop Addon Error

Does anyone know why my servers are returning "Unknown command "resource.AddWorkshop"? They worked fine before!

2 Weeks Ago
by bluebull107 Go to last post
12 124
Lua scripting
 

Code error?

Hello I'm having an error with a script due to the sv_config and config not being included addons/skilltree/lua/vgui/skillpane.lua:217: attempt to index field 'Config' (a nil value) 1. CheckCol - addons/skilltree/lua/vgui/skillpane.lua:217 ...

2 Weeks Ago
by extra.game Go to last post
5 143
Help
 

Change DImage to show avatar

Short question. How can I change the code below to show a 64x64 avatar instead of the texture? if !DermaShown then PlayerIcon = vgui.Create( "DImage" ) PlayerIcon:SetSize( 64, 64 ) PlayerIcon:SetPos(5, 5) PlayerIcon:SetModel(...

2 Weeks Ago
by Ilyaaa Go to last post
3 119
Help
 

solved [HELP] Is there a way to get a players forward velocity. (No matter what the angle)

Hi Guys. Im looking for a way to get the Local Players forward velocity returned as one number instead of a vector. ( So the box in the video will only move up and down ) Is this possible? I had a play with this code below and the video below was the...

2 Weeks Ago
by Steeze Go to last post
4 162
QUESTION
 

solved Player Kills Player.......

Hey sorry for constantly posting for help, but i think thats the best way to learn is from other coders. Anyway. Im wanting to make a system where if a person kills someone then you can change things like there speed, jumpheight, give more ammo, ect. Ive...

2 Weeks Ago
by Vizik Go to last post
10 189
Lua scripting
 

solved ERROR While trying to make a HUD.

Hey, ive been making a HUD for ammo and it works :) ( thankfully ) Though in my gamemode you dont have a weapon as soon as you spawn. So using what i know i did this if ply:GetActiveWeapon() > 1 then function --blah blah blah end end That...

2 Weeks Ago
by Vizik Go to last post
10 141
Art
 

solved GMod - What are you working on? August 2014 (#36) ( 2 3 4 5 .. 11 12 13 14 Last ) This thread has images

As per usual, PM me or steam message me any fixes to the OP! I've added stuff based on the amount of ratings it, from the first and last few pages. (Probably more to come to this OP) Highlights from the previous thread

2 Weeks Ago
by Mors Quaedam Go to last post
547 38,096
Help
 

Mayor's Aid Class (DarkRP)

Hey guys! I would like to know if it's possible to make it so a class is used only when there is a mayor. For example, if a Mayor is elected, the police now have the ability to be a "Mayor's Aid" class. If there is no mayor it relays back an error message...

2 Weeks Ago
by Project G Go to last post
2 119
Lua scripting
 

ULX Groups And Targetting

For some reason some groups are able to target groups that are higher up than that group, and I can't figure out why. For example, VIP can target operator, owner, superadmin etc. Here's the file from the ulib folder inside the data folder. ...

2 Weeks Ago
by Praesdynamite Go to last post
2 113
Lua scripting
 

DImage Collisions

Hi there, I wondering if someone can help me out with some DImage collisions. I have 2 DImages and one is in the MoveTo function. If the 2 images touch each other i need something to happen. I have tried getting the position of both images and writing...

2 Weeks Ago
by gonzalolog Go to last post
1 106
Help
 

YouTube Player Auto Updating?

Hello, I've tried converting this entity from the Elevator:Source gamemode so that people can press E on the entity to change the URL. For some reason once the URL is entered (YouTube video.), the video is played for a second or so but returns back to the...

2 Weeks Ago
by kpjVideo Go to last post
1 210
Lua scripting
 

TTT Server Start Weapons

How would I make it so that at the beginning of every round, superadmins or some other group can spawn with a physgun?

2 Weeks Ago
by jackwilsdon Go to last post
5 137
Help
 

Need some help on drag & drop functionality

I'm adding some drag & drop functionality to the pointshop and it seems as soon as you release the mouse after dragging a drag-n-drop item the mouse cursor disappears. I've tracked it to:...

2 Weeks Ago
by highwon Go to last post
3 167
QUESTION
 

how to change spawn position??? This thread has images

sorry im noob but how to change spawn position on a map? lets say grassflat, how do i get the cords for spawn for example?

2 Weeks Ago
by Allusona Go to last post
10 3,090
Help
 

solved Drawing with cam.Start3D This thread has images

I want to draw a roundedbox in 3D space, this code works fine hook.Add( "PostDrawEffects", "OnPaint", function() local pos = LocalPlayer():GetPos() local ang = LocalPlayer():GetAngles() cam.Start3D(pos + ang:Forward() * 32 + ang:Up() * 8,...

2 Weeks Ago
by OMGOMG132 Go to last post
3 119
Lua scripting
 

Jobs.lua - Need help, please!

Hey guys, sorry about this, I have read so many threads with this error but with a different error in the code... I believe it's a tiny tiny Syntax error some where in the code - I only know Python, need to learn LUA! Therefore I can't spot what's...

2 Weeks Ago
by code_gs Go to last post
13 316
Help
 

M9k shotgun not working

alright so i'm making custom sweps and all on the m9k base and i'm trying to make this here shotgun and it's not working quite right. it simply does not reload. you press r, it just sits there. you try and fire while it's empty, it plays the click...

2 Weeks Ago
by Praesdynamite Go to last post
2 123
QUESTION
 

Customizing my tab/f4 menu

So for about a week now I have been looking all over Google for a way to customize my f4 and/or tab menu so they're unique in a way. I have a pretty basic understanding of lua and would absolutely love to learn how to do this.. Any help?

2 Weeks Ago
by Praesdynamite Go to last post
2 139
Lua scripting
 

Post Your: First Lua Project ( 2 Last ) This thread has images

Everyone has to start somewhere, some people (including me) start with hacks, other people start with derma while others start with simple gamemodes.. Regardless of how you started, this it a thread where you can post your ridiculously crappy first...

2 Weeks Ago
by Exho Go to last post
66 2,018
Lua scripting
 

End Round Points help

I need some help with this little script I made. It halfway works. It gives the 50 points for winning the round and the 5 points for killing someone but not the 10 points for people who are dead. Here is the code: if (SERVER) then...

2 Weeks Ago
by Aeternal Go to last post
4 117
Lua scripting
 

Vehicle invalid: Buddy. Unknown vehicle name

I added this to DarkRP.createVehicle({ name = "Buggy", model = "models/buggy.mdl", price = 500 }) I followed the official gmod wiki yet I get this error in this console

2 Weeks Ago
by ADev Go to last post
2 119
Help
 

Error when trying to buy shipment?

Hello, as a gun dealer I cannot buy shipments, it gives me this error message: "you do not have the right job to use /buyshipment" Here is my shipments.lua AddCustomShipment("Glock", { model = "models/weapons/w_pist_glock18.mdl", entity =...

2 Weeks Ago
by bluebull107 Go to last post
10 171
Help
 

Spectator Mode

How would I place a player that has died in spectator mode?

2 Weeks Ago
by Acecool Go to last post
1 98
Help
 

FastDL Model with partial materials downloading This thread has images

I'm fairly certain all materials for this model are in FastDL, but why is this occurring for players?

2 Weeks Ago
by OzymandiasJ Go to last post
1 88
QUESTION
 

Simplifying my "if then elseif" block using tables?

(this is under a Reload function) Basically I want this to cycle in a predictable order 1->2->3->4 down a list of damage types and the only way I got this to work is by using a long if then else statement. I was wondering how I could simplify this using...

2 Weeks Ago
by Exho Go to last post
6 303
Help
 

solved FastDL not working properly

So, people can see my custom PointShop models (like Iron Man, etc) that are on FastDL, but they cannot see a custom hat I put on the FastDL or custom weapons that I also put there. What gives? I have them on my GMod already, so I can see them and they...

2 Weeks Ago
by Pjor1 Go to last post
5 147
Lua scripting
 

Custom VGUI not getting width?

I have made a custom VGUI which works perfectly fine for the most part.... But for some reason, I can only do self:GetWide() in self.Paint to get the correct width. Otherwise, self:GetWide() just returns 64... How the hell? local PANEL = {} function...

2 Weeks Ago
by Chizbang Go to last post
6 225
Lua scripting
 

unknown command 'rdm_menu'

Hey guys. I'm making an RDM menu, and I recently migrated my console commands over from being on the client to being on the server. Basically all this means is that my code went from: client: concommand.Add( "rdm_menu", function() net.Start(...

2 Weeks Ago
by CallMePyro Go to last post
0 119
Help
 

Team Evening Being Dumb :P .

PROBLEM: Everytime a person dies he is set to another random team ( being the other team from the one he was previously on ). Here is the code for the evening teams :P //Evening Teams local VTCG = math.random( 1, 2 ) local GAN = team.NumPlayers( 1...

2 Weeks Ago
by MadkillerMax Go to last post
7 192