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

solved Issue With Team Spawning

-snip- Found fix

4 Weeks Ago
by Moku Go to last post
0 52
Lua

solved Lua Error

Hello. If its not allowed to post then you can just delete this post. When i started my own server. addons/photon_lighting_engine/lua/autorun/photon/sh_emv_vehicles.lua:335: bad argument #1 to 'Set' (Vector expected, got table) 1. Set - :-1...

4 Weeks Ago
by Jeezy Go to last post
7 143
C++

Counting Lua Stack Positions in Binary Modules

I am writing a simple binary module and I don't really understand when something gets pushed onto the stack and its position. After doing some guessing and checking I think I've managed to do this properly, although I can't tell because changing the...

4 Weeks Ago
by cartman300 Go to last post
1 142
Lua

Gmod crash help me please!

"Couldnt include file 'includes\modules\draw.lua'(File not found) (@lua\includes\init_menu.lua(line 26)) help

4 Weeks Ago
by Robotboy655 Go to last post
3 124
Help

solved Draw a icon on the scoreboard

if CLIENT then local Scoreboard_Roundness = 8 local Scoreboard_Color = Color(0, 0, 0, 0) local Scoreboard_XGap = 6 local Scoreboard_YGap = 6 local Scoreboard_TitleToNamesGap = 4 local Title_Height = 12 local Title_Color = Color(255,...

4 Weeks Ago
by gaminghunters Go to last post
4 68
Help

Table for WithinAABox

How could I make a config file for multiple vectors for WithinAABox? What I have now is pos1Table = {} pos1Table = "583,-690,-290" pos1Table = "300,-2100,-230" pos1Table = "" pos1Table = "" pos1Table = ""

4 Weeks Ago
by danker pepers Go to last post
13 160
Help

Drawing a material on a ent

Hey, I'm looking for recommendations to what i can use. To render a material on a entity at a certain pos. (Do not provide me code i just want a pointer to the functions) Thanks, Zigi

4 Weeks Ago
by Zigi Go to last post
4 92
Help

networking Entity:ManipulateBoneAngles()

I am trying to manipulate the bone angles of a model using ManipulateBoneAngles() without network usage tanking. Currently what I have proposed is running the bone manipulation twice separately on client and server, I have not tested this yet however. ...

4 Weeks Ago
by arow1234 Go to last post
0 88
Lua

Convert Hl2 Entitie to Lua

Hello I would like to convert the Thumper Script (C++) into Lua for forward projects but I do not have any knowledge in C++ so I think I'm gonna make that wrong. If someone is interested into helping me, He's welcomed ! Thank you

4 Weeks Ago
by Reese Roite Go to last post
0 136
Question
4 Weeks Ago
by Robotboy655 Go to last post
1 60
Help

Increasing Zombie Detection Range

//ZOMBIES THINK function GM:Think() for _, ply in pairs (player.GetAll()) do local plypos = ply:GetPos() local Zombies = ents.FindByClass("npc_zombie") for _, ZombieMind in pairs( Zombies ) do if ZombieMind:IsCurrentSchedule (...

4 Weeks Ago
by Micro230 Go to last post
0 145
Help

solved Inheritance Tree

In ULX/ULib, how would I get all the groups that a users group inherits from? For example, if the user is superadmin, it would return admin, operator, user. Another example would be: I have 26 ranks, A-Z. A is the highest rank and Z is the lowest, and...

4 Weeks Ago
by danker pepers Go to last post
0 90
Help

solved Load local (.swf) files

What is the correct procedure to get a SWF files stored locally in every client's pc and get it to work on SetHTML library via Awesomium? This is what I've tried so far and resulted an error, prompting me to make this thread. self.SWF =...

4 Weeks Ago
by nubpro Go to last post
6 370
Lua

DModelPanel Animations?

I know googling this will return some results but none of them work (:v) I am trying to set the animation of my Model, but when I open the menu, my games lags alot and then it spews lua errors: Error: gamemodes/gmages/gamemode/cl_help.lua:416:...

4 Weeks Ago
by HunterFP Go to last post
9 522
Question

Change an SWEP's texture

Does anybody know how I would change the texture of a weapon without having to make multiple models of the weapon?

4 Weeks Ago
by Tomelyr Go to last post
2 75
Help

Problems with SRCDS Garrysmod server

Hello everyone, I'm having problems running my Garrysmod server with DarkRP. The problem is as following: It started with whenever I spawn a car (VCmod is on my server) for the first time, the server will freeze for around 5 seconds. The next time...

4 Weeks Ago
by djrefor Go to last post
3 209
Help

solved Need help | Star Wars Force Choke addon

So.. hi, I have tried everything, changing values, and shit, but doesn't work. So, I thought, what is the best forum for coding and other stuff with gmod? Face Punch Forums if SERVER then // This is where the init.lua stuff goes. AddCSLuaFile...

4 Weeks Ago
by PIXX Go to last post
6 197
Lua

solved Saving a players loadout, the simple way?

So I'm trying to create this event thingy, where players can teleport to an event started by the administrators of the server. I was wondering what the easiest way to save their loadout is? I tried using PData, but it doesn't seem like it works with...

4 Weeks Ago
by SkitZz Go to last post
20 281
Help

solved Scoreboard help plesss

local Columns = {} Columns = {name="Name", command=function(self, arg) return tostring(arg:Name()) end} Columns = {name="Rank", command=function(self, arg) return tostring(arg:ply:IsUserGroup("superadmin") then surface.SetImage(...

4 Weeks Ago
by gaminghunters Go to last post
8 131
Lua

solved Pointshop Items For Certain Players

So, on my server, Gold and Platinum Donators can choose any playermodel that is on the workshop to be added. This added playermodel is only able to be used by them and no one else. It's basically a written rule right now though so I was hoping someone...

4 Weeks Ago
by Gruhm Go to last post
5 93
Help

solved need help with net library script!

Here is what I have but all I get is Errors SERVER FILE: util.AddNetworkString( "dj" ) concommand.Add("dj", function(ply,cmd,args) if not (ply:IsAdmin() or ply:IsSuperAdmin()) then ply:ChatPrint("You're not an...

4 Weeks Ago
by awesomenessis Go to last post
2 99
Help

solved SetVelocity not working with players.

Hello, I'm trying to make a script that gives player velocity when bhop. Here is the code that don't works: ply:SetVelocity(ply:GetVelocity() * hops) The "hops" is increased everytime the player hit the ground: if(LocalPlayer():IsOnGround() &&...

4 Weeks Ago
by LTDEXXILENT Go to last post
0 74
Lua

Detecting currently selected language

Hey, Is there a way to detect which language is currently selected either in garrysmod or in OS?

4 Weeks Ago
by freemmaann Go to last post
3 132
Question

Play a sound that's filename is present in multiple games.

How do I do that? I want to play Episode 1's combine_soldier on/off sounds if mounted, but they, by default, play the ones from the Original Half-Life 2.

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

Darkrp custom jobs.lua error :(

hey, iam getting this error : i tried much things but i cant get it fixed :( here are the lines above & under 810 & 798 TEAM_SERVERLEITER = DarkRP.createJob("Serverleiter on Duty", {

4 Weeks Ago
by Tupac Go to last post
5 135
Help

Changing gamemodes in-game

Is there a code to make a voting system to swap gamemodes, like vote map but gamemodes, And, when i do manually change gamemodes, it breaks ulx, any fixes?

4 Weeks Ago
by slashx24 Go to last post
3 429
Help

solved Problem With lua

I get an error when clicking the button to run the commands addons/jobnpc/lua/entities/enforcers/cl_init.lua:30: attempt to call method 'ConCommand' (a nil value) 1. DoClick - addons/jobnpc/lua/entities/enforcers/cl_init.lua:30 2. unknown -...

4 Weeks Ago
by GoproMgH Go to last post
3 90
Lua

Garry's Mod Sensing Door Position

I am looking for a way to Open/Close doors vie one command. I have the start of a command but there is one part that I need. How am I able to tell if a door is in the open or closed position? Here was my attempt: AddStickTool("Open/Close Door...

4 Weeks Ago
by ERIN Go to last post
4 157
Help

help on making a addon

hello guys ummmm i was wondering how to make a adddon i have been told to put it in the lua file but i dont know where to start like do i do this lua/autorun/<THE ADDON NAME> then in that int shared cl_int is this right ???

4 Weeks Ago
by Tupac Go to last post
4 156
C++

Cannot open server.so

Hi! I'm not really good at writing in C++ for Linux. I wrote this code: #undef _UNICODE //I don't understand why this is don't defined by default #ifdef __linux__ #define LINUX 1 #define _LINUX 1 #define GNUC 1

4 Weeks Ago
by Jcw87 Go to last post
7 421
Lua

NextBot Coding and Discussion Thread ( 2 3 4 5 .. 10 11 12 13 Last )

This thread will be for anything related to the new NextBot system, I'll keep the OP updated with useful information to help anyone who has questions or needs help. Update 160 added bindings to the nextbot system, which is what CSS, TF2 and L4D bots...

4 Weeks Ago
by Tonicum Go to last post
491 51,874
Lua

Need help for setting health in Garry's Mod

I own a StarwarsRP server and on the server you spawn with allot of health. But I only found a code that requires the person to respawn to set their health to what I want them to have. Now what I want to ask you that is there a way for this to hazppen...

4 Weeks Ago
by danker pepers Go to last post
7 209
Lua

Weapon holdtype toggle

So I have been trying to work on a function when you you press down E and attack1 it toggles your hold type to another defined one and via versa. I want this so I can add it onto the bottom of each weapon i want it for even if they are using different...

4 Weeks Ago
by geferon Go to last post
4 149
Help

solved Need some help with world models (again)

So this time i need some code that would make the SWEP.WorldModel invisble. I don't want to use SWEP.ShowWorldModel, i simply want code that sets the current world models alpha to 0.

4 Weeks Ago
by NeatNit Go to last post
5 152
Help

Attaching gmod lamp to weapon

Hey there, I was attempting to attach a gmod lamp (without the lamp part, just the light) to my weapon (Sniper) and it goes where I aim. I'm also trying to make the lamp have very specific settings (Just like in the Q Menu) after much research, I could...

4 Weeks Ago
by NeatNit Go to last post
4 156
Help

solved surface.drawtexturedrectrotated half invisible. How to?

So ive Been fiddling around with a compass, i have a texture which is a full circle with N W S E, and i was wondering if i could cut out the bottom part so only the top part of the compass is visible. How would i go on about doing that.

4 Weeks Ago
by RANDOMlagFTW Go to last post
5 131
Work In Progress

(EXTREME WIP) Deus Ex NPCs

-I'm remaking this thread.

4 Weeks Ago
by vrej Go to last post
3 179
Question

solved ClientSideModel deleted after lag?

I'm trying to figure out why my clientsidemodel is getting deleted after lag and how to fix it. Does anyone have any experience with this? My code. local clothes = ClientsideModel("models/clothes1.mdl", RENDERGROUP_TRANSLUCENT)...

4 Weeks Ago
by thegrb93 Go to last post
6 128
Help

Using stencil to render effect only behind things

Edit: Solved by the two below, thanks! -Snipped second edit- Edited Working code function ENT:Draw() render.ClearStencil() render.SetStencilEnable(true)

4 Weeks Ago
by bitches Go to last post
5 186
Help

I need help with some code, that I cant solve.

Hello! I'm DrFineSir, and i'm working on this addon but I came across a problem. Let me try to explain. Lets say there is an entity, this entity can be picked up and put into your hotbar. BUT when you pick it up you have to place it back down and...

4 Weeks Ago
by DrFineSir Go to last post
8 261
Help

Making preset ULX ent command

In short, I would like help making a ULX command that just spawns in a specified prop without any params or classnames. For example if I made this command and it was for a vending machine it would be as follows: classname: prop_physics params:...

4 Weeks Ago
by SupahMarioX Go to last post
10 272
Help

solved Need help with the "crotch gun" problem

http://steamcommunity.com/sharedfiles/filedetails/?id=691008824 I am making a swep pack, and i want the w_ model to appear in the hand. But it always appears, well, in the crotch. How can i fix this? Please help me if you can.

4 Weeks Ago
by BlackSnow Go to last post
6 84
Help

solved Problems with playing sounds...

Hey everyone - sorry to bother again. I cannot wrap my head around why this wont play any sounds: resource.AddFile( "sound/thump1.wav" ) -- This file is placed in "mygamemode/content/sound" and is downloaded uppon joining the server....

4 Weeks Ago
by Fillipuster Go to last post
3 80
Help

MySQL Help

So basically I want to send data to the Garry's Mod SQLite file (server.db) when I press a Derma button. I've never used Lua with MySQL. Could someone please help me? Here's a video to clarify what I'm asking: Thanks a lot, guys! P.S. - I know...

4 Weeks Ago
by Fillipuster Go to last post
5 176
Question

Problem With DarkRP Shipments

When I was making my shipments (because my server got corrupt) they wouldn't appear when I would restart the server. He is the code --] DarkRP.createShipment("AK-47", { model = "models/weapons/w_rif_ak47.mdl", entity = "fas2_ak47", price =...

4 Weeks Ago
by Tupac Go to last post
4 155
Help

Map Chooser after Round end error - help!

I have a working round timer and all that, but after the round ends it fails to call the function. local MapChooser = nil function GM:ShowMapChooser( gm_table ) if ( MapChooser ) then MapChooser:Remove() end MapChooser =...

4 Weeks Ago
by MPan1 Go to last post
2 77
Lua

Scoreboard Profile + steam ID

I wanted to add a script to my TTT server that: Allows users to right click on names and copy steam ID, as-well as display a shortcut to their profile. Heres a screenshot of the script I want:

4 Weeks Ago
by iJohnny Go to last post
2 133
Lua

Need help reading a table

Hi Guys, I am not really a coder more of a novice in lua and Need some help. I have a large list of players that I want to check are on a server I'm playing on, So I'm trying to develop a clientside script to do this, so I can type in a console command...

4 Weeks Ago
by SirFrancisB Go to last post
9 219
Help

Forced to make another cancerous DarkRP Server

I have known this kid for a while, he goes by the name of Nathaniel. He's a nice guy, plays gmod a lot, we were admins together on a very good DarkRP server before it went down one day, as most servers do. He decided to make his own server now, and asked...

4 Weeks Ago
by bitches Go to last post
4 221
Lua

Join/Disconnect

Trying to make a join/disconnect message which displays name, and steam id. The current code I have doesn't seem to work. The file location is currently lua/autorun/server function FirstSpawn( ply ) PrintMessage( HUD_PRINTTALK, ply:Nick().. "...

4 Weeks Ago
by bigdogmat Go to last post
2 148
Tutorial

Workshop problems

Hi everybody. I've been trying to add FastDL(so you download addons right at connection) http://pastebin.com/9WmFHRA0 - this should be the script for workshop.lua But apparently i've been told that not everybody is able to download at the...

4 Weeks Ago
by F1R3Kael Go to last post
1 130
Help

solved Run Mutiple gamemodes on same server install! possible?

Do you people think that it might actually be possible to make a lua file call in specific addons if its a certain game mode? For example: If I want to run the ttt server it will call something along the lines of: /excl_mapvote_init.lua to call...

4 Weeks Ago
by Marmigamed Go to last post
8 257
Release

gm_glsock - Full async sockets ( 2 Last )

First of all you all might wonder why another socket library that will eventually crash anyway, well I'm using the Boost.asio library here to help my self for cross platform compatibility. Also what I didn't like about the other modules is that they...

4 Weeks Ago
by Potatofactory Go to last post
54 9,787
Question

Making boot-leg entities using a collection of props.

Hey everyone. I have recently been working with SCK to make awesome SWEP models using different models that were already in-game. Now, I was wondering if there's some way to do the same for regular entities? I doubt the best/only way is to make...

4 Weeks Ago
by RonanZer0 Go to last post
3 129
Question

solved ToScreen() from another position

How can I use ToScreen() (or a replacement) but from another position and angle than what the local player is currently seeing? Tried messing with LocalToWorld and WorldToLocal stuff... with no avail.

4 Weeks Ago
by RonanZer0 Go to last post
8 269
Help

Unexpected symb near =

I have no idea why this error is happening, I have asked a few people, and none of them knew what was wrong with it. This is a snippet of the code which I isolated to be the problem, because I commented out everything else. ...

4 Weeks Ago
by darkjacky Go to last post
4 218
Help

solved Broadcast System (Using Timer) HELP

Hey guys! First of all I'd like to say hi! I'm Matt, a server owner and I need some help with something! I have looked on garry's mod lua wiki and I have found parts to this, but I just can't put them together! In garrysmod/lua/autorun/server I have...

4 Weeks Ago
by OhMatt Go to last post
4 200
Lua

Disabling Damage Knockback

So, I want the disable the "knockback" the damaged player gets when he is shot, but I could find anything in the Wiki about this, any help would be appreciated.

4 Weeks Ago
by meirl Go to last post
4 192
Lua

[Help]Grenade Launcher Swep

I'm trying to make a swep that is essentially a re model of the default smg, but I want it to be separate from the default smg. So instead of overwriting the code of the already existing smg, I want mine to coexist with the other. Could anyone help me?

4 Weeks Ago
by PETREKILLAH Go to last post
6 114
Lua

XP granted after a kill - help

I have created some code, gathered some ideas from other codes and this is what I have come up with. Basically I have a gunshop I have created, I want to use this gained 'xp' from a kill to purchase from this shop. First I need to work out how to get xp...

4 Weeks Ago
by MPan1 Go to last post
10 185
Lua

Gmod lua teaching help

Hey, guys, I have been trying to learn gmod Lua for a while , I have tried studying code , video guides and gmod wiki guides but nothing has worked . I am just wondering if there are any people who will be willing to help me learn or just give me some...

4 Weeks Ago
by 0V3RR1D3 Go to last post
13 352
Help

solved Help! Server is really laggy

I made a server recently using srcds and start.bat. It is working but it is laggy as hell. I have 33 add ons on it and max players is 12, I don't have the best computer but it is okay. Can anyone help me fix the lag? Thanks, iamaman24287. :thisthread:

4 Weeks Ago
by iamaman24287 Go to last post
5 164
Help

DListView: What calls when the cursor goes over a row?

I just want a sound to play when the player's cursor goes over a DListView's row, but I literally can't find ANYTHING about it anywhere. Does anyone know?

4 Weeks Ago
by MPan1 Go to last post
5 146
Help

Problem with ManipulateBoneAngles reset

Hello, im currently working with ManipulateBoneAngles and it is working so far. My only Problem currently is that it wont get resetted it just stays like that. It is hooked up with a SWEP This is what i use to create the Angle local rhand =...

4 Weeks Ago
by thefaiint Go to last post
0 86
Help

solved NutScript 1.1 - Lua Problems

Okay, I have been having problems with players(clients) randomly(math.random) disconnecting(crashing) from my server. I've tried a bunch of troubleshooting with no luck. I've been told it'd be smart to post my clientside_errorlog, so I uploaded it...

4 Weeks Ago
by Jasper Morgue Go to last post
1 132
Lua

Will this code work?

Heyo, I am making a new mod called Coal's Meme Guns. I am trying to attatch a console command to it that allows you to switch what meme you want to fire, rather than making 15 seperate guns. Does this look right? string helpsel ==...

4 Weeks Ago
by Lavacoal123 Go to last post
10 378
Lua

Error With Certain Playermodels

I have 5 playermodels on my server that come up with the errors listed below: addons/hitman_absolution_agent_47_playermodel_157660704/lua/autorun/agent47.lua:2: unexpected symbol near ',' 1. unknown -...

4 Weeks Ago
by Gruhm Go to last post
8 121
Lua

Cinema - Adding Soundcloud and Dailymotion

Hi, I've been trying to find I way to add websites such as Soundcloud and Dailymotion to the Cinema gamemode. I know from other threads that you need to use APIs for these services, but I don't know how to implement them into the gamemode. Any...

4 Weeks Ago
by WinterPhoenix Go to last post
9 352
Lua

Simple -Print Speed When Player jumps

Hello i'm trying to make a code. When the player jumps and hits the ground it will print the speed.

4 Weeks Ago
by ScarehGhoost Go to last post
1 149
Help

Progression

Alright, I have a few things I would love to apply to my server... 1. -in-progress- 2. How to force certain players to say something on spawn. * When a certain faction spawns (every time they spawn) they type either a console command or say...

4 Weeks Ago
by Jasper Morgue Go to last post
18 291
Help

help with dupe_arm command

hi, what files can i use for dupe_arm, i wanna use .txt files but how?, how do i get a dupe.txt for the normal duplicator

4 Weeks Ago
by cudex Go to last post
0 55
Help

help with dupe entity io flags

how do i edit the io flags for an entity in a dupe file?

4 Weeks Ago
by cudex Go to last post
2 92
Help

C++ LUA Binary module asynchronous callback

Hi, I need help figuring out how to make a simple asynchronous module to fetch an url and call a "callback" function inside another thread when its done, anyone can help me ? I want a LUA function like this: HTTPFetch(function() print("Fetch...

4 Weeks Ago
by Zeh Matt Go to last post
7 297
Help

solved help with duoe:

hi, what files can i use for dupe_arm, i wanna use .txt files but how?, how do i get a dupe.txt for the normal duplicatorr

4 Weeks Ago
by cudex Go to last post
0 99
Help

Lua Animation Api

So I have no clue how to use the animation outside of the editor and don't feel like reading a lot in the code just to find out. So could someone care to explain how to use it?

4 Weeks Ago
by bitches Go to last post
4 141
Help

I Need Help With A 3D2D Button

I need to make a 3d2d button as the title says. I googled a little while and found that: local isec = IntersectRayWithPlane( EyePos( ply ), Forward( EyeAngles( ply ) ), pos, trace.HitNormal ) if isec then local ap = pos - isec local ab = pos -...

4 Weeks Ago
by |Shepherd| Go to last post
6 223
Help

How to check if an entity is in an area

How would I check if an entity is within certain vector position? For example, I want to use a hook when the player moves to check if they are within 0,0,0 and 100,100,100. Also which hook would be best used for this?

4 Weeks Ago
by F1R3Kael Go to last post
8 116
Help

TTT Quick Chat Sounds

I'm fond of quick chat and I feel it would add more character to the game with player sounds like you'd find in the murder gamemode. Would anyone be able to point me in the right direction on how to do this? Something like this would be ideal.

4 Weeks Ago
by CupCakeR Go to last post
3 119
Help

Issue with customizable weapon creator

I currently have a way to create your own weapons on my server using weapons.register. Everything works as intended. You can create your own gun, and it works just fine. The issue is, when a new client joins the server, they can not see the weapon if...

23rd May 2016
by Swamp Onions Go to last post
2 102
Lua

solved Networking Security Question

I need to sent server data from the server where it is set, to the client. I am curious about possible exploits in my method. Right now a table is being created from SQL and stored SS. This information needs to be sent to the client so parts of the data...

23rd May 2016
by Swamp Onions Go to last post
4 204