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

A quick question, if and else if

I have an 'if' statement, I then want to add multiple conditions to it. So which is the better method? If 'argument1' end

2 Weeks Ago
by Acecool Go to last post
7 176
Lua scripting
 

Messed Up VMT?

Added some ITEM.Materials to my PointShop, when moving around the icons jitter and have black spaces and mess up: http://gyazo.com/bea2e09e69c326ecec17971a01b13d48 VMT code for all of them (only directories changed) "LightmappedGeneric" {...

2 Weeks Ago
by Frubbs Go to last post
8 143
QUESTION
 

usermessage vs. net Library

Hey, I was wondering if it was worth using the net Library just to sent a trigger to the client?

2 Weeks Ago
by FPtje Go to last post
16 400
Lua scripting
 

solved PointShop Items with Icons (Materials)

I had someone code me some PointShop things and when I went to set a material or an icon for all of these it stayed a pink and black checkered pattern. Here is what I did: ITEM.Material = 'materials/vgui/ttt/doublejump.vmt' The VMT has this line for...

2 Weeks Ago
by smithy285 Go to last post
9 113
QUESTION
 

Spawn entity with a Vector? This thread has images

I can't get this entity to spawn. Any idea why? concommand.Add("tester", function(pl, cmd, args) local pos = pl:GetPos() local ent = ents.Create ("portal") ent:SetPos(pos) ent:Spawn() ent:Activate()

2 Weeks Ago
by Catheter Cat Go to last post
3 154
Lua scripting
 

solved Repeating RCON Command

I need help configuring a script that on server boot would submit the RCON command, "say @Confused? Review the Administrator Guidelines on the Steam Group!" every 120 seconds. Essentially like a ULX advert but to Admin chat. Any help appreciated! I...

2 Weeks Ago
by Kaillus Go to last post
17 286
Lua scripting
 

solved PointShop Jump Pack Change

Hello, I renamed my PointShop Jump Pack item in the Accessories category "Jump Training" my question is, is there anyway to make the jump pack have no model while still function as a purchaseable "entity"? The reason I ask is so I can make this sort of...

2 Weeks Ago
by Kaillus Go to last post
5 179
Lua scripting
 

solved animation sequence name for reloading

hey, anyone know what it is? trying to make a function to check if someone is reloading. 1st April 2014 actually think i found them one sec

2 Weeks Ago
by nettsam Go to last post
1 66
QUESTION
 

Need help with making a SWEP

Hey guys, I recently became an admin on a good gmod server and due to that I wanted to try to make new SWEPs to use on the server. The SWEP I wanted to make would be exactly like the fists SWEP, but when a player is hit, it ragdolls the player that is hit...

2 Weeks Ago
by Acecool Go to last post
3 102
Help
 

I Need some Help with TTT

So this is my first time getting a TTT server setup, everything right now is going wonderfully the only thing I would like to know how to do is how to allow players to buy weapons using the undefined's Point Shop? With the default weapons it wont...

2 Weeks Ago
by Arizard Go to last post
1 129
Help
 

Weapon Animation Error

I am currently making a gamemode and you spawn with a throwing knife weapon. In singleplayer, the animations for the knife are at normal speed, but in multiplayer, it is about 5x as fast. Can anyone help? Thanks!

2 Weeks Ago
by XKalamitous Go to last post
15 358
QUESTION
 

Is it possible to virtually create a building ingame without using props and only use coding?

Is it possible to create a building using only lua code without props. Essentially the player would have a tool that showed an overview of the area and it would allow them to build walls in certain areas. I feel it is possible but I honestly have no...

2 Weeks Ago
by Jcw87 Go to last post
11 371
Help
 

I want to trace an area and see if there are any npcs. How do I do that?

Basically what the title says. I just want to trace an area and do something if there are any npcs, but idk how to make it so it finds them. I also want to make it so it doesn't finds any friendlys npcs. How do I do that? Thanks a lot and sorry for...

2 Weeks Ago
by shadowsaints Go to last post
4 139
Help
 

DarkRp, how to make certain shipments only accessible by one class.

In my DarkRP server we have drugs, but currently every class can buy them. I'd like only the drug dealer to be able to. Here is my addedentities.lua. AddCustomShipment( "LSD", { model = "models/smile/smile.mdl"; entity =...

