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

Meta functions/files.

Hi. I've created a VIP/Points/KillCount/Time played system using meta tables/functions, or what ever. Do I need to create a time_played.txt somewhere? The Data won't save, as I reconnect to the server. It's set back to 0. Any help? But everything...

4 Weeks Ago
by Acecool Go to last post
2 64
Help
 

Chatbox vgui?

Hey! I am making chat and i am interested how to make the chatbox? local PANEL = {} function ChatOpen( isTeamChat ) if ( isTeamChat == false ) then else

4 Weeks Ago
by Acecool Go to last post
2 115
Help
 

Can someone help me debug my custom nocollide-all collision script?

It has some weird behavior on my server. After physgunning a nocollide-all'd prop once, entities stop having collisions with the prop even though they're supposed to collide. Also self:SetCustomCollisionCheck(false) has weird behavior so I commented it. ...

4 Weeks Ago
by thegrb93 Go to last post
5 112
Lua scripting
 

NPC + lua + npckilled related question. This thread has images

Hi. My name is D3NNY-M41C01M. Some of you may have seen me on Servers (DarkRP) or even around the forums. I'm working on a new Gamemode. & I'm trying to make a certain function work as to giving players extra points for killing a certain npc. ...

4 Weeks Ago
by D3NNYM41C01M Go to last post
4 90
QUESTION
 

doppleganger/steal player identity

whats the addon to steal a players identity in gmod ttt I cant find it. (User was banned for this post ("wrong section / asking for cheats(?)" - Orkel))

4 Weeks Ago
by C.Finley Go to last post
0 74
Help
 

solved ULX Command Issue ( 2 Last )

http://steamcommunity.com/sharedfiles/filedetails/?id=385592650 the green Ulx kicked from server how do you get rid of that. 1st February 2015 basically turn off that ulx thingy

4 Weeks Ago
by C.Finley Go to last post
40 386
Lua scripting
 

DarkRp Entities

Ok so in my darkrp server, I am trying to create drug entities for a drug dealer class. I have the class working. Right now I am trying to make a cocaine entity for the drug dealer to spawn. It works when i make it available to every class but when i use ...

4 Weeks Ago
by D3NNYM41C01M Go to last post
3 86
Help
 

Server value in a Client Hook

Hi, so I have this : cam.Start3D2D( pos, Angle( 0, ang.y, 90 ), 0.25 ) draw.DrawText( ply:GetPData(ply:SteamID().."description", "rien"), "HudSelectionText", 2, 39, Color(255,255,255,255), TEXT_ALIGN_CENTER ) cam.End3D2D() In a "PostPlayerDraw"...

4 Weeks Ago
by annilator3000 Go to last post
3 69
Help
 

Iteract with QC properties from Lua

Some models seem to have properties defined in their QC file that I can't seem to interact with through Lua. Examples of these are the destructible props on cs_office and like the trashcans, computers, keyboards, mice and phones, but also explosive...

4 Weeks Ago
by Robotboy655 Go to last post
1 43
Help
 

writing cfg/banned_user.cfg This thread has images

I ran into this problem. I Do not know what that means, but read about it. This Tipo when installing 3d_car_dealer, but I have already been deleted, where such a mistake, I Do not Know. Help please.

4 Weeks Ago
by DahDestroyer Go to last post
1 79
QUESTION
 

Custom Font doesn't properly download

I don't know if I am doing this properly but I am trying to use a custom font for my Garry's Mod Server and it will prompt connecting users as if they're actually downloading the font, but when they load into the game, the font is not actually loaded, and...

4 Weeks Ago
by MatureGamersNetwork Go to last post
8 140
Lua scripting
 

Horizontal scrolling text This thread has images

Hey All, I wanted to create a scrolling text board like this: https://www.youtube.com/watch?v=7FqKHuqPXY0 But I have no idea how to do that. How to cut of drawing text etc. Does anyone know is this is possible and how I can do this? Thanks,...

4 Weeks Ago
by Darrell Go to last post
9 186
QUESTION
 

What is the best software for lua coding? This thread has images

Basically what the title says ^ I currently use Sublime text, with Falco's plugin. I heard of in-game lua editors, is that actually a thing? Any help is as always appreciated :D

4 Weeks Ago
by MatureGamersNetwork Go to last post
28 524
Help
 

solved Text above the head of a Player

Hi, I would like to know how to Write something above the head of a Player like in DarkRP.

4 Weeks Ago
by meharryp Go to last post
2 69
Politics
 

ClientsideModel rendering in PostDrawOpaqueRenderables, with multiple positions This thread has images

What I want to do: Draw one clientsidemodel multiple times in different locations. prop = ClientsideModel("models/props_phx/construct/metal_tube.mdl",RENDERGROUP_OPAQUE) hook.Add("PostDrawOpaqueRenderables","proprender",function()...

4 Weeks Ago
by Jvs Go to last post
4 79
Help
 

solved Maglev Spawner, cant make the SEnt Dupe Support dupe.RegisterEntClass()

I am using a RegiterEntClass function, that is storing my Sent for Dupe support. I call my creator is as follows: Module = MakeMaglevModule(Ply,Pos,Ang,) Where "ARGS" are the cvar values stored in local vars (... Like Type - my controller...

4 Weeks Ago
by dvd_video Go to last post
9 322
Help
 

Ent:SetFriction() Does not seem to work

Hi forum, Yesterday i made my new tool, for Modding the Ent's Surface friction. So far I have Reference here: http://wiki.garrysmod.com/page/Entity/SetFriction TOOL:LeftClick(Trace) -- Indeed checking for a Valid Phys prop ... then ...

4 Weeks Ago
by dvd_video Go to last post
3 208
Help
 

solved ENT:(Set/Get)NWVector Does not seem to stanfer data cl-sv

Hello, As i was Coding my New Sent I used the functions in question here: http://wiki.garrysmod.com/page/Entity/SetNWVector http://wiki.garrysmod.com/page/Entity/GetNWVector My code is as follows:

4 Weeks Ago
by dvd_video Go to last post
10 213
QUESTION
 

solved How to reset the Toolgun screen to black?

Hi forum, I recently took a look at Garry's code in github, and what I see there was that I can make: function TOOL:DrawToolScreen(w, h) --- call some stuff from the surface library in here surface.DrawCircle( w / 2, h / 2, (w / 2 + h / 2)...

4 Weeks Ago
by dvd_video Go to last post
10 179
Movies
 

solved Jittering positional updates in PostDrawOpaqueRenderables

I set a generic prop_physics to nodraw with ent:SetNoDraw(true), and then create a clientside PostDrawOpaqueRenderables hook that calls this prop with ent:DrawModel(). The model draws, but if I move it around it jitters. The framerate is fine, far above...

4 Weeks Ago
by bitches Go to last post
2 30
Help
 

Pointshop Problems..

Hello Facepunch, I need some help with the Pointshop please? After purchasing Pointshop Taunts from Scriptfodder the owner of the script was banned, gg to that. So there were strict installation instructions to make the taunts work, all of which...

4 Weeks Ago
by DapperePolive Go to last post
2 72
QUESTION
 

solved Player modelers ?

Is their a place were I can hire some player modelers that can either extract or create player models for gmod? Like scriptfodder but a modeler place? Thanks!

4 Weeks Ago
by bladez422 Go to last post
2 40
Help
 

Errors to php?

How i can make all errors go to php? Example: Lua error > Send to php > Show at php

4 Weeks Ago
by Acecool Go to last post
10 175
Lua scripting
 

solved Changing the spawn menu props in a gamemode

I'm deriving from sandbox on my gamemode, and I want to have control over the props available in the spawn menu. Basically I want to make a whitelist (in the code), and only have those whitelisted props available to click on. I don't even know where to...

4 Weeks Ago
by Acecool Go to last post
13 161
Help
 

solved Attempting to make a round Button This thread has images

I don't mind if the barriers for the buttons aren't round. So I have made this, but I want the button to be filled. I am currently using surface.DrawCircle (but this doesn't fill the circle, just draws the outline) I am aware that there is a...

4 Weeks Ago
by Richtofen Go to last post
1 39
Lua scripting
 

!unstuck help

how to get !unstuck comand prop hunt gmod?:v:

4 Weeks Ago
by Acecool Go to last post
1 62
QUESTION
 

Utime alternative?

Exactly what the title says. Utime always randomly deletes peoples times for me. Is there any similar alternative?

4 Weeks Ago
by code_gs Go to last post
1 70
Help
 

Picking up only on use

I'm searching for a way to get back a dropped weapon only when I use the E key (autopickup disabled). The problem is that a dropped weapon is not considered like a normal holdable prop, if I use the E key on it, nothing happens. Thx

4 Weeks Ago
by Acecool Go to last post
3 96
QUESTION
 

7 months and still no kinect v2 support. Any plans of adding it?

I know I suggested this before but I just wanted to know if there are any plans on adding Kinect v2 support to garry's mod? The Kinect has been out since July last year and I haven't seen any changes adding support.

4 Weeks Ago
by raidensnake Go to last post
16 328
Help
 

Exporting animated models from Milkshape This thread has images

Hello folks! I'm having quite a hard time with some animated models. I'm trying to export an animated landing gear for a WW2 plane, and i've done the animation in Milkshape. Then, i exported the model as .smd. Here is the .qc file i used to compile it...

4 Weeks Ago
by Killstr3aKs Go to last post
0 50
Lua scripting
 

Help with creating MOTD - (ULX/ULiB) This thread has images

So here's what my MOTD currently looks like. What I'd like to do is remove the tab at the top as well as cut down on the UI on the top and around the image while maintaining the countdown/play button at the bottom. The page should also fit with...

4 Weeks Ago
by Nookyava Go to last post
6 138
QUESTION
 

solved Ragdoll hitgroups?

Hey Was wondering if its possible to detect hitgroups on ragdolls? Its pretty straight forward on how it works on the player himself, however that's done through ScalePlayerDamage, which only applies to the player. So is it even possible to detect it...

4 Weeks Ago
by [CLRP]extra Go to last post
2 73
Lua scripting
 

Derma Button Help This thread has images

I am making this suitcase addon and I need to know how do I set the player model of a player inside of the derma menu, but the derma menu is in cl_init.lua, I know you have to hook it up but how would it look like?

4 Weeks Ago
by [CLRP]extra Go to last post
12 216
Lua scripting
 

Pathing

I'm trying to compute the shortest walkable distance from one position to another. All I've been able to find is PathFollower for NextBots, and it's certainly less than ideal to have to spawn a NextBot everytime I want to find a path. How can I best do...

4 Weeks Ago
by RealDope Go to last post
21 540
Lua scripting
 

solved Gmod server won't bother to include my library This thread has images

So I was dividing my tool in 3 files, just it can be red better, then I experienced the following error: The file is there. I used many methods to include it's still a bummer. I made it via "include" couse so far this is the best option that...

4 Weeks Ago
by dvd_video Go to last post
9 161
Lua scripting
 

Get server port number?

Trying to get the port number of my server via lua, I've tried GetConVarNumber( "port" ) but that doesn't work, just returns 0, GetConVarString( "ip" ) works just fine. Any Ideas?

4 Weeks Ago
by Acecool Go to last post
6 150
Help
 

Chat tags OOC

Hi everyone, it's me again . I realized that the change in the files can not be darkrp and found the code and I want to convert what would have been as follows: Hero: Hi - white always OOC - always green Hero(my nick) - team.GetColor(ply:Team()) ...

4 Weeks Ago
by Acecool Go to last post
5 151
QUESTION
 

solved Hammer Help

How would you make a chair in hammer that you can actually sit in? Like a couch and you can walk up to it and press E to sit down.

4 Weeks Ago
by TheHidden Go to last post
2 53
Help
 

solved Is there a hook for this?

I need a hook that is called when the player GAINS health. Is there any hook that is tied to this? I know there is "PlayerHurt" but this is only called when the player is damaged, correct? Thanks.

4 Weeks Ago
by MGCLegend Go to last post
3 57
Lua scripting
 

Getting certain CW 2.0 attachments on spawn?

I've spent literally all day trying to figure this out and screamed "fuck" a few times really loud. Looking at Customizable Weaponry 2.0's code, I found this part is how you give a player certain attachments. -- use this func when you want to send a...

4 Weeks Ago
by mib999 Go to last post
3 118
Lua scripting
 

Help lua errors 24/7

The error: . L 02/01/2015 - 00:11:25: Lua Error: Couldn't find 'config.lua' (@darkrp_modules/levels/sh_custom.lua (line 41)) Lua Error: Couldn't include file 'config.lua' (File not found)...

4 Weeks Ago
by RealDope Go to last post
5 145
Help
 

solved GetPData in a VGUI

Hi, i have some VGUI like this local cid = vgui.Create( "DLabel", fenetre_principal ) cid:SetSize(1000,20) cid:SetPos(10,60) cid:SetColor(Color(0,0,0,255)) cid:SetText("CID: "..ply:GetPData("cid", "rien")) BUT the CID write always...

4 Weeks Ago
by annilator3000 Go to last post
7 89
Help
 

solved auto kick idle players in spectator

Is there a way to auto kick people in spectator so they can't farm points. 1st February 2015 would this work? http://forums.ulyssesmod.net/index.php/topic,5963.90.html

4 Weeks Ago
by C.Finley Go to last post
1 41
Lua scripting
 

Remove the aura on entities

Hi, Apparently an update not too long ago caused aura's to show up on entities, and then another update 'fixed' it - but since then I still have the aura's showing. I would appreciate all the help. Many thanks!

4 Weeks Ago
by Gravious Go to last post
3 90
POST YOUR
 

Useful Code Snippets This thread has images

I've got quite a few pieces of code which I've figured out and would've been very helpful to me like 2 months ago, so I made a place for people to post snippets of code for others to learn from. Whether it be like an undocumented or poorly documented wiki...

4 Weeks Ago
by Xaotic Go to last post
38 2,002
Lua scripting
 

solved CSoundPatch:Play() Mp3 simple question

Hey guys, I would like to know if mp3 files works with "CSoundPatch:Play()" I guess that Wav does. Thanks for reading :)

4 Weeks Ago
by Pwned231 Go to last post
4 80
Help
 

solved Bind a command when join server.

Hi everyone, I would like to Bind a command when someone spawn : here is the hook. local function Bind_Spawn_Menu_F2(ply) ply:ConCommand("bind F2 ouvrir_menu_f2") end hook.Add("PlayerSpawn", "Bind_Spawn_Menu_F2", Bind_Spawn_Menu_F2) But the...

4 Weeks Ago
by annilator3000 Go to last post
2 42
Help
 

solved Running lua command in lua?

Hey! How do i run lua command in lua? Example: I type !sv print("test") and then it gives in server console "test". I have done all expect executing code as server.

4 Weeks Ago
by Xaotic Go to last post
1 48
Lua scripting
 

Adding Console Commands/RCON commands?

Anywhere I look I cant seem to find documentation on adding RCON commands? Yknow the ones that can only be ran serverside, such as the addowner ones in ULX or EVOLVE? Any help is appreciated!

4 Weeks Ago
by Xaotic Go to last post
3 77
Help
 

solved Draw.RoundedBox in a VGUI

Hi, I would like to make make a Health Bar in a VGUI. If someone can help, I don't know how to do. 1st February 2015 I found it... http://wiki.garrysmod.com/page/Category:DProgress

4 Weeks Ago
by annilator3000 Go to last post
1 34
Help
 

Basewar Money This thread has images

http://facepunch.com/showthread.php?t=1379986&highlight=basewars - the gamemode I can not raise the money. Money just lying on the ground.

4 Weeks Ago
by freakyy Go to last post
3 135
Help
 

solved Custom weapon skins

Hello, I want to use custom weapon skins. It should be the following: - People can buy a deagle skin in pointshop - They equip this pointshop item - They equip a weapon and get this new weapon skin

4 Weeks Ago
by Nessaj1 Go to last post
2 58
QUESTION
 

Parenting a Vehicle Pod to NPC?

Is it possible through script or otherwise to parent a vehicle seat/pod to an NPC?

4 Weeks Ago
by TylerB Go to last post
4 82
QUESTION
 

TTT Map Resource

Hey. I was wondering the best way to go about resource.AddWorkshop()'ing TTT maps. Is there a way so that only the current map is sent to the client to download? Or is that already how it works?

4 Weeks Ago
by DanielHershey Go to last post
10 145
Help
 

Lightmap Mesh Problem

I'm recently trying to render a lightmapped plane on the wall but It's not rendered. I heared I have to set lightmapped UV and I setup lightmapped UV but it's not still rendered. Code: http://pastebin.com/pjB03YTj Do you know what I have to do more?

4 Weeks Ago
by rebel1324 Go to last post
0 44
Help
 

extended error

addons/ulx/lua/ulx/modules/sh/extended.lua:61: 'end' expected (to close 'if' at line 54) near '<eof>' 1. unknown - addons/ulx/lua/ulx/modules/sh/extended.lua:0 31st January 2015 print("ULX Extended is loading") RecentDCs = {} function...

4 Weeks Ago
by C.Finley Go to last post
4 76
Photos
 

solved GMod - What are you working on? January 2015 (#41) ( 2 3 4 5 .. 17 18 19 20 Last ) This thread has images

Happy new year all! Highlights from the previous thread

4 Weeks Ago
by Mors Quaedam Go to last post
779 59,302
Help
 

Cannot Upload to workshop.

Hello, I have tried uploading my content too the steam workshop. I have made the addon.json file but everytime I run the CMD code I get an error called: "Could't parse json file." If you are confused to what I am referencing please watch the video for...

4 Weeks Ago
by zerf Go to last post
4 53
Help
 

solved Selecting random player This thread has images

Hello, so what i'm trying to do is to get all the players in the server and then select one random player to join a certain team. I tried this: local maxnum = #player.GetAll() local playernum = math.Round(math.Rand(1, maxnum)) for k,v in...

4 Weeks Ago
by Neat-Nit Go to last post
4 68
Help
 

Reset hands position

Hey, When I drop (with an addon) some workshop downloaded SWEPS, my hands position is messed up at respawn. http://i.imgur.com/HlW6F6b.jpg - Is it a bug? - What is the way to reset player view hands position? Thx

4 Weeks Ago
by Neat-Nit Go to last post
1 44
Help
 

solved Cam3d2d pictures?

Hey! I want to draw on cam3d2d pictures from the mainscreen of gmod. 1. Where i can find the folder with pictures? #FOUND 2. How do i render the picture? (Maybe setTexture?)

4 Weeks Ago
by SteppuFIN Go to last post
2 120
Help
 

How to create a materialproxy

So, my friend and i are updating Q3 arena stuff and i recently had the idea to use MaterialProxy to do the charging states of the Railgun However, we are confused on how it works, so we need help on how to do it What it needs to do: -Detect if...

4 Weeks Ago
by Matsilagi Go to last post
2 66
Help
 

player in spec to long

how do i set cvar to where if a player is in spectator on ttt for to long it auto kicks them???

4 Weeks Ago
by Acecool Go to last post
3 43
QUESTION
 

solved Get offset angle (or something) to target entity

I'm probably missing something completely here, so please excuse my ignorance if that's the case. If i have two entities, and i want to get the angle offset of one from the other's forward vector, how would i go about doing that? I.e, if Entity...

4 Weeks Ago
by MysticLlama Go to last post
2 79
Help
 

solved Help with "Net...."

Hi again, i'm trying to make a Description and i have a problem. Here the code: if (SERVER) then util.AddNetworkString( "description_ouvrir_pannel" ); util.AddNetworkString( "get_description" ); util.AddNetworkString( "changer_description");

4 Weeks Ago
by annilator3000 Go to last post
4 88
games
 

SetRenderFXMode bug?

I'm trying to use SetRenderFXMode with a player. But when I do that, nothing change on player. There are some renderFXModes that makes players invisible. I was reading the GMOD Wiki article and said that You must change entity's color to make effect. I...

4 Weeks Ago
by Acecool Go to last post
8 126
Lua scripting
 

Highest number avaliable?

What kind of variable do GLUA numbers use by default? I originally presumed it was a 32bit INT but that does not seem the case. What would the maximum number my gamemode could utilise?

4 Weeks Ago
by Strideynet Go to last post
0 71
QUESTION
 

solved Lua autorefresh for mainmenu?

Is there a way to have autorefresh work on the main menu? I'm trying to make a custom main menu but it won't update so I have to constantly restart.

31st January 2015
by LUModder Go to last post
2 63
Help
 

GlobalStrings get reset for no good reason - this makes absolutely no sense.

I seriously cannot wrap my head around this. We've been trying to solve it pretty much all day, this makes absolutely no sense. We're trying to implement prop protection for our gamemode and running into technical problems. Here's what we're trying to...

30th January 2015
by Neat-Nit Go to last post
8 143
Help
 

Question regarding how the multiplayer server list works

Hello everybody, Does anybody actually know how the GMod online server browser works in terms of retrieving servers along with their ranks. I first assumed that it used sv_region however I was surprisingly mistaken. My second assumption was that it...

30th January 2015
by ertug20 Go to last post
4 121
Help
 

solved Random Gmod Sound

Hi whenever I join my server there is like a beep is there a way to fix it? 29th January 2015 every time you join like an error i guess hard to describe....

30th January 2015
by C.Finley Go to last post
8 134
Help
 

FA:S 2 Advanced Duplicator 2 Exploit Help

Players can go on other servers, toolgun the FAS Attachments with the Advanced Duplicator 2, come on my server, and paste them. Anyone know how to stop this? Thank you.

30th January 2015
by geferon Go to last post
7 222
Help
 

Help with something

Ok, so i have a Net.receive function which is run in another Net.receive function. So here the code : net.Receive( "changer_description", function( _len, _p) _p:SetPData(_p:SteamID().."description", _TextEntry:GetValue( )) _p:PrintMessage(3,...

30th January 2015
by annilator3000 Go to last post
9 157
Lua scripting
 

[DarkRP] DoorBuySystem

Greetings to all! Want to ask you how to do it: Buy a door on definite time (1 week, 4 weeks, 1 year) The standard menu purchase, only with the timing)

30th January 2015
by gonzalolog Go to last post
4 176
QUESTION
 

Are there any risks when hosting a dedicated server?

I know very little about networking and how things communicate over the internet, so I ask this question because I want to run my own server knowing there may be risks. If there are any risks, what can I do to make sure I am safe hosting my server? Or am...

30th January 2015
by ertug20 Go to last post
5 138
Help
 

Dedicated server not showing on server browser

I am hosting a dedicated server running on Limestone Networks running several gmod servers, but none of them seem to appear on the server list. If you type in the IP to console, you can connect though. This is the command line I use: ./srcds_run -game...

30th January 2015
by ertug20 Go to last post
9 118
Help
 

Getting Random Player From Guards Team This thread has images

Hello everyone! As the title shows, I would like to get all the members of the guard team that are alive, and pick one at random. How would I go about doing this? Thanks!

30th January 2015
by zerf Go to last post
1 51
Help
 

ComboBox Checks

Currently making a interactive SENT test. I'm stuck on one part and have no clue how to do this. Currently when you hit e on the entity and the panel pops up I have a bunch of DComboBoxs' you can select from. Example local DComboBox = vgui.Create(...

29th January 2015
by Triage Go to last post
9 151
Help
 

string.match to use with names.

Hey everyone. When a player joins my gamemode, they need to pick a name. They are prompted to type in a first and last name. However, I need to check that the what the player entered, doesn't contain digits, symbols or spaces. I have a string.match...

29th January 2015
by Jvs Go to last post
13 283
Help
 

New update scoreboards issue

gamemodes/terrortown/gamemode/vgui/sb_team.lua:81: attempt to perform arithmetic on field 'Width' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/vgui/sb_t this how to get rid off it? I used the scoreboards code from...

29th January 2015
by Foreseight Go to last post
7 1,078