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

Draw on entity

Hello, I would like to create an entity with 3D2D and Draw simple text and we Can show just the rank for vip. And other fonctions. Link for help you : http://www.hostingpics.net/viewer.php?id=550990zonedecontrole.png

9th December 2016
by babouche35 Go to last post
20 453
Help

Writing two things about an weapon to a table.

Hi there, I am trying to resume my work on this gun chest addon however I am currently having an issue whereby I need to write the weapon name and the model to the table. The player will be able to get the weapon back afterwards however I am unsure of...

9th December 2016
by Moat Go to last post
1 147
Lua

Player:IsCroshair... (serversaid)

How to check if the function Player:CrosshairDisable/Player:CrosshairEnable() currently is a true or false? (serversaid)

9th December 2016
by Moat Go to last post
2 173
Help

Modelling a box open and closing.

Hello facepunch. I'm curious to ask if someone could help me with the best method of making a custom box open and close for this I cannot animate with blender so I'm assuming the best way to go about this would be to make 2 models 1 box and the other...

9th December 2016
by KoffeSwed Go to last post
26 720
Help

PublishWorkshopFile failed! (24)

Here is my code when I try to publish my map: C:\Users\gspan\Desktop>gmpublish.exe create -addon C:\Users\gspan\Desktop\addon\rp_cscdesert_mythical _v2.gma -icon C:\Users\gspan\Desktop\addon\icon.jpg Garry's Workshop Publisher 1.1 Setting breakpad...

9th December 2016
by Kevlon Go to last post
7 233
Question

Gmod changing keyboard language

This might be the wrong place to post this, so apologies if that's the case. If anyone reading this is from the UK, or any other country that isn't the US for that matter would have by now had gmod change their keyboard layout to American. I know it...

9th December 2016
by smithy285 Go to last post
6 274
Help

Translating Outputs With Tables

In my Debug-style hud for displaying weapon info, I had the feature to display the GetPrimaryAmmoType(). This works fine but it draws the ID of the ammo type, and I want to translate that ID to the names I have in a table I will share below, this table...

9th December 2016
by HiptonismHD Go to last post
9 214
Lua

Complex Darkrp Error

A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sh_entityvars.lua" on line 105. The best help I can give you is this: Attempt to call Name/Nick/GetName on a non-existing player! Hints: - No hints, sorry. The...

8th December 2016
by Redfiend Go to last post
5 273
Request

attempt to index global 'ply' (Star Wars Light saber error)

addons/star wars lightsabers/lua/weapons/weapon_lightsaber.lua:646: attempt to index global 'ply' (a nil value) 1. unknown - addons/star wars lightsabers/lua/weapons/weapon_lightsaber.lua:646 Please note that I do know this is a table, I just wanted...

8th December 2016
by smithy285 Go to last post
8 312
Help

solved Converting a string to a table.

Hi, I have been having some issues with a client data system I have been working on. It creates a table, saves it as a string and needs to convert it back after reading the string. I have tried a few ways to convert it back but they don't seem to work....

8th December 2016
by TheVingard Go to last post
3 164
Lua

attempt to call field 'Send' (a nil value)

Hello. I am trying, somewhat successfully, to make a gamemode. Currently I'm trying to make it so that when you click a button in a window it gives you a gun. I have all the window stuff sorted out, but to give the player a gun, I need to send the...

8th December 2016
by Iceotty Go to last post
25 642
Help

solved tmysql4 Error

This is the first time its ever happened i have both of the modules (tmysql4 and libmysql) they are in the correct spots (lib > base gmod) (tmysql > lua/bin) require("tmysql4") if not SERVER then return end local host = "*********" local...

8th December 2016
by DiscoKnight Go to last post
3 164
Help

solved Nil value?

gamemodes/darkrp/entities/entities/event_meter/shared.lua:39: attempt to index global 'SVNOOB_VARS' (a nil value) 1. unknown - gamemodes/darkrp/entities/entities/event_meter/shared.lua:39 2. Spawn - :-1 3. SpawnFunction -...

8th December 2016
by SpiiNy Go to last post
0 119
Help

solved NPC Schedule bug help

I making SNPC. All fine, but i have one problem. I think that it's base_ai class problem, but maybe i don't understand something? When SNPC's targeted enemy dies or out of sight, SNPC instantly stop playing schedule animation. He use this part of code for...

8th December 2016
by IAmError Go to last post
0 122
Lua

sv_contact

How is sv_contact used exactly? I know that you put a contact email for users in it but how do they access that email and for what purpose does it actually have?

8th December 2016
by James xX Go to last post
3 205
Help

How would I spin my player model around?

Well, how do I make my playermodel spin around on a certain event. The event is done and coded, but I want my model not me (I am in thirdperson in the event) just make my model just spin just around in circles for 3s? How would I do this?

8th December 2016
by Robotboy655 Go to last post
1 151
Help

solved Drawing Circles using PostPlayerDraw?

Well, I want to make a player have a circle around him when something happens. My addon allows players to have abilities, and one of the abilities hurts people in a circular radius. I just want to be able to make that circle see able so people don't...

8th December 2016
by jacobcooper18 Go to last post
0 140
Lua

Really annoying error that's probably lua but idk

So basically whenever I start up my DarpRP server, admins used to spawn with nothing. I somewhat fixed that (I reinstalled darkrpmodification and ulx and ulib and then remade all jobs and then changed the admin/superadmin teams to citizen and removed...

8th December 2016
by kc01 Go to last post
5 211
Help

solved Particle help, not loading.

local emitter = ParticleEmitter( Vector( ply:GetPos() ) ) local particle = emitter:Add( "generic_smoke", ply:GetPos() ) if (particle) then particle:SetLifeTime( 0 ) particle:SetDieTime( 3 ) particle:SetColor( Color( 50, 50, 50,...

8th December 2016
by Keosan Go to last post
8 188
Tutorial

Time For You to Understand Stencils!

The little hamster that runs the programming section of my brain has always cowered in terror when it caught wift of stencils. So this little write-up has been a step by step way to put him back to work. In the event you have a similar crisis going on,...

7th December 2016
by a1steaksa Go to last post
19 1,482
Help

solved Issue with PlayerCanPickupWeapon and my script

Okay, I've ran into several issues on a script I'm making. It's to replace the default picking up of weapons on Trouble in Terrorist Town, here's what it currently looks like when you attempt to pick up a weapon when you already have one equipped in the...

7th December 2016
by Matsumoto Go to last post
22 497
Stupid

solved Weirded lua error i have seen.

Problem showed on the video : https://www.youtube.com/watch?v=K2zwzsRm8iU TrailerList = {} TrailerList = { Name = "Profiliner Trailer", Colour = Color( 255, 255, 255 ), Model = "models/lonewolfie/trailers/trailer_profiliner.mdl",

7th December 2016
by KoffeSwed Go to last post
8 207
Stupid

solved [ERROR] lua/vgui/dmodelpanel.lua:54: bad argument #1 to 'ClientsideModel' (string expected, got ni

Hello there. I been making a script and i have a table that contains the model. But i keep getting this error: lua/vgui/dmodelpanel.lua:54: bad argument #1 to 'ClientsideModel' (string expected, got nil) TRAILERRENT_STARTTIME = 1800...

7th December 2016
by KoffeSwed Go to last post
3 244
Lua

Derma updating! How does it works?!

Hello, i've been struggling the whole day with derma. I tryed all what i could after searching for different functions and posts I have 2 different issues over here. * The slider value ( The one circled in green ) will not update when the slider...

7th December 2016
by locko1997 Go to last post
4 291
Help

Storing players values on an entity

Hello facepunch, Im wondering if someone could help me with the issue I can't get my head around. Could someone tell me the best way to store a players value on an entity. This is for my gamemode, people have a currency called points and they should...

7th December 2016
by FlyPiggyBanks Go to last post
5 282
Lua

Play Animation Sequence when Right Mouse Button is Pressed.

So I have an animation on this model (here if you want to see it) that is called "taunt" On my SWEP (which is here) I want to make it so when you right click, the "taunt" animation is played. How can I do this?

6th December 2016
by deadvcr Go to last post
0 163
Help

SWEP Bodygroups don't appear in Worldmodel

Hello, I have just mounted my SWEPs to a new base, and attached the bodygroup's to the view model, but the bodygroups on my SWEPs do not appear in the world model, just the view model. Does anyone have any idea how to fix this? Thanks.

6th December 2016
by butilka4 Go to last post
8 416
School

could use some help with GM:OnNPCKilled

I am working on zombie survival and trying to edit a few functions. I have added zombie npc's like in zombie outbreak. I need help with setting up a function or a few functions that add points when you kill a zombie npc's. I am talking headcrabs,fast...

6th December 2016
by FlyPiggyBanks Go to last post
7 266
Help

I need advice optimize server for coop maps

Dear Devs, I would like to ask for some help. Some advice for optimizing a server for coop maps. Which contains mlre players npcs ragdolls. I dont know anything about optimizing it thats why I ask about it.

6th December 2016
by Zeh Matt Go to last post
1 177
Help

solved Cinimatic Camera View?

How could do a cinimatic view in game while players choose there teams. Just have it playing in the background doing a loop, for example in gmod tower in minigolf on each hole the minigolf scores would come up and in the background the camera would be...

6th December 2016
by xESWxDEATH Go to last post
8 287
Shitpost

solved Group sorting in the scoreboard

Hello. I'm the first time at this forum(my eng is the best). So, I made a scoreboard and I need group sorting using UTeams. Help. Here is a code of scoreboard if SERVER then print("Scoreboard: I'M LOADED") end local function GetTeamName(...

6th December 2016
by androidtv12 Go to last post
0 177
Lua

"Detect" MythX.

Pretty hacky method but it works, since MythX got leaked publicly I figured it may be necessary to release a method of detecting it using CAC. Place this lua at the bottom of cac-release-xxxxxxxx/lua/includes/init.lua and MythX will be detected the...

6th December 2016
by Kilgrave Go to last post
1 414
Lua

Entity network variable not working as it should?

Hello! I'm doing a entity which when e-pressed it will open a derma menu. Then that derma menu will config some parameters and then do some stuff. The issue i'm having is not very complicated i guess, but i'm failing and my hangover it's killing me, so...

5th December 2016
by locko1997 Go to last post
2 192
Lua

Addon Lua Script - attempt to call method 'GetName' (a nil value)

I have a lua script inside an addon auto run file, but it gives me this error: lua/autorun/hud.lua:31: attempt to call method 'GetName' (a nil value) 1. v - lua/autorun/hud.lua:31 2. unknown - lua/includes/modules/hook.lua:84 My code: ...

5th December 2016
by gonzalolog Go to last post
21 448
Help

DARKRP SERVER LAG

Hello, all! After countless hours of trying to fix this issue, getting help. I still have not figured it out :( So here my problem I'm having a sort of DarkRP lag issue with my DarkRP server. MAP: rp_evocity_v33x TICKRATE: 16 ADDON LIST:

5th December 2016
by Warcode Go to last post
7 386
Help

Is there a way to find a string but check if it found the string?

So i want my antiswear to find swears better and i want to make it find a swear word everytime a player chats everything. However, my antiswear only checks if the word is a single swear. So if you say something like "lololo (swear word) lololo" it will...

5th December 2016
by FlyPiggyBanks Go to last post
11 325
Help

Force Player to Crouch

Ey boyz. Just wondering if there was a way to force a player into crouch. I'm working on a sort of crippled status effect that players can fall under. Cheers

5th December 2016
by Woopdycow Go to last post
2 183
Help

Problem with decals or something

So im trying to make gta-like blood pool using decals. util.Decal wont spawn anything using following code, util.DecalEx wont resize it as well. What could be wrong? Any help is appreciated Heres some code Tried to create 256 materials with...

5th December 2016
by Hobo_Gus Go to last post
0 131
Help

Should concommand.Add be used client or serverside?

I hope I don't seem stupid for asking.

5th December 2016
by MPan1 Go to last post
3 204
Help

solved DarkRPVars/Disabling DarkRP Reconnect Jail

So I am trying to disable the re-jailing if you leave the jail and re-connect. I saw something about DarkRP vars but I am not too sure on what I am reading. Anyone have any ideas on how I could do this? ...

5th December 2016
by FlyPiggyBanks Go to last post
7 211
Lua

solved Entity Blacklist

I understand that entities have different variables such as the allowed one to set a entity to only a certain job/class. Is there a way to flip this like for example, not allowed jobs. DarkRP.createEntity( "Printer", { ent = "printer_ent", model =...

5th December 2016
by Lucifer1 Go to last post
4 189
Help

Get the CPU time of E2s?

I've made a script that freezes the server if theres excessive lag, and i need to be able to stop e2s if they are over a certain amount of CPU usage at the time but i cant figure out how to read their cpu usage. I looked at the E2 function and it says...

5th December 2016
by Extra Mental Go to last post
3 276
Help

Getting weight of all players weapons

So I am trying to make a system that modifies the players speed depending on the weight of all the weapons he is carrying for my gamemode. So if the player has the following: RPG: 75 USP: 25 Knife: 10 It makes the players walk and runspeed 110...

5th December 2016
by Thiefdroid Go to last post
7 317
Lua

DAdjustableModelPanel Panel Not Showing Until Clicked

Hi, I am trying to make a prop preview and I cannot get the panel: DAdjustableModelPanel to show without clicking on it in the menu. I have tried manually running DoClick() on it but that did not help. Speaking of help, any of it would be awesome. ...

5th December 2016
by Cornfinder Go to last post
0 116
Help

Antiswear wont work?

So, i am trying to make an antiswear which kills you and censors the swear word with "(name) said a bad word!". The problem is, it kills you everytime you say something like lol or hello! (also censors it) Here are the codes. (i censored the bad words)...

5th December 2016
by Keosan Go to last post
8 332
Help

solved revamp/wipes for my darkrp server

hi there, i own a 64 slot darkrp server and gets a constant 32+ players every day, the problem is my server gets players $1 million every day, I want to restart all the prices and inventory pick up, everything, is there a way i could do that?

4th December 2016
by mijyuoon Go to last post
6 179
Help

solved [Help] Mysqloo and tmysql4 doesn't connect to a local database

Hello, everyone I've been spending hours upon hours trying to get my MySQL database to connect. I don't know, if it's because its a MSSQL server, or it's because the MySQLOO and TMYSQL4 don't work anymore. Before all this is initialized: Mysql =...

4th December 2016
by xrayhunter Go to last post
5 275
Help

Moving bones in a specific speed?

I am making a chest that opens on use, and I cant figure out how to make the lid go up, it just teleports up, best way I was able to make it was doing this: function ENT:Use( activator, caller ) self:EmitSound("items/ammocrate_open.wav")...

4th December 2016
by code_gs Go to last post
1 122
Help

DarkRP Var Problemo

Asking because I never worked with DarkRP vars before. Getting this error, no clue to what I am doing wrong. This runs server side only local function SetUpDRPVars() DarkRP.registerDarkRPVar("JSTimeLeft", function(tbl)...

4th December 2016
by bigdogmat Go to last post
2 159
Lua

Visual Vibrating Effect

How do you guys suggest I go about making a visual vibrating effect? I want it only to be visual. It won't affect any entities movements.

4th December 2016
by Metamorphics Go to last post
33 950
Lua

DarkRP Arrest system

How do you get the remaining time of an arrest. 1st December 2016 client side tho

4th December 2016
by FlyPiggyBanks Go to last post
7 270
Help

Syntax for editing crap in peoples hands?

Dunno the syntax for editing shit in people's hands. I used bone manipulation to move their body parts around to get the pose I needed but I am trying to figure out the bone name that allows me to edit whatever they are holding (phone, gun, whatever)....

4th December 2016
by Nookyava Go to last post
16 431
Help

Can't see who put down a spray

On my server i can't see who put down a spay. Like the Orange text that shows the spay owner and steamid. if someone could direct me to the file where that is defined or a fix that would be great. Its a ttt if thats needed

4th December 2016
by Nookyava Go to last post
8 250
Help

solved PLayer Not Freezing

-- Snip, was a var problem.

4th December 2016
by FlyPiggyBanks Go to last post
0 120
Lua

DarkRP F4 menu / tab menu

When I edit a file apart of darkrpmodification it makes the f4 menu and tab menu to not work I know you can fix it but how?

4th December 2016
by DaddyFrosty Go to last post
3 191
Help

solved A bit confused

I am trying to save the old bone angles from a player and have them be restored when the player switches weapons. Says the table "urtable" is nil, not sure why. It should be defined. local function restrain(ply) local function...

4th December 2016
by NeatNit Go to last post
4 169
Lua

Require assistance creating a chat command to certain groups

Hey there guys, I've been looking into creating a chat command for a certain ULX group to receive, I was just wondering how I would go about it. I'm new to LUA, and I'm not the best in terms of coding and whatnot. How would I create a chat...

4th December 2016
by Keosan Go to last post
1 143
Help

solved Stop the networking of players?

So I am working on a PropKill gamemode but want to be able to create custom lobbies inside the map. I looked at https://wiki.garrysmod.com/page/Entity/SetPreventTransmit but that function doesn't seem to exist anymore :( I can't set model scale or...

4th December 2016
by code_gs Go to last post
22 783
Lua

solved Setting player health on spawn (DarkRP)

Hey! I'm trying to set the health of players on spawn for my server. I have done some searching and cannot find anything on it for DarkRP but it's probably my searching skills... Anyway, if anyone has what I can let me know the code for setting...

3rd December 2016
by BasicallyGone Go to last post
2 135
Lua

solved ToggleF4Menu Error...

This is my Error in the Logs gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:27: attempt to call field 'toggleF4Menu' (a nil value) 1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:27 2. unknown -...

3rd December 2016
by xStylo27 Go to last post
1 105
Help

Unable to spawn food on my DarkRP server

The food isn't spawning, I've enabled food in the disabled_defaults file: http://puu.sh/sBPye/317d0de5f2.png And have attempted to create the entities below: http://puu.sh/sBOb2/a3ac748971.png But it's almost like they don't exist, there's no script...

3rd December 2016
by Breww Go to last post
0 124
Lua

solved I need help with my command addon!

What is supposed to happen So, i made an addon which has to create a command, once you execute the command, it's supposed to say in the chat "Hello! (the player's name)" What is happening Dosen't create the command and gives me the following error:...

3rd December 2016
by Bartekrabit Go to last post
3 129
Help

solved Help

Hello, How can i make it so when a player press E on another player a menu pops up? It would also need to say "press E to find out bla bla bla" Thanks :P

3rd December 2016
by SpiiNy Go to last post
14 212
Lua

Need some help with small script

Hi everyone! I just wrote script that will strip weapon with class "khr_m82a3" if you will get it, but it is broken. What should i do? local function restrict() if ply:GetActiveWeapon():GetClass() == "khr_m82a3" then ply:StripWeapon("khr_m82a3")...

3rd December 2016
by FlyPiggyBanks Go to last post
23 696
Help

solved [HELP] Opening DermaMenu with Q like spawn menu.

So I'm trying to Open my Derma menu with the Q button and close when I release the Q button the closest I have gotten was it spamming the menu...

3rd December 2016
by FlyPiggyBanks Go to last post
8 179
Help

help with mysqll.lua

keep getting this error and i have tryed everything.. i need the .lua Couldn't include file 'includes\modules\tmysql4.lua' (File not found) (@lua/includes/modules/mysqloo.lua (line 3)) lua/includes/modules/mysqloo.lua:3: Module not found! 1....

3rd December 2016
by MexicanR Go to last post
17 384
Help

Pointshop 1 Player model unequip on round start.

So when a round starts on my TTT Server custom models will unequip from the player. Models that Garry's mod provided don't get unequipped. Only ones from the workshop. The old trick was; /garrysmod/gamemodes/terrortown/gamemode/player_ext.lua and to...

3rd December 2016
by Senip Go to last post
0 106
Help

Help using rp_evocity2_v2p

Okay every time i try to switch maps and try to use rp_evocity2_v2p i get this error in my console... 91(15.594756): Engine hunk overflow! 90(11.113622): Failed to load $include VMT file (materials/METAL/FOREST_METAL_02C.vmt) 89(11.108720): Failed...

3rd December 2016
by code_gs Go to last post
6 275
Help

Zooming in on DModelPanel?

local ListItem = List:Add( "DModelPanel" ) ListItem:SetSize( 200, 200 ) if istable(rndweapon) then ListItem:SetModel( table.ToString(rndweapon) ) else ListItem:SetModel( rndweapon ) end Well thats apart of my code, everything...

3rd December 2016
by iGolden96 Go to last post
5 195
Lua

How to make swep to check health.

Im a beginner and am trying to find out how to make a swep for my medic that they can use to check someones health and also restore their health.

3rd December 2016
by thejjokerr Go to last post
1 123
Help

reworking illness addon/code

Hi! I recently stumbled upon this script. I am now trying to rework it into a infection script for my private server. My goal for this is when an NPC hits a player, they have a chance of getting infected. Now i'm almost certain I have to use an...

3rd December 2016
by Apple_Bloom Go to last post
1 233
Help

solved CLOSED

CLOSED

3rd December 2016
by Gryphon108 Go to last post
0 112
Lua

Change skin model in CPanel

Hi guys, I block on the creation of a stool... TOOL.ClientConVar = "model.mdl" function TOOL.BuildCPanel(CPanel) CPanel:AddControl("PropSelect", { Label = "#tool.example.model",

3rd December 2016
by Robotboy655 Go to last post
1 141
Help

Help with my first HUD

Hello, today I've been watching a lot of videos around the making of HUDs. I got the basics of making one and so I'm going of to make my own for one of my server. I'm trying to re-create the SCP HUD (At least the stamina and blinking) but it has...

3rd December 2016
by MPan1 Go to last post
4 185
Lua

Help with slam mines

Hello, I was wondering, what flags do I have to set when spawning a S.L.A.M mine that make it so when a player right clicks it sets it off? I looked at the official valve wiki but there is no entry for it >_>

3rd December 2016
by GbrosMC Go to last post
4 193
Lua

Is it posible to create a loop for Traces?

Hello! i'm kinda starting on lua after some years of E2 coding aaaand i need some help over here. I'm basicaly a fan of loops, since they make you think a bit more and sometimes they can make your life easier or a nightmare. Basicaly what i want to do...

3rd December 2016
by locko1997 Go to last post
6 321
Help

solved [HELP] How do I manipulate a dmodelpanels bone angles? (That is if it is possible)

Like the title says I'm trying to manipulate the bone angle in my DModelPanel in Derma. I have tried this and it doesn't work and I ran the same thing on my player entity and it made an L shape with his body so idk why it doesn't work for dmodelpanel...

2nd December 2016
by MLPG Go to last post
3 120
Help

solved Spinner help

I know there is like alot of csgo spinners in gmod. BUT, I want to code mine from scratch without reading other theirs. With some help ofcourse. No you'r probably expecting code, but my question is: how would you make the DermaPanel's move and dissapear...

2nd December 2016
by jacobcooper18 Go to last post
6 234
Steam

solved Help me! Gmod servers Darkrp is broken

Hello there Pretty much i have stumbled across this problem when developing a server, the problem is that f2 menu on the doors are invisible but you can still own them. I have googled this error but nothing comes up if someone can help me that would be...

2nd December 2016
by gonzalolog Go to last post
1 155
Help

Animated Loading Screen Not Working

Hello, I've been trying to make this http://hypernova.site.nfoservers.com/loadingscreenpvb/ work as a loading screen, obviously the only thing working is the music and was wondering if their is possibly a work around for the actual animated material? ...

2nd December 2016
by StonedPenguin Go to last post
9 283