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

Pointshop Playermodel Issue

Hi, FastDL is working, the playermodel is being downloaded, the workshop ID for the playermodel is correct and the filepath is correct for the model. I know this because my friend who subscribed to the content can see the playermodel but this makes...

7th January 2016
by deinemudda32 Go to last post
1 127
Help

Error loading gamemode: !IsValidGamemode [sim]

I've Googled this problem a lot and haven't been able to find a solution. I have no idea why it won't work since I have exactly the same code on Gamemode Creation on the wiki (except with my information in it). I've made Lua addons before, but I thought I...

7th January 2016
by alexmeads01 Go to last post
6 5,295
Lua

Need help with pointshop playermodels for jailbreak gamemode

Hello, I was wondering if it was possible to make it so that only prisoners can have playermodels equipped and when they turn into a guard it will automatically make them change into the normal playermodels. Also I was wondering that if it does that in...

7th January 2016
by Bob_Dylan Go to last post
12 272
Help

solved Chance of performance

Hello How to make chance of performance of function of 30% I will be glad to your help

7th January 2016
by godred2 Go to last post
3 170
Lua

Get entity variable in cl_init.lua?

Hello. I am trying to draw.SimpleText() when player looking at entity. But i can't get Variable from entity to show count. I put this: function ENT:SetupDataTables() self:NetworkVar('Int', 1, 'Breads') end

7th January 2016
by FloopyTruck Go to last post
2 229
Help

Using Addons in a Gamemode

So I'm trying to use the CSS realistic weapons addon in a gamemode I'm making, how do I? I'm developing locally and assumed if It was in my addons folder I could give myself the weapon on the gamemode, but I guess not? Thanks :)

7th January 2016
by warlock123 Go to last post
2 211
PC Games

solved !group to join steam group

Hi, I have recently made a TTT server (UK Banter Squad TTT) and I am trying to add something I have seen in other servers where a guest can type !group in the chat to join my steam group, was wondering if anyone knows how to make this work. Thanks in...

7th January 2016
by Tomelyr Go to last post
7 918
Help

[TTT] Changing the default player Speed.

So, I've been trying to change the default player movement speed on my server. This is the changes I made to the SetSpeed function in the player_ext.lua. The problem is when I save this to my server the code WORKS, but then it stops working again after...

7th January 2016
by Sketchy77 Go to last post
0 200
Lua

NPC auto attacking help

hello i want my custom npc/ent to attack when it takes dmg but for some reason it cant shoot i gave it a weapon but its kind taking it up and down constant idk what i done wrong it wont shoot any ways so anybody can help i just want to attack the...

7th January 2016
by lucaspou Go to last post
2 280
Lua

Looking for someone to help make the rest of a gamemode I started. A Small project that can get as big as you want.

Relply if you like the title LUA Developers. I have a gamemode half made with a nice idea. It is playable and stuff. Reply for more info. 7th January 2016 I am the only dev on this project so far.

7th January 2016
by coolcat99 Go to last post
2 170
Help

Just got scammed again

So after this time i got scammed from a coder https://facepunch.com/showthread.php?t=1498245 I was like well running out of time need to get the guns converted quick so when someone applied seeming really authentic and all paying via service and not by...

7th January 2016
by bobbleheadbob Go to last post
6 493
Help

TTT Disguise change player model

So I want the disguise equipment to change a players model this is the code I have so far yet for some reason it fails to switch the players model at all.. Any help as to why it isn't working would be awesome. DISGUISE = {} local rModels =...

7th January 2016
by rafaelpayan Go to last post
3 502
Help

Change category of tools

For example move the weld tool to a new category

7th January 2016
by swag.exe Go to last post
5 235
Help

[TTT] Why the fuck are the bodies disappearing??

My TTT server has that issue where the bodies are disappearing and that is very annoying can you guys help me with fixing it and advice? I am using serenity to run my server how would I change it so FTP is what is used to put addons and stuff.

7th January 2016
by YourStalker Go to last post
2 311
Help

Help setting up a Gamemode?

Hello I am in need of help setting up a gamemode called CityRP which is based off of Cider and Applejack. But I do not spawn when I try to test out the gamemode. And get a few errors in console help please? SERVER CONSOLE LOG:...

7th January 2016
by warlock123 Go to last post
20 560
Shitpost

Rounded avatars with transparent corners

Hello there. I really want to make scoreboard with rounded avatars, but we can't just draw outlined circle over avatar, cuz our scorebord is semi-transparent. As I know we can't round AvatarImage panel right? Ok but can cache avatar by image url...

7th January 2016
by McDunkable Go to last post
1 268
Lua

AGAIN: I need help making this lua code respawn weapons.

I'm making this clear. I DO NOT KNOW LUA VERY WELL FOR GMOD. It's written in its own syntax, and ALL I know is Garry's mod lua wiki. So if you answer this question, be as descriptive as possible to someone who has only known lua for 4 days....

7th January 2016
by kem008 Go to last post
7 395
Lua

solved Nextbot keeps crashing the game

Hello again. Today I made a simple citizen nextbot just for fun and for learning Lua. Everything works fine. But if I place the nextbot at some place with no nav_meshes the game crashes. I don't really know what causes this. I think that I probably...

6th January 2016
by swag.exe Go to last post
0 136
Question

TTT problems since last update

Anyone else noticed that since the last update of Garry's Mod some TTT maps are giving spawn in a smaller quantity of weapons? I have problems with Dolls, Clue and others maps... Have normally maps, but have maps without weapons... I was try remove...

6th January 2016
by Stardust342 Go to last post
5 252
Help

TTT Help, Innocent Chat and Broken Flare gun

I understand this probably shouldn't have a thread but I've looked for quite some time with no luck, Sorry about being a pleb :P Also default flare gun seems to be broken. I can buy it off the traitor menu. When I shoot a corpse nothing happens,...

6th January 2016
by xaviergmail Go to last post
9 868
Help

My server aint showing up on the server list

Before we begin i've tried ========================== sv_region 255 ========================== changing hosting location ========================== so this have started out recently after the newest uptade whatever i do where ever i look my server...

6th January 2016
by john55223 Go to last post
10 369
Help

Custom URL Tab In Q Menu / Spawn Menu (Help)

Hi, For hours now I've been trying to figure out how to add a custom tab in the spawn menu with a site Popping up. Erm, I kinda suck at Lua.. Can someone help me? xD On tab I want it to say "Forum" next to "Vehicles", so when I go on it a site...

6th January 2016
by kulcris Go to last post
3 243
Question

solved resource.AddWorkshop only if the map is played ?

Hey, i have a small question about lua. Is it possible to use "resource.AddWorkshop" only if a certain Map is played ? So that the Map gets only downloaded if it is played.

K4i
6th January 2016
by K4i Go to last post
9 636
Lua

solved Scaling HUDs

Okay so I followed this tutorial on the wiki: https://wiki.garrysmod.com/page/Derma_Basic_Guide I need to know how to scale stuff with draw that only tells me how to do it with Derma.

6th January 2016
by Velocity Go to last post
10 254
Help

autorun clientside files

I've made myself a MOTD from derma, whenever i am to use my code in singleplayer ( example " lua_openscript_cl motd.lua " ) i'll work but when i get that same file, make a dedicated server and place it in the autorun folder it will only show the html...

6th January 2016
by FVJohnny Go to last post
5 255
Question

solved What do you feel is the best way to make go about making ingedients for a cooking mod?

I was coding myself a cooking mod for my server and although I know of two different ways to go about doing this I wanted to see what you feel is the best way about doing this. First method ------------------------------- I have some ents like;...

6th January 2016
by bran92don Go to last post
4 233
Help
6th January 2016
by poepel Go to last post
3 213
Request

Lua Script Help

Hello Facepunch members. I was looking at youtube and could'nt find any video that shows me how to do "PlayerSay" so i will ask your guys if you know a video that shows it?. And i will request a script that does if you type !spawnweapons...

6th January 2016
by MPan1 Go to last post
3 174
Help

ShouldCollide removing all damage from non physical bullets?

-snip- changed who i was checking for so its good now

6th January 2016
by kulcris Go to last post
0 135
Help

Replace knife with crowbar

Im wanting the knife to replace the crowbar so when ever the player spawn into our TTT map they will spawn with a knife instead of a crowbar. Is there a place where i can change the "Default load-out"

6th January 2016
by skittles9823 Go to last post
2 295
Lua

Making a proper teleporters.

How to make this on table so I don't need to redo it every time I make multiple teleports? I'm thinking of removing also vCenter and boxSize. Also I'm making this on NutScript 1.1 hook.Add("KeyPress", "door_1_out", function(client, key) ...

6th January 2016
by john55223 Go to last post
13 1,051
Lua

PointShop Holster Items for a Team

Hey Gmod Community :) I have a serios problem for a Gamemod im currently developing, mostly with the pointshop. The problem is, the mod got 2 teams and only one team shall have the option to equip itself with hats and other stuff from the piontshop....

6th January 2016
by Eiskrieg Go to last post
0 152
Help

Bodies disappearing and people can't switch weapons cl_keys

There is the code. -- Key overrides for TTT specific keyboard functions local function SendWeaponDrop() RunConsoleCommand("ttt_dropweapon") -- Turn off weapon switch display if you had it open while dropping, to avoid --...

5th January 2016
by eldor1274 Go to last post
3 167
Help

Tables

I'm currently trying to learn tables so i've attempted to make a table print into console. This is the code i have currently: local BadNames = { "Sleepy", "Sleepy2" } local function IsYourNameBad() for k, v in pairs( BadNames ) do...

5th January 2016
by YourStalker Go to last post
3 224
Lua

CurTime() Timer

Hello i made a timer that counts down to zero using CurTime() but when i remove or add a another entity it just goes synced.Lets say i spawned my entity it starts to count down from 120 5 seconds have passed its 115 now i remove the entity spawn it again...

5th January 2016
by YourStalker Go to last post
8 867
Help
5th January 2016
by Promptitude Go to last post
2 221
Help

Help with functions, variables and strings.

So I want to make a script were, it gets what weapon they have equipped, how much ammo they have then grabs info from a list and then makes the player slow down or speed up accordingly. I don't know how to get this infomation, all I know is I would...

5th January 2016
by Borris_Squad Go to last post
2 134
Help

Need some help over here.

Hi there, I need some help to get my code working: I'm trying to force the client to use the console command "developer 1" from the server when he's superadmin. Here is my code: Am I making a mistake or is that a protected command from being...

5th January 2016
by warlock123 Go to last post
17 759
Lua

solved TTT Default Ragdolls for PointShop Player Models

I added the RX Pointshop to my TTT Server, and everything works fine, including the models and their ragdolls. What I am unable to do and I have tried fiddling with corpse.lua and a few other locations with no luck, is to make all custom player models...

5th January 2016
by rafaelpayan Go to last post
10 1,116
Help

Scoreboard help

Just wondering how I am to set up the scoreboard, I've tried to following but I get an error message. function scoreboard:show() local blur = Material('pp/blurscreen') local function draw_Blur(panel, amount) local x, y =...

5th January 2016
by Jeezy Go to last post
3 138
Question

SetSpawn on DarkRP

For some reason, I have disabled FAdmin, and am superadmin in ULX which inherits from admin, which inherits from mod, which inherits from user and it says I don't have the right privileges to perform that action when I try to do /setspawn. Any ideas? xP

5th January 2016
by Jeezy Go to last post
4 429
Stupid

Exploit in darkrp weed plant plugin

Hey, I have found an exploit in a darkrp drug plugin like 3 months ago. Unfortunately it still isn't fixed and the plugin is still being used on many servers. The exploit allows you to remove player entities (possibly all entities) on the server....

5th January 2016
by cashm Go to last post
4 1,066
Help

Darkrp not logging Deaths

Title is self explanatory, fadmin groups have access to darkrp events aswell.

5th January 2016
by Jeezy Go to last post
4 314
Help

solved Give weapon

Not correctly the script works. Not all players receive this weapon Receive only 1-3 humans How to fix? hook.Add( "PlayerSpawn", "HumanSpawnFists", function() if ply:Team() != TEAM_HUMAN then return end timer.Simple(0.1,function() if ply:Team()...

5th January 2016
by godred2 Go to last post
10 255
Help

Closing a button after a function.

wondering how i could close a button after its use, ive tried doing the following local HeyThatsPrettyGood = vgui.Create( "DButton", "DFrame" ) HeyThatsPrettyGood:SetText( "X" ) HeyThatsPrettyGood:SetSize( 150, 65 )...

5th January 2016
by MPan1 Go to last post
10 510
Question

Spawning Bot During Shutdown Causes Crash

When GM:Shutdown is called I want to push all my player data to an SQL server. I cache changes in player data and push it at regular intervals (or at shutdown) in one big query. If a player disconnects, their info is stored until the next push. If there...

5th January 2016
by RealDope Go to last post
4 265
Help

Starting to make a new gamemode with very little experience in Lua. Advice please.

Hello, my name is Watri, you might now me from making reworks of Garry's mod RP maps such as rp_downtown_v4c_thehighway and/or other maps. I have played Garry's mod for many years, I have made tons of maps and I have friends whom I have made gamemodes...

5th January 2016
by Zet0r Go to last post
4 241
Help

Addons carrying over?

Hey I have several addons on my darkrp server and all of them were obtained through the workshop, not fastdl. I had someone join my server and when they left and joined their own server, they had some of my addons showing. This happens in single player as...

5th January 2016
by Robotboy655 Go to last post
5 414
Question

solved Is there any way to get all models/materials/sounds needed for a weapon?

Hello, is there any way to automatically detect which files (materials, models, sounds, etc) are needed for one weapon, by just giving the weapon models name or the swep file? Regards, Pascal

4th January 2016
by P4sca1 Go to last post
2 147
Question

solved Something similar to resource.AddWorkshop for collections?

Is there something similar to resource/AddWorkshop but that the client should download all WS-Items in the given collection? Serverside it's done with +host_workshop_collection but i haven't found a way for the client yet also I haven't found a fitting...

4th January 2016
by ibot3 Go to last post
2 149
Help

FAdmin code.

I was wondering what the invalid arguments part of this means, since its an error I get and no one else seems to get it. local function AddPrivilege(ply, cmd, args) 213 if not FAdmin.Access.PlayerHasPrivilege(ply, "SetAccess") then...

4th January 2016
by RealDope Go to last post
1 195
Help

DakRP chat disabled?.

Ok so heres the lua error: addons/logs/lua/plogs/core/command_sv.lua:10: bad argument #1 to 'len' (string expected, got nil) 1. len - :-1 2. v - addons/logs/lua/plogs/core/command_sv.lua:10 3. unknown -...

4th January 2016
by kaiegggy Go to last post
2 179
Help

Scoreboard creation GM / Gamemode

I followed this tutorial exactly, yet this still returns an error: lua/autorun/client/scoreboard.lua:15: attempt to index global 'GAMEMODE' (a nil value) 1. unknown - lua/autorun/client/scoreboard.lua:15 This only occurs when I'm starting the...

4th January 2016
by Legendahkiin Go to last post
2 184
Lua

/stuck command

I want to make a command so that, when a player gets stuck they type !stuck or /stuck and it run a ULX Command but i do not know how.

4th January 2016
by Borris_Squad Go to last post
11 1,038
Help

Use hook not called on frozen entity

Hey, I'm trying to add a little pickup on my server that sets a team on fire. It's all working until I freeze the entity, then the use hook is not called anymore. This is the code. In the use hook I check for the model and then execute the functions....

4th January 2016
by hipy Go to last post
4 294
Help

CSGO Knive sweps help

Yo i was wondering if anyone could help me out at all im trying to convert these knives into TTT and they arnt showing up in game any help will be appreciated thanks. if (SERVER) then SWEP.Weight = 5 SWEP.AutoSwitchTo = false...

4th January 2016
by skittles9823 Go to last post
6 247
Question

Target a player with a command to open a vgui

Hi ! I have a question. How can I open a vgui on the username player when I type "/open username" ( A command to target someone ) in lua. Thanks ^^ 31st December 2015

4th January 2016
by warlock123 Go to last post
6 427
Help

SetSpawn not working.

From what I know I have inheritance set correctly but for some reason when I try and do /setspawn {group} or /addspawn {group} it says "You don't have the right privileges to perform this action". It's getting really annoying cause this is the only thing...

4th January 2016
by warlock123 Go to last post
1 135
Lua

where do I put custom check for vip?

I have some code here but I don't know where to put the custom check so VIP can use it only can someone tell me where it goes? thanks. AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:Initialize()...

4th January 2016
by warlock123 Go to last post
3 380
Lua

Issue with setting up FastDL

Hello, currently I am developing my jailbreak server and have come across another speed bump. This speed bump is FastDL. I have done the config with sv_allowupload 0 & sv_allowdownload 0 & also my sv_downloadurl. I have also made a fastdl.lua file in...

4th January 2016
by Bob_Dylan Go to last post
14 519
Lua

What is the player jump height equivalent in SetVelocity?

Hello Community, I am working with source engine bots, and want them to jump. Problem is, I can't use normal methods to make them jump, that aren't flaky. My best idea was to do SetVelocity on the bot, and play the jump animation. Problem is, what is...

4th January 2016
by BlueMustache Go to last post
3 235
Lua

Hud Error

gamemodes/spratmode/gamemode/testhud.lua:28: '<eof>' expected near 'end' 1. unknown - gamemodes/spratmode/gamemode/testhud.lua:0 function HUD() local client = LocalPlayer() if !client:Alive() then return end

4th January 2016
by Sprat Go to last post
2 197
Stupid

How do i enable god mode by default for admins when they connect?

instead of typing !god command everytime they join the server

3rd January 2016
by GGG KILLER Go to last post
13 717
Lua

solved I need some help with a simple toggle button

Hello everyone! Im currently trying to add a toggle button which controls wheter a running effect is enabled or disabled. Im really not very good at convars, and despite my best attempts, all i get is errors or no actual function. This is my current...

3rd January 2016
by joealdred Go to last post
6 177
Help

solved DarkRP - Derma Skins

I've been looking through some code to see that you can set a Derma's skin by using panel:SetSkin("DarkRP") I was wondering, does anybody know where i could find the "DarkRP" skin? I'm planning on making my own skin instead of re-designing...

3rd January 2016
by #Sleepy Go to last post
2 486
Lua

solved Help with a "simple" nextbot

So I've made a few nextbot's now. But I never really went into coroutines. Now I want to make a nextbot that is able to play animations and stuff. I don't really know how to do that. I've tried to use coroutines but I keep getting errors. I would like...

3rd January 2016
by swag.exe Go to last post
0 151
Lua
3rd January 2016
by Skere_ Go to last post
1 1,533
Lua

Weird Bug: Ignoring Unreasonable Angles/Positions

Both Myself and William are what we would like to think as half okay programmers and are producing our 2-3rd gamemode together. However a pretty weird bug is occurring and we can't seem to be able to work out where it is stemming from. class...

3rd January 2016
by Strideynet Go to last post
7 781
Lua

solved Getting the LocalPlayer() PS points

Hi, this is a little quick question. Why does LocalPlayer():PS_GetPoints() return this error clientside?attempt to call method 'PS_GetPoints' (a nil value) The pointshop documentation says :PS_GetPoints() is shared I'm trying to get the...

3rd January 2016
by FVJohnny Go to last post
3 190
Help

Data not saving.

Data will not save in the database. No idea why. Heres the loaddata function. function evorp.player.loadData(player) local name = GetDBConnection():Escape(player:Name()); local steamID = GetDBConnection():Escape(player:SteamID()); local...

3rd January 2016
by thekiller123 Go to last post
0 179
Help

Hello would these help with the ping of a dedicated server?

All Games Variables sv_unlag | Boolean Enables or disables VALVe's lag compensation mechanism. It's recomended to enable it as it will help people with slower Internet connections. Examples: sv_unlag 0 Disables the lag compensation sv_unlag 1 ...

3rd January 2016
by Wyozi Go to last post
2 200
Question

solved How do you make a server go under a certain gamemode?

Title basically says it, if I have a darkrp server how do I make it show up under starwarsrp ?

3rd January 2016
by RealDope Go to last post
1 135
Lua

solved Trying to understand how OOP works

nvm I figured out what I was doing wrong. Basically everything was wrong. I recoded everything and it's fine now.

3rd January 2016
by nubpro Go to last post
2 170
Help

Priveleges not working.

I am using the default FAdmin groups and I'm a superadmin but when I try to edit a door like making it not ownable it says I don't have the right priveleges.

3rd January 2016
by Skashh Go to last post
5 219
Lua

Weapons not respawning (HELP ASAP)

hook.Add("PlayerCanPickupWeapon", "RespawnTrigger", function(ply,wep) local nextclass, nextpos, nextang = wep:GetClass(), wep:GetPos(), wep:GetAngles() if wep:GetClass() == "weapon_smg1" and !ply:HasWeapon("weapon_physcannon") then ...

3rd January 2016
by gonzalolog Go to last post
13 477
Lua

Temporary Screen

I am trying to make a specific screen popup after someone joins a non interactable screen that goes away after a few seconds how could someone go about doing this?

3rd January 2016
by MPan1 Go to last post
9 344
Lua

How to make a !forums command

Hello everyone! I am still learning LUA and I would like someone to point me in the right direction. I am familiar with other programming languages, and I am in love with computers so I know the basics and all that. I was wondering if someone could point...

2nd January 2016
by ibot3 Go to last post
7 228
Help

Need website designer!! Need help with server related.

I am looking for a website designer, and also need help with server related stuff, I will give you more information on steam, my steam is listed below. Steam - SqueakerHunter or RainbowJesus Thank you for your time :)

2nd January 2016
by Nookyava Go to last post
1 167
Lua

TTT Global GetRole Function

Hey there! I am currently working on a custom TTT server with a good friend but we have ran into a problem. We are trying to add an additional role into TTT, which we have done successfully. The only problem is that the GetRole function is returning the...

2nd January 2016
by TheTechPony Go to last post
5 243
Lua

solved Ray Casting

Hello guys, I was wondering if anybody here knew if it's possible to do some ray casting in gmod. What I'm trying to do is to constantly find the distance between the player's head and whatever's above it, be it the room's ceiling or the skybox. ...

2nd January 2016
by Heracles421 Go to last post
2 200