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

ULX JAIL: Logout loophole patch?

So, I have a thought. Is there anyway to have ULX automatically jail a player if they relog?

LOT
23rd January 2017
by rtm516 Go to last post
6 591
Help

gmad.exe Not extracting map file.

Hi. I am currently working on a map (titled ph_jail_v1_beta) and I am ready to upload the beta version of the map to the Garry's Mod workshop. But midway in getting the map ready for uploading, when I drag the file with the .bsp and addon.json and what...

23rd January 2017
by Robotboy655 Go to last post
1 222
Help

how do i fix my nextbot conflicting with sanic?

my nextbot is conflicting with sanic (probably cause i copied the code and replaced every sanic with gabe(the dog))

23rd January 2017
by Nookyava Go to last post
10 332
Lua

Garry's Mod darkrp Lua error HELP ASAP

This is the first error message in my console A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua" on line 388. The best help I can give you is this: There is a player with an invalid team! The player's...

23rd January 2017
by catfood Go to last post
5 256
Help

What is better, resource.AddFile or resource.AddSingleFile?

^Title^ What would be better/faster for players to join quicker?

23rd January 2017
by TheNooblycore Go to last post
2 237
Lua

[Pointshop] First connect point reward

I want to do that when you first connect the player to the server he was given the starting points. I can give points, but check whether the player is connected for the first time I can not. Help pls.

23rd January 2017
by MeepDarknessM Go to last post
4 404
Lua

solved Traitoritem is missing

Hey there. I finished th work on a Traitoritem. I wanted to test it and put the File into the Servers addonfile. My Problem: The Script is missing in the Traitorshop. But the Console doesn't show up any issues. What did I wrong. It's my first Lua Script.

22nd January 2017
by OwnedbyCube Go to last post
15 607
Lua

Category does not exist?

Here is the category code: DarkRP.createCategory{ name = "Clone Troopers", categorises = "jobs", startExpanded = true, color = Color(160, 160, 160, 255), canSee = function(ply) return true end, sortOrder = 1, }

22nd January 2017
by thejjokerr Go to last post
5 292
Help

Garry's Mod Huge Unknown Error.

Hello! I'm having a huge error which when it happens, it totally spams the console. Error: http://pastebin.com/9iYH1BF1 I've been trying to find what exactly is causing it for a week or so now but no results. Anyone have any idea what causes this?

22nd January 2017
by ZombiezPvP Go to last post
18 762
Lua

solved A question about bullet structure

Hello guys, I would like to know what is the unit used for the distance in the bullet structure. I could not find any information about that except this: http://wiki.garrysmod.com/page/Structures/Bullet

22nd January 2017
by codneutro Go to last post
2 243
Lua

solved HL2 Models Broken on Garry's Mod

Hi There, I am making a Garry's Mod server and I am trying to use some Half:Life 2 Models, when I ulx model myself, the model is broken. See the photos below.

22nd January 2017
by code_gs Go to last post
3 255
Lua

DarkRP Getting pocket content

How can I get the stuff a player has in his pocket on the client? I've tried getPocketItems() but it just says (attempt to call method 'getPocketItems' (a nil value) So...

22nd January 2017
by Melonos Go to last post
3 262
Poll

Anyone wanna help make a remake of Pirate Ship Wars??+

Im going to start development on PSW 17 today and i really want to re-make all the assets, so i am looking for someone with a bit more modeling experience then me.

22nd January 2017
by s4sek Go to last post
3 429
Help

Use FlashlightIsOn() for hud?

How do I make my hook hud display only when my flashlight is on? I know I need to use FlashlightIsOn() but how do I use it and where, it is hard to find instructions on the wiki for that

22nd January 2017
by MGFear Go to last post
2 335
Help

how do i make a nextbot

hi i want to make a next bot like sanic, lenny, etc i got the model and going to get the music but i need the lua script pls help PS i don't really know what i'm doing

22nd January 2017
by jamie7879 Go to last post
10 400
Help

solved Error stopping me from using anything

whenever I press f4 on my server, I get this error. I can not figure out what it means. gamemodes/darkrp/gamemode/modules/base/sh_gamemode_functions.lua:5: attempt to index field 'Sandbox' (a nil value) 1. unknown -...

22nd January 2017
by collin4lizard Go to last post
3 222
Stupid

Sv_cheats question

Im setting up a new server and im running into bit of a snag. I want to enable the r_farz command for all users to (maybe even add a derma slider) but unfortunately this requires me to have the server open with sv_cheats 1. I took about a year or so break...

21st January 2017
by txike Go to last post
3 462
Help

solved Can Someone help me

Sorry if this is in the wrong place, if it is tell me the right place and ill put it there. I keep geeting this everytime i try to uplaod to the steam workshop using GMPU, in the Queue in the status area it says Error! Exit Status(1). can you please...

21st January 2017
by Nookyava Go to last post
4 256
Question

solved MySQL Query for a Ban System

I'm trying to implement a ban system into my addon and was wondering if I could use MySQL Events to un-ban a person at a specific time. If not it would be greatly appreciated if could you please suggest a different way to do so. Below you can find my...

21st January 2017
by James xX Go to last post
5 273
Help

solved send data between cl_init and init in a entity

maybe a noob question but. Can i somehow send data between cl_init and init in a entity?

21st January 2017
by meanbeandk Go to last post
10 379
Lua

Need help changing a f1 menu to a ESC menu

hi nice to meet you all, i recently bought a f1 menu but i want to change it to a ESC menu for my gmod darkrp server can anyone help me out with this? it would be really appreciated

21st January 2017
by WHOGIVSACHIT Go to last post
0 146
Help

[TTT] Is there a way to show a traitor on the scoreboard?

Hey, beautiful people! I was wondering if anyone knows a way to show a traitor on the scoreboard with a function or something. For example, I want some code like this... if condition is true then -- Notify players -- Set the players color on...

21st January 2017
by Nookyava Go to last post
3 278
Help

solved small help darkrp

how i can change eat sound when player eat food in darkrp, i tryed but its doesnt work.

21st January 2017
by ZombiezPvP Go to last post
3 345
Lua

solved Activatingtimer and Halo on keypress

I'm new to Lua and I'm trying to make a 'weapon' that plays a sound and gives the player a yellow halo for 10 seconds, I want a timer.Simple to turn the halo off after those 10 seconds. I figured out the model, playing the sound etc. But the only thing I...

21st January 2017
by Darrell Go to last post
1 238
Lua

Licence swep

Hello, I would like if the mayor gives you a license weapon.Automaticly you receive the swep or weapon. Someone can help me ?

21st January 2017
by babouche35 Go to last post
0 182
Help

Script will, out of nowhere, stop my server

So, I made this script with my blood, sweat, and tears. I think it's a very cool and neat addition to my TTT server. Unfortunately, the script will continuously crash/stop my server. What the script does is it respawns everyone on the server two times....

21st January 2017
by Windwhistle Go to last post
9 505
Help

solved tmysql4 module not found

I downloaded a base RP gamemode and it requires MySQL, I have the database setup and it is connecting successfully so that isen't the issue. It comes from this error gamemodes/life/sv_mysql_player.lua:7: Module not found! Line 7 is require "tmysql4"...

21st January 2017
by TheMafien Go to last post
5 276
Help

Voice chat help

Hello, i am Logan I am a founder of a new santosrp server called MiamiLife. After fixing most bugs on the server we have hit a problem, and this is that we don't want gspeak on our server, so i decided to disable it, yet another dev of another...

21st January 2017
by iJohnny Go to last post
1 225
Help

solved My NPC make Alyx crush game!

Strange thread name? Yes! I have very strange problem: i can spawn many different NPC's and my NPC and all will be fine, but when i spawn Alyx and she detects my NPC - game crushes. It's very stupid and i don't understand why this happens. It's really...

21st January 2017
by IAmError Go to last post
2 275
Help

solved changing speed with PlayerThink

I am trying to change the speed and for some reason this doesn't work: --Called every second. function PLUGIN:PlayerThink(player, curTime, infoTable) --Sets Cremator characters correct speed and also to make animations look smoother. if...

21st January 2017
by karl-police Go to last post
4 220
Help

Too many indices to buffer

Having this problem on a server where it will randomly drop players with the error "Too many indices to buffer. . Tell a programmer." I've done a lot of research, some say it's caused by decals being in weird places and others say it's playermodels. ...

21st January 2017
by El Pongo Go to last post
4 407
Help

[Need Help] a way to detect when a NPC is attacking you

This feels kind of like a dumb question, but I did google it and didn't find really what I was looking for. But basically, I'm wondering if there is any way to detect when a player is attacked by an npc in an if statement especially (assuming it's...

21st January 2017
by Zeh Matt Go to last post
1 160
Lua
21st January 2017
by sannys Go to last post
1 144
Lua

What can I make next that will teach me more about Lua?

I just finished a leveling system that you can view here. Based on my current skill level, what is something I can make next that's 1 step up from what I made that will teach me some more stuff? Thanks for reading! This is a module for DarkRP by...

21st January 2017
by MGFear Go to last post
3 323
Help

Prop inside of Player

Hello, i'm trying to figure out how to make a prop nocollide with another player if it is frozen inside the player. Once the player is no longer inside the prop, make it solid again. hook.Add("OnPhysgunFreeze", "Freeze", function(wep, phys, ent, ply) ...

21st January 2017
by Sir Klutch Go to last post
4 359
Help

solved Problems with MySQL quey and Checkpassword hook

I'm making my own ban system for my server and I'm having some problems while attempting to disconnect the player on the 'CheckPassword' hook. I'm storing bans inside a MySQL Database, when the hook is first run it queries the database to check if they...

21st January 2017
by Cheese_3 Go to last post
2 230
Lua

solved Attempt to compare number with a string?

Here is what's causing the error: function canPlayerLevel( ply ) local expToLevel = ply:expToLevel() local curExp = ply:CurExp() local curLvl = ply:CurLvl() if ( ply:CurExp() >= ply:expToLevel() ) then --This is line 11; causing...

21st January 2017
by Austin1346 Go to last post
3 223
Help

Error with loading classes with team.SetClass

I'm quite new to developing addons in gmod and I am trying a to make a gamemode for fun however, I ran into a problem that doesn't give a console error. I have made a class in "playerclasses/class_monster.lua" but its not loading. Here's the shared.lua...

21st January 2017
by armedturret Go to last post
0 150
Help

Prop visible, entity invisible

I've been working on script for some time and when i was about to turn my prop into entity it turns invisible, although i can see raw model. All other models in the pack i was making work as they should. Is there some bug i don't know about or is it...

21st January 2017
by cRUSHpl Go to last post
9 366
Love

What should I do first in an RP gamemode

The question sound very very stupid and cancerous maybe because of RP but me and my friend who both know some GLua want to co-op in making a simple RP gamemode which only have basic job system, money and few simple item. That would be a big achievement...

20th January 2017
by ph:lxyz Go to last post
20 1,032
Help

NPC/Vehicle Spawning Problem

Hey, I've been trying to enable the spawning of npc's and vehicles for admins on garry's mod. I have edited the lines: -- adminnpcs - Whether or not NPCs should be admin only. 0 = everyone, 1 = admin or higher, 2 = superadmin or higher, 3 = rcon only...

20th January 2017
by bilbasio Go to last post
2 172
Help

Having problems with custom models on my server.

Hey everyone I'm going to try to make this nice and quick for you. I have a darkrp server and when people join if they haven't gone to the steam workshop and clicked subscribe they can't see my custom models. I'll reply as fast as I can and thanks for...

20th January 2017
by ToddGodd Go to last post
2 151
Release

MatteHUD | Clean and Simple DarkRP HUD

Admin please delete this thread, I posted in the wrong section by accident. Very sorry

20th January 2017
by [FSG] ToXiiC Go to last post
0 227
Lua

ulx help

Could someone help me out with this custom ulx command ive been trying to make? It won't appear in my ulx menu after restarts so I assume I'm overlooking something important. I referenced the preexisting ulx commands but still no luck. Thanks for your...

20th January 2017
by Potatofactory Go to last post
7 394
Lua

attempt to index local 'jobTable' (a nil value)

I have a new starwarsrp server, I started by changing some things in the original darkrp gamemode so that my server would show up in the starwarsrp section. Then I got darkrp modifications and whenever I change something in disabled defaults I start...

20th January 2017
by Semajnad Go to last post
4 295
Help

Server Stuck Downloading Models

When I try and connect to my server (hosted off my pc atm) it is constantly stuck on 'downloading models/something/darkrp/content/something'. This is really bugging me because people cannot join the server (unless you change multiplayer settings to...

20th January 2017
by 0V3RR1D3 Go to last post
5 174
Lua

Restrict set acces

Hello, I would restrict the set acces for a ulx group. For example : The management admin can't set acces on superadmin. And the superadmin can set access all acces Thanks

20th January 2017
by babouche35 Go to last post
0 156
Lua

Pointshop camera bug.

Pls help me with it shit. File: DPointShopMenu.lua function PANEL:SetData(data) self.Data = data self.Info = data.Name

20th January 2017
by Sergey_26rus Go to last post
10 495
Help

Error connecting to the database?!

When i start my Server this Error pops up: Error connecting to the database... Error: Can't connect to MySQL server on '185.101.92.238' (111) Here is my MySQL_config.lua: config.host = "185.101.92.238" config.database = "mls_db" config.port...

20th January 2017
by Xenoz Go to last post
2 154
Lua

Question about sending tables between server and client.

First off, here is my code; Server: util.AddNetworkString( "SendUserCreateParty" ) net.Receive( "SendUserCreateParty", function( len, ply ) local PartyName = net.ReadString() local PartyDesc = net.ReadString()

20th January 2017
by Shenesis Go to last post
2 285
Help

SantosRP Error

So i was offered the gamemode SantosRP from some guy if i do a web dev job for him. So i did and this is one of the biggest errors i get. gamemodes/taloslife/gamemode/init.lua:69: attempt to index field 'SQL' (a nil value) 1. unknown -...

20th January 2017
by StonedPenguin Go to last post
7 434
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...

20th January 2017
by Apickx Go to last post
505 63,490
Lua

Pointshop ULX Command, Send

I'm looking for a ULX command to partner with pointshop called send points. I'm not a LUA wiz, but this is how I'd like it done: "ulx sendpoints {name} {amount}" !sendpoints {name} {amount} If someone could give me a tutorial on how to do that,...

20th January 2017
by Nookyava Go to last post
4 222
Help

Script Error Help

Hello Everyone! I am a Co-Owner on a DarkRP Server and there is this Script Error: vcmod/client/data_hud_main.lua:2: attempt to index a string value with bad key ('GetNWEntity' is not part of the string library) 1. error - :-1 2. __index -...

20th January 2017
by Moat Go to last post
4 248
Help

solved Translate EyeAngles to plane local angles

This is the third time I've tried to make this thread after CloudFlare's captcha has deleted my post. http://zombine.me/ss/Photoshop-19.01.17340.png I would like to translate the green arrow, LocalPlayer():EyeAngles(), into the space of one of the...

19th January 2017
by Z0mb1n3 Go to last post
4 265
Lua

solved Easy way to check if a string consists only of letters?

I'm working on a party system and I'm getting around to filtering what they can use for party names. I found something that checks if the string is alphanumeric but I didn't see one for checking if it's only consisting of letters.

19th January 2017
by Austin1346 Go to last post
8 230
Question

Using :Function()'s

Can someone explain what i'm doing wrong here? I'm know this isn't right, but just not sure how to achieve what I want :) Match = {} function Match:GetSessionID() return self.session_id end In Console: lua_run test = { session_id = 1 } print(...

19th January 2017
by bigdogmat Go to last post
21 471
Request

[Prop Hunt] Disable names and fix damage.

Hi, i'm currently playing Prop Hunt with some friends on my server, but i want to disable the names while aiming a prop. I've been looking for this a while now but i've founded nothing. I'm instructed, so you can throw codes at me with no problem. ...

19th January 2017
by Ropx Go to last post
5 416
Lua

ULX custom commands

I have a jailbreak server and I want to add a custom ULX command called !dance because so many people don't know about the console command "act dance" so it is just a way to help them out plus it is easier than opening console and typing act dance (I have...

19th January 2017
by MrRalgoman Go to last post
3 281
Help

BUYING D3A

Where and can I buy D3A (admin mod)

19th January 2017
by Rope Go to last post
8 510
Help

Entity wont draw out of PVS

Hello facepunch, I have a problem im making an entity using a mesh and when the root of the entity is outside the PVS it hides the mesh. I have tried adding the entities position to the PVS but it isn't working. This isn't the full code the only bit...

19th January 2017
by bigdogmat Go to last post
3 305
Question

How can I go about doing a Target:Function()

If the title doesn't make sense I'm basically asking how I can throw together a function like player:Health() Still fairly new to lua so sorry f this is extremely simple

19th January 2017
by Thegerba Go to last post
2 234
Help

cam.3D2D Font's always blurry

When I try to add text to a cam.3D2D it always shows up super "blurry". I want it to to be a sharp font. Here is the code: function drawOverhead( ply, dist ) local eye = LocalPlayer():GetEyeTrace() if !ply:Alive() then return end local offset...

19th January 2017
by [FSG] ToXiiC Go to last post
2 195
Lua

VCMod errors

being trying for hours to fix this: vcmod/shared/init_shared_after.lua:2: bad argument #1 to 'gsub' (string expected, got nil) 1. gsub - :-1 2. GetLanguages - vcmod/shared/init_shared_after.lua:2 3. v - vcmod/shared/init_shared_after.lua:2...

19th January 2017
by YoutoYokodera Go to last post
6 298
Help

!IsValidGamemode Issue

My friend gave me a santosrp gamemode file about a month back, He borght it as far as I am aware, But his server wasnt successful and I told him I was buying one soon. I have now borght a server and tryed to install the gamemode. I set the gamemode to it...

18th January 2017
by Slowboi Go to last post
9 420
Help

solved Different model versions? (49, 48 etc)

So I have recently been making a Source Dedicated server for Garry`s Mod! It is real fun but there is this one bug that drives me crazy. I have tried for a about two weeks now. Some of the props in the game is using a different model version. Here you...

18th January 2017
by djrefor Go to last post
1 381
Help

solved Darkrp help

people can delete own cars in button c, how fix it.

18th January 2017
by BucikPRO Go to last post
2 263
Help

solved Help with HasGunLicense [DarkRP]

I have an error with HasGunLicense. What's the problem, I'm just a beginner in programming in Lua. Example if LocalPlayer():getDarkRPVar("HasGunLicense") then draw.SimpleText("text",TargetID,0,0,Color(255,255,255,255),0, 2) end

18th January 2017
by starw11 Go to last post
9 301
Help

solved Weapon:GetSlot() returning 0?

Made a dandy little perma wep for PointShop... ITEM.Name = 'PERMA TEST' ITEM.Price = 0 ITEM.Model = 'models/weapons/w_pist_deagle.mdl' ITEM.WeaponClass = 'weapon_zm_revolver_perm' ITEM.SingleUse = false ITEM.AllowedUserGroups = { "owner" }

18th January 2017
by Windwhistle Go to last post
2 288
Help

solved Lerp

I'm trying to get my box to lerp smoothly when dismissing. This is very basic so I'm just trying to get lerp setup, then actually getting position setup. Anyway, lerp isn't working. Was wondering if someone could find what I'm doing wrong. (I've only...

18th January 2017
by Unknown Gamer Go to last post
6 277
Help

Name too long. string.len not working.

So I want it that if a players name is too long then cut it off and add some 3 dots. Right now this is my current code: local function drawName() local DrawName = LocalPlayer():Nick() or "" draw.DrawText(DrawName, "NameFont", 85, ScrH() - 90,...

18th January 2017
by Derek_SM Go to last post
9 294
Help

SetMaterial Issue

Right now I'm trying to use a custom icon for a darkrp HUD, but I can't seem to get the directory right or somthing. I'm completely stumped, I've tried to change the directory to a bunch of things. Here is my code: This is a shortened version of the...

17th January 2017
by [FSG] ToXiiC Go to last post
13 334
NSFW

NutScript - Doors and Vendors not saving?

I've been developing a lovely Nutscript server, and once I transferred from a local host to a dedicated host, things started getting complicated... I cannot be for sure, but after testing a lot of possibilities, I'm almost sure host is not letting...

17th January 2017
by orc Go to last post
1 237
Question

SWEP - How to have entity projectile report back hitgroup

If I have a SWEP that creates an entity as it's 'bullet' for want of a better word - how would I have this report back the HitGroup when it touches the player?

17th January 2017
by Semajnad Go to last post
3 183
Help

Need help with killicon!

Hi! The killicon doesn't appear on the screen, I have it installed the .vmt and .vtf in the right location. (the folder is called: choke_beta/weapons/forcechoke_beta so that shouldn't be a problem?) Any ideas? Code: if SERVER then // This is...

17th January 2017
by PIXX Go to last post
4 218
Help

ENT:OnTakeDamage does nothing?

Hello, humans. Here is my code: if redbase == nil then redbase = ents.Create ("prop_physics") end redbase:SetPos (Vector(-2070, -535, -465)) redbase:SetAngles (Angle(0, -90, 0)) redbase:SetModel ("models/props_interiors/VendingMachineSoda01a.mdl")...

17th January 2017
by MediCat Go to last post
4 198
Lua

Tryed using null entity error, even with isValid checks

Well, i'm having a really weird error over here. i'm trying to make a entity to use another entity ( like wire user for example ) the issue here is that it will always flag the entity as null. It doesnt matters which entity i use, since i've tryed doing...

17th January 2017
by locko1997 Go to last post
4 276
Lua

Derma Window

I am not seeking for help but rather someone who could invest some of his time showing me how to make this derma window for my nutscript server: I have basic knowledge of lua by watching almost all of Code Blues tutorials but I want to make...

17th January 2017
by MGFear Go to last post
9 385
Lua

util.BlastDamage: Props and Ragdolls

Hi. I script a Traitoritem. For now, with the script , A random player will explode. For this I used util.BlastDamage. Now I want to add Ragdolls (Corpses) and Props (Barrels etc.) to let them explode, too. Can I use for Ragdolls and Props...

17th January 2017
by Robotboy655 Go to last post
3 149
Lua

solved Bad Timers ?

Hey guys ! I have a pretty important question that could interest others. Do you know how i could find a bad timer ? Like a lua script or something ? Thanks ! :D Best regard,

17th January 2017
by JeanForet Go to last post
5 313