2 Weeks Ago
by thexant Go to last post
2 123
Help
 

ULX disallow target

How would I be able to make it so that a in the targeting parameters for the ranks, I'd be able to put both !%admin and !%moderator in there? I've tried myself and failed. Thank you in advance to any people that contribute their time and support :)

2 Weeks Ago
by Stickly Man! Go to last post
6 214
Help
 

solved Only want client can hear sounds

Hi people, im having trouble finding a solution to this so if any of you have a solution id be glad to hear them. Id like it so that when people join my server a song/sound plays for about 10 seconds, low volume of course i dont want to deafen people...

2 Weeks Ago
by lewiso574 Go to last post
2 185
Request
 

solved TTT Traitor Knife

Could any one make a traitor knife that when you hit a innocent they become a traitor? If you could please help me

2 Weeks Ago
by CaptainChaos Go to last post
2 66
Help
 

Help with a script.

Hey guys what does this error means: stack overflow 1. Open - :-1 2. Write - lua/includes/extensions/file.lua:23

2 Weeks Ago
by Acecool Go to last post
2 119
QUESTION
 

solved Sliding MOTD? This thread has images

I've been looking for an MOTD that scrolls at the top of the screen. I know I've seen free versions of it but now I can't seem to find any. Maybe its my wording for the addon. But pretty much its this: https://www.youtube.com/watch?v=f5ZgP-G_b48 ...

2 Weeks Ago
by Acecool Go to last post
7 244
POST YOUR
 

GMod - What are you working on? - March 2014 ( 2 3 4 5 .. 18 19 20 21 Last ) This thread has images

What Are You Working On? - March 2014 (#31) Highlights from the previous thread (generated with WAYWOGenerator):

rbreslow 1 reading
2 Weeks Ago
by Noi Go to last post
801 61,001
Help
 

solved Setting a value to a player serverside

Hey!, so I am making this addon where the client sends a number to the server and I need to keep that number saved to the player serverside, This is my code that I'm using for it, from the wiki ply = FindMetaTable( "Player" ); function...

2 Weeks Ago
by AnonTakesOver Go to last post
4 101
Lua scripting
 

solved Kill Message Proper Grammar

local teams = { = {Color(0, 200, 0, 255), "Innocent."}, = {Color(180, 50, 40, 255), "Traitor."}, = {Color(50, 60, 180, 255), "Detective."} } function PrintKillMsg(um) local p = um:ReadEntity() local team = um:ReadChar() team = team - 1

2 Weeks Ago
by Frubbs Go to last post
3 155
Lua scripting
 

solved Moderators Can't See This

I am running a server and I don't know exactly what add-on or where the permissions for this is, but none of my staff below admin can see the red "User has left the server with ____ slays left". It is vital to moderating and any help locating a place to...

2 Weeks Ago
by Frubbs Go to last post
15 287
Help
 

solved Looping through a whole directory?

I'm working on a simple gamemode file loading system but I'm having a little trouble so I thought I'd ask here for some help. Basically, I want to be able to use file.Find to loop through a directory and AddCSLuaFile/include every file that is in that...

2 Weeks Ago
by ShadowRanger Go to last post
21 304
Help
 

TTT garrysmod custom css weapons

Hello I use custom css weapons for my ttt server which are weapons such as galil/famas and my problem is that players that dont have css cannot see those weapons so I want to make it easier for them and actually add the weapon models in my addons so that...

2 Weeks Ago
by snakethetroll Go to last post
2 73
YouTUBE
 

Siminov's Swep Tutorials for Gmod 13

As a way to give back to the community, I was thinking about making youtube tutorials on how to do what I do, make weapons. This idea came to me about a month ago, since the help I got on these was minimal over the past few years aside from a few...

2 Weeks Ago
by Siminov Go to last post
12 469
Lua scripting
 

solved Iterate through a non-numerically indexed table in a specific order?

Say I have a table like local t = { = 100, = 2000, = 5, }

2 Weeks Ago
by CallMePyro Go to last post
4 134
Help
 

Get A function On all Connected Clients and Execute all From An Swep shared.lua?????

The title says excatly what i am trying to do. i have a minigame grenade for ttt, and a RenderScreenspaceEffects hook to add on all clients that makes their screen darker and stuff. but i cant get this code onto all clients, and i have been trying for 3...

2 Weeks Ago
by RichyRocker42 Go to last post
3 192
Lua scripting
 

Help for my server

Steam name : ClickBoss Steam profile link : http://steamcommunity.com/profiles/76561198121464694/ Gmod Server : PureGaming - connect 144.76.220.87:27095 Okay basically I need help on how to get the fading door tool to actually go onto the server like...

2 Weeks Ago
by code_gs Go to last post
1 63
Help
 

bit.band problems.

hook.Add("CreateMove","sweg", function(cmd) if (bit.band(cmd:GetButtons(), IN_RIGHT) > 0) then cmd:SetButtons( cmd:GetButtons() , IN_RIGHT end end) ) I want it so that when you hold right, it spams it as fast as it can, but it just doesnt seem to work.

2 Weeks Ago
by xaviergmail Go to last post
6 151
Help
 

Too many Emitters?

I am having a huge problem with emitters because after a while the console spams this error: addons/military snpcs/lua/entities/npc_vj_mili_soviettank_base/shared.lua:23: attempt to index field 'Emitter' (a nil value) 1. func - addons/military...

2 Weeks Ago
by vrej Go to last post
6 138
QUESTION
 

Error

One of my sweps keeps showing a lua error about once a hour, randomly. Here is the error: addons/spas/lua/effects/rg_muzzle_grenade/init.lua:11: Tried to use a NULL entity! 1. GetOwner - :-1 2. unknown -...

2 Weeks Ago
by MrTHC Go to last post
6 223
Lua scripting
 

Script Help

addons/legendscript/lua/autorun/legendscript.lua:28: attempt to call method 'GiveAmmo' (a nil value) 1. unknown - addons/legendscript/lua/autorun/legendscript.lua:28 Timer Failed! Here is the code giving errors: function GivingAmmo()...

2 Weeks Ago
by MGCLegend Go to last post
10 203
Lua scripting
 

Is this bad practice?

I have an F4 menu in DarkRP that I wanted to make toggleable (able to close with F4). Is this piece of code considered bad practice? timer.Create("toggler", 0.25, 1, function() function bg:Think() F4Bind = F4Bind or...

2 Weeks Ago
by Disseminate Go to last post
8 266
Lua scripting
 

ENT:Use() on client

How can I use the function on the client, without using any kind of datastream or umsg?

2 Weeks Ago
by dayllack Go to last post
4 364
Help
 

ENT:Use and gui.OpenURL

Hey there everyone! I'm currently working on a Clockwork HL2RP plugin, and I need to figure out how to make it so when you press Use on the entity, it opens the steam browser. Here is the code; -- Called when the entity is used. function...

2 Weeks Ago
by dayllack Go to last post
3 318
Help
 

Citizen female long dress

Hello all the brothers! Maybe somebody knows if there are female models citizens in long vintage dresses or robes?

2 Weeks Ago
by Robotboy655 Go to last post
1 117
Help
 

Gun Dealer is not working right

Ok so my gun dealer sells m9k but for some reason every single class can buy weapons. Just weapons. Not shipments. Here is one of the codes: AddCustomShipment("FG42 Single", "models/weapons/w_fg42.mdl", "m9k_fg42", 550, 1, true, 700, true, {TEAM_HEAVY})

Mr.Mezzy 1 reading
2 Weeks Ago
by Acecool Go to last post
9 150
Help
 

DarkRP Mayor demote upon death

Hey, i am trying to get my darkrp mayor job to demote upon death. this is my code: PlayerDeath = function(ply, weapon, killer) if( ply:Team() == TEAM_MAYOR ) then if killer:Nick() ~= nil then ...

2 Weeks Ago
by Bo98 Go to last post
28 326
Lua scripting
 

Starting Gmod server

Ok, so I'm new to creating servers and coding. I know some of the stuff is technical, so I thought having a place I can ask questions is awesome. So right now I'm working on a Prophunt server. I have the evolve admin mod and pointstore mod. My first...

2 Weeks Ago
by BFG9000 Go to last post
6 142