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

Help with SWEP

Hi all. im fairly new to lua and ive been trying to create a swep for my friends TTT server. The swep is going to be a grenade launcher that fires a number of physics props which then shortly explode. i am fairly inexperienced so i tried modifying...

9th November 2015
by KimBongUn Go to last post
2 175
Lua

'catch' error models and replace them?

Hey there, explaining why I want to do this might take a little while - so I'm going to cut to the point. Client A and Client B have a playermodel file installed on their gmod, but Client C doesn't. If Client A has the playermodel equipped, Client B...

9th November 2015
by TreeBek Go to last post
10 615
Help

solved BodyGroups and SetSubMaterial

Hello FP. I'm having problems setting the submaterial of a bodygroup, is there any way to do that? The material fits onto the BodyGroup, I just can't apply it via SetSubMaterial.

9th November 2015
by soliv Go to last post
1 205
Help

Wondering about two things

I have been wondering how one might make a quick message that would appear on someones screen if a command is entered. Like console kill, or !respawn Would you use Draw.SimpleText and a Timer.Simple to make it self remove?

9th November 2015
by DiscoKnight Go to last post
8 349
Help

Model that replaces city scanner is facing wrong way

I'm trying to replace the model of the city scanner, but when I replace the model, it flies sideways towards me. I tried using SetAngles, but that doesn't work either. I've even recompiled the model, and this still hasn't worked. Can anyone help? Here's...

9th November 2015
by Robotboy655 Go to last post
1 257
C++

solved bad argument #1 to 'pairs' (table expected, got string)

Hello keep getting this error message when using the in pairs loop. bad argument #1 to 'pairs' (table expected, got string) The table Weapons.Test = { = "weapon_ttt_g3", = "weapon_ttt_m16"

9th November 2015
by legendofrobbo Go to last post
3 981
Help

solved DarkRP Disable Prop Spawning for users only?

Is there any way to only allow prop spawning for admins or superadmins etc (I'm using ULX) in DarkRP or just in general. I know it's a weird request seeing as building is a key part in normal DarkRP but I'm making a Serious RP server (won't go into...

9th November 2015
by CelaeonSan Go to last post
4 4,837
Lua

VCMod issue - All cars are no collided

Hello! My friend stopped using VC mod (cause he closed down his own server) so he added it to our server and there seems to be an issue. All the cars on the server are no collided. If you right click on the car, there is still the option to disable...

8th November 2015
by alphoni Go to last post
2 324
Help

Darkrp Lock Certain Doors on Startup

I have very little coding experience and I was wondering if anyone would be able to help me write up a small little script that locks all doors with certain door groups. For example all doors in the police station lock on startup. Any help would be...

8th November 2015
by TheGuyGiraffe Go to last post
17 700
Lua

solved Help?

So I'm currently trying to change the tag colors for the ooc chat for darkrp. I've managed to change the tag color to the color I want but the issue I'm having it's carrying over to the name so for example the tag is green and then it also carries over to...

8th November 2015
by bluemist Go to last post
6 342
Question

[IDEA] Preventing x86 segfaults by using VirtualAllocEx->WriteProcessMemory on an external process ?

Since months, players are reporting this error : "Lua Panic Not enough memory" Even 16gb ram users have this error, i bet it's from the 15gb of textures/geometry of cars/weapon/nudes_mods or whatever. The idea is to keep all the engine and Lua...

8th November 2015
by Zeh Matt Go to last post
10 595
Help

TTT Pointshop Ranks Cooldown

I would like someone to help me add a cooldown for the ranks that I sell on my pointshop because then people can become Traitor many times in a row.

8th November 2015
by MrVideoFreak Go to last post
10 315
Help

solved Trying to add cars for a NPC spawner (TCB Dealer)

Not sure if this is the right place to post addon CFG help threads. So, I added a NPC car dealer addon for my server, but I can't get the custom checks to work. Here's the lines of code I'm having trouble with, it gives me no errors or anything,...

8th November 2015
by BiiXteR Go to last post
2 249
Lua

hook keypress error

Hi I made a hook using the wiki...it should do something when I use IN_USE...it works well if I use print function (for checking if it works) but if I refer to self:StartActivity or similar it says attempt to index global 'self' (a nil value) I have...

8th November 2015
by Frizios Go to last post
2 198
Help

app_update extremely slow

I have been trying to install Garry's Mod onto my Ubuntu 14.04 VPS server. This is the process I go down: sudo apt-get update sudo apt-get install lib32gcc1 sudo apt-get install lib32stdc++6 sudo apt-get install screen sudo mkdir steamcmd cd...

wamo 1 people are reading this thread x 1
8th November 2015
by Stardust342 Go to last post
3 675
Lua

solved Need help with converting a little bit of code

So i were converting some code for my and rtm516's custom gamemode and i run into this problem sometimes its hard to convert code so dont judge please DarkRP.notify(ply, 1, 5, "Return to the bus or be demoted in 15 seconds.") how do i convert it...

8th November 2015
by Z0mb1n3 Go to last post
9 320
Help

solved Run a command for all values in a table

So i was wondering how i would run a command for each value in a table with a 5 second delay after the command is ran. example: value1 wait 5 value2 wait 5 value3 wait 5 etc... This is all i can think to do but i dont know how to do a delay after...

8th November 2015
by zippy36jr Go to last post
4 178
Help

solved Event names

Where would i find hook.add event names ie Checking if a player spawned a NPC hook

7th November 2015
by DiscoKnight Go to last post
0 193
Lua

solved Spawning vehicles with a NPC

So I'm having issues with my NPC Car dealer I'm wanting to have Star Wars ships rather than Cars but whenever I add the entity to the car dealer it just doesn't appear (this persists with all of the car dealers I've tried) I'm fairly sure it's because...

7th November 2015
by CelaeonSan Go to last post
0 152
Lua

solved DListView | Live Updating Help

Hello, i'm wondering if there is a way to have a live updating DListView. I have a value that changes every second, and i have a DermaMenu() function hooked up to it.

7th November 2015
by BillyOnWiiU Go to last post
1 192
Help

Joining / Connecting

Out of nowhere, random players have the Joining / Connecting error and it won't go away. They literally can't do anything, all their money is gone. But it's only some players, everyone else is fine. What the hell could this be?? Only errors I'm getting...

7th November 2015
by ThatDesire Go to last post
4 284
Help

solved Smoothload (Garry's Mod loading screen)

Never mind. I fixed it. Removed code so I won't leak it

7th November 2015
by DiscoKnight Go to last post
2 283
Question

solved Default PlayerColor?

Hey guys Looking for the playercolor to make them have the default color. Right now I have mine victim:SetColor( 255, 255, 255, 0 ) And I get this result

7th November 2015
by CGHippo Go to last post
0 134
Help

solved Playtime on HUD

Im using an evolve admin mod with the command !playtime. Its a easy job i think. table.insert( text, {"Platime: "Command that needs to be displayed here, "gui/silkicons/clock"} ); can someone change the: command that needs to be displayed here...

7th November 2015
by Misterbobbie Go to last post
2 180
Help

solved health bar-hud

hey i dont know why but my huds health bar always stays as full health and the health bars wont update his self for the new hp that the players got (its not the full code, my full hud is with 467 lines) local currentHealth = 0 local function...

7th November 2015
by PizzaDoxy Go to last post
4 332
Help

3D2D in DModelPanel

I am trying to draw some 2D elements in a DModelPanel, but I can't figure out the correct way to do it.

7th November 2015
by Kamshak Go to last post
4 945
Question

IP.Board: Global Game Server banning & forum to in-game ban intergration plugin?

Hello everyone. Okay so today I'm trying to find out if this has been done before or if it's even possible. ( hopefully ) So, I'm trying to find a plugin for IP.Board4x that would automatically ban a player via IP or SteamID on our forums if said...

LOT
7th November 2015
by LOT Go to last post
0 296
Help

Condensed some models in a pack, yet legs appear as errors?

Hi, I basically condensed a workshop pack by ripping the models I needed from it and re-uploading the select few models for my server's content pack, however, I notice that in Clockwork (A roleplaying framework if anyone didn't know..) my legs appear...

7th November 2015
by Sheeplie Go to last post
14 615
Help

Entity Use Function + Checking jobs in a Table

If I had a list of entity names in a table, how would I call a function in my server-side code when an entity in the table is used? Then check if the person who used the entity is in a job defined in a table with many other jobs? I'm coding an addon for...

7th November 2015
by Threebow Go to last post
9 396
Question

solved Set No Collide w/ Other Players

Hey guys, working on a knockout system that I finally decided to start back up again. Basically my question is how would I go about having it so when the player is ghosted ( already accomplished ) no other player can touch them. Like can walk through...

7th November 2015
by NiandraLades Go to last post
2 185
Help

solved Applejack Spawnpoints

Hello, Im running an applejack server called TownRP and my spawn save, but only the first spawn i set. Can someone help me. The one who does this will be rewarded all my steam cards (25 cards) and 1 red orchestra key Regards, Misterbobbie 7th...

7th November 2015
by Misterbobbie Go to last post
8 284
Help

solved net.ReadEntity returning NULL Entity

Been having a little problem with a shared file here. I'm sending an entity from the server to the client and then applying them to the table I've made on each client. But for some reason, when I receive the entity clientside it is just null, so my code...

7th November 2015
by MaximLaHaxim Go to last post
11 842
Stupid

mysqloo - Russian chars

Hello. I have External mysql server where storing players names in different languages. It looks normal in PhpMyAdmin, but not in GM Lua table after query: file.lua - UTF-8 w/o BOM local db = mysqloo.connect( host, user, password, dbname, port...

7th November 2015
by Koji6ac9H Go to last post
0 370
Lua

solved Client World Vectors

When I tryed to use ents.FindInBox on Clientside it seems like the vectors are based on the player position instead of the map. Any way to bypass this?

7th November 2015
by Datamats Go to last post
2 226
Help

Darkrp Modules problem?

I have the addon data save - https://scriptfodder.com/scripts/view/908/description/ , and whenever I go to click 'restore 'job' and what not. This kind of error pops up http://i.imgur.com/LbdSvFZ.png http://i.imgur.com/Y2Tisg5.png Do not worry...

6th November 2015
by Coffeee Go to last post
1 173
C#

gluac - the GMod lua equivalent of luac ( 2 Last )

Source code How to use: - Copy lua_shared.dll from garrysmod/garrysmod/bin into the same folder as gluac.exe - Copy tier0.dll from garrysmod/bin into same folder as gluac.exe - Use the same way as you would use luac This tool is, however,...

6th November 2015
by cartman300 Go to last post
49 4,484
Question

Mute toolgun sounds? (hid effects)

I've got my character and even the gravgun to be invisible. However toolguns still make noise. Is there a way to remove this? Where should I start looking?

6th November 2015
by thegrb93 Go to last post
6 434
Help

solved Help with NPC Relationships

Hello, I'm developing new gamemode that is inspired by Splinter Cell: Chaos Theory. So I am a fairly good Lua coder, but I'm having trouble with NPC Relationships. hook.Add("Think", "stealthAI", function() local light =...

6th November 2015
by austinn2003 Go to last post
11 547
Art

Porting particle FX from a newer engine/DMXConvert?

So right now I'm trying to port a particle effect from Insurgency (which is on the 2013/CSGO branch of Source) backwards into GMod, which afaik is on a slightly earlier engine branch. The particle effects don't use anything weird, so the pcf itself...

6th November 2015
by Lubci Go to last post
1 416
Lua

solved How do you play a sound exclusively?

Is there any way to play a sound to a player and make sure it is the only thing they hear? (No explosion screeches, no weapon fire, no other player footsteps, no flatline, nothing)

6th November 2015
by Potatofactory Go to last post
15 758
Lua

Help me find and use an advance function from an addon... (NPC Tools)

http://steamcommunity.com/sharedfiles/filedetails/discussions/104486597 NPC Tools I've messaged the mod's creator and he said it has been so long since he had done anything with LUA he doubt he could help me. Anyway, this addon has the ability to...

6th November 2015
by Blakestr Go to last post
0 193
Question

solved Help With Making Swep Invisible

Hey guys, How would one go about hiding or making invisible the world and view models for a swep? I'm making a small knife for prop hunt props to use on glass windows that doesn't damage players and the hands holding the knife don't look good at all...

6th November 2015
by kjcsg Go to last post
4 175
Help
6th November 2015
by immibis Go to last post
3 275
Help

TeslaHitBoxes Effects Change Color

Hy Everyone, I search since yesterday, but I don't know if it's possible to change the TeslaHitBoxes Effect color to pass in Red (The Flash Lightning) I have tried "SetColor()" but it do nothing and I don't know how to make red with byte code. Thank...

6th November 2015
by Kogitsune Go to last post
1 317
Help

Get my swep to shoot combine energy balls, through primary?

EDIT: Can someone tell me how to use "func_combine_ball_spawner" in a function to spawn a combine ball? If it's the correct way to do this. this question is at the top so you can read it first hand. So what I'm trying to do is make like a Megaman arm...

5th November 2015
by geferon Go to last post
3 453
Help

Disable Addon Depending On Gamemode

Hey, I am trying to get an addon to be disable when played on a certain gamemode since it is a fretta server. Any help would be great!

5th November 2015
by geferon Go to last post
6 342
Lua

Adding and Removing Users on multiple servers

I know some communities have this but i have not been able to track down how it's done. Basically when a user is added to a specific ulx user group on one server, it adds them to the group in all the servers. Same for when removing. Is there an addon...

5th November 2015
by kimhypno Go to last post
1 219
Lua

Screen Scaling

Hi. So I've wanted to do VGUI for a long time, and the first major thing I made was my CS:GO scoreboard. I realized it didn't scale when I gave it to friends, and attempted to remedy that as you can see in my code below. I have absolutely no idea what...

5th November 2015
by CaptainFaggot Go to last post
9 502
Help

Stacker Tool Fixes

Hi, I'm trying to understand how to fix this.... I'm using the improved stacker tool on our server and it can still be exploited to crash the server. All that has to be done is stack multiple props inside each other and it begins to lag, any ideas to...

5th November 2015
by cocomut Go to last post
5 379
Question

Table becomes nil after restart?

Here's what i'm working on. The table becomes nil after restarting. Could someone explain to me how I would initialize this properly? Sample: cg = { p1 = { value },

5th November 2015
by Phoenixf129 Go to last post
7 293
Help

dual guns for npc impossible?

Hi, i'm trying to create a dual guns for npc, since npc doesnt have the proper animations, i'm using a player model, but its still doesn't work. in ai_translations.lua i used, am i missing something or we just can't do it?! function...

5th November 2015
by DropDeadTed Go to last post
3 246
Lua

Clientside crash for some users on map change.

Hey, I've been developing for a gmod server that recently installed Pointshop 2. Since installing it, occasionally people will have their gmod crash on map change - not the whole server, just one or two people. What my question is, is there a way to track...

5th November 2015
by PizzaDoxy Go to last post
2 316
Help

Need Help with my pointshop.

Okay so I know there is a function out there to make it to where the player can change the color of the items he bought from the pointshop. Is there anyway someone could tell me how real quick? Please and thank you!

5th November 2015
by PizzaDoxy Go to last post
5 213
Help

Calling a server fucntion from client

Hi i need to call a server function, which in this case is Darkrp.AddMoney(-..DermaText:Getvalue()..) <-- if that wouldnt take money from the player please correct me, but what this addon is, is a hobo donation box. include('shared.lua') function...

5th November 2015
by DiscoKnight Go to last post
2 224
Help

solved Steam Group auto ban?

Can someone help me create a script that will ban players on join if they are in a certain steam group?

4th November 2015
by zippy36jr Go to last post
21 1,187
Help

Sound is playing more than once

I want a sound to play once if the armor gets lower than 10, but whenever it gets lower than ten, the sound plays multiple times. Here's my code. if armor < 10 then ply:sound.Play("ui/low.wav") end Is there a way around this? I'd...

4th November 2015
by glarkon Go to last post
8 256
Help

tmysqloo vs MySQL database

Hello guys, i'm currently in the progress of reinstalling my server, I was wondering what would be more of a performance boost, keeping the addon ItemStore - Inventory on text mode (which saves to the server's datafolder) or- transfer it to MySQL? This...

4th November 2015
by Joeyl10 Go to last post
5 285
Question

solved HUDPaint, Create text on top of a drawn box?

Trying to put the text on top of the box. Reversing the order doesn't seem to help. I want to place a box on the screen with text on top of the box. x = ScrW() /2 y = ScrH() /2 hook.Add("HUDPaint", "paintCardz",function()

4th November 2015
by Winter Go to last post
10 436
Lua

Pointshop Backpacks Not in-sync with players.

Hello facepunch, so I've been experiencing problems with pointshop (The original pointshop by adamdburton) recently it has messed up to where the backpack attachments are not in-sync with the playermodels, for instance they will be perfectly attached but...

4th November 2015
by [AG]Slender Go to last post
3 314
Help

solved KeyPressed/KeyReleased

hey i need to execute a console command to 1 every time when the key "f" is pressed and to execute the same command to 0 when the key is released so heres my code local players = player.GetAll() for _, player in ipairs( players ) do if(...

4th November 2015
by PizzaDoxy Go to last post
2 336
Help

Help with simple timer.

I want to be able to call a HudPaint box for a timer when some one is kidnapped. For example, if I was kidnapped, I would say !kidnapped in chat, and a HudPaint box would appear in the upper left corner of the screen, which included a simple Timer.

4th November 2015
by MPan1 Go to last post
6 298
Help

Unicode on windows (srcds -console mode)

DarkRP Its Russian lang... How to fix that Unicode(some symbols) to normal stuff?

4th November 2015
by geferon Go to last post
2 266
C++

and not (and) or - Lua questions

Just wan't to know if all these are the same local Equal = true //my question for the day. //is and the same as && or the same as || !Equal the same as not Equal !CLIENT the same as SERVER

4th November 2015
by code_gs Go to last post
6 289
Help
4th November 2015
by DiscoKnight Go to last post
2 188
Lua

Confused on how to change height/width of this...

As the title says, I'm confused on how to change the height and width of this code... hook.Add( "HUDPaint", "DarkRP_Economy", function() local w, h = 200,20 local Economys = Economy and Economy.Current or 0 local Money = Economy and...

4th November 2015
by MPan1 Go to last post
2 193
Lua

Need help with a SWEP

I've been having issues with this SWEP. It was working for a while but as I changed stuff it proceeded to break. So far, it refuses to show up in the spawn menu. It also does not work with the F4 buy menu in DarkRP. It shows up but if you buy it, the...

4th November 2015
by OctaneWolf Go to last post
10 764
Lua

solved Help on : How to send table of data through gmodlua: http.Post

Hi the comunity and hi glua developpers, I am building a gmod program who's send data through http.Post to get the current online players. My API needs a parameters which is an array of steamIds....

3rd November 2015
by madebyhost Go to last post
11 677
Help

Changing Bot names

Hi, I'm trying to change the Bot names, like Bot01, Bot02, Bot03. Thanks!

3rd November 2015
by Gedo789 Go to last post
4 353
Question

solved Ubuntu error

nevermind

3rd November 2015
by jusenmin Go to last post
0 137
Help

solved Custom Walking Sounds

Hello Everyone! So im in the process of making a custom gamemode and i really dont like the stepping sounds on Garry's Mod. So I was wondering if there was a way to loop a .mp3 or .wav file for the stepping sounds? Thanks Guys! Love CharbelK <3...

3rd November 2015
by CharbelK Go to last post
2 200
Help

solved Counting Props and getting max props

So im creating this info menu for the players on my server and im having troubles with getting the maxprops and the amount of props i have spawned in. The max props would be easy but i use URS for per rank limits and i dont know how to call those.

3rd November 2015
by andreblue Go to last post
5 259
Question

Trying to spawn entity from toolgun FX script...

There is a special FX script with a toolgun that let's you shoot to spawn various special effects. I was trying to use some of the code and create the entities from a script, versus using the toolgun, but I don't think I am using the language correctly. ...

3rd November 2015
by Blakestr Go to last post
2 219
Lua

solved Bad argument #1 to '__add' (Vector expected, got number)

I'm trying to make it so that in my gamemode the "Zones" will cap the speed at 170 but, I get that error. What i'm trying to do: local vel = ply:GetVelocity():Length2D() vel = vel + (wishdir * accelspeed) if (ply.InSpawn &&...

3rd November 2015
by FiBzY Go to last post
7 397
Lua

GMod GM:PlayerDeath Check for "My Death". LocalPlayer() Server Sided Alternative.

I am trying to detect if the user has killed another player or has gotten killed by someone else using the GM:PlayerDeath in GMod. Here is what i got. function GM:PlayerDeath(victim, inflictor, attacker) local client = LocalPlayer()

3rd November 2015
by MPan1 Go to last post
6 679
Help

util.PrecacheModel

Recently I added 15 more player models for my server, and it caused crashes upon server start and sometimes after a few minutes. It only happens when I precache the models. http://puu.sh/l1BBy/88124d8ece.png

3rd November 2015
by Mista Tea Go to last post
1 257
Lua

How to go about optimizing a server?

Hey Facepunch, i'm hoping some of you who hold more experience than me could help me out. I'm unable to figure out how to even start going about optimizing a Garry's Mod server, clearing up hooks and whatnot, and i've attempted to request help over at...

3rd November 2015
by find me Go to last post
6 450
Help

Mouse Popping Up When Derma Appears On-Screen

Hello, I am making a basic derma, and I am trying to make the Mouse Popup when the derma is toggled via Console. I know the string is gui.EnableScreenClicker, but I don't know where to put it?!? 2nd November 2015 I fixed it.. I just had to...

3rd November 2015
by IamBrett Go to last post
1 180
Lua

pickup weapon function

What is the function's name that let a nextbot to pickup a weapon on the ground? I need to make a fire bullets function too?

2nd November 2015
by DropDeadTed Go to last post
1 221
Help

Fade in and out roundedbox

How would i make a roundedbox slowly fade in and out? Thanks

2nd November 2015
by DropDeadTed Go to last post
10 257
Help

solved Warning: vgui.Create failed to create the VGUI component (DFrame)

So i just had this script working on my client but when i uploaded it to the server it just does not want to work CreateClientConVar("show_stats", 1, true, false) if GetConVarNumber("show_stats") == 1 then local OpenFrame =...

2nd November 2015
by James xX Go to last post
6 423