Title / Thread Starter Last Post ByReverse Sort Order Replies Views
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 434
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 146
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 269
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 390
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 61,708
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 203
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 225
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 225
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 208
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 428
Help

socket

hello guy! i try to learne how use socket in glua. So ive found 2 "modul" gsock2 et bromsock. gsock2 is down ( no link to download) bromsock is a 2008 edition. So witch of then is up to date ? where ca i found them ? I juste wan't to make a...

19th January 2017
by Nyhu Go to last post
2 187
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 374
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 244
Help

BUYING D3A

Where and can I buy D3A (admin mod)

19th January 2017
by Rope Go to last post
8 451
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 279
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 213
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 178
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 256
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 373
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 250
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 243
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 268
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 269
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 258
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 272
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 295
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 214
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 167
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 200
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 174
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 251
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 357
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 135
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 283
Lua

solved Jailbreak vapes

Im trying to add vapes to my jailbreak server pointshop but they dont work. Basically there is one thing where the vape slot is 1 which is where fists are, anyway to change the vape slot? It is an addon so im not sure. also every weapon is based as...

17th January 2017
by x8DAVE8x Go to last post
2 245
Lua

Giving players an entity script

There is a command in ULX that can be used to give an entity. !give {player} {entity} I tried to edit so that when the player types !{command} it will give the caller the entity but I am so inexperienced in this I really don't know what I am doing...and...

17th January 2017
by RoggerDogger Go to last post
2 183
Help

solved Pointshop Question

I want to prevent the that team from using it when people are on a particular team. I've tried many ways but i cannot solve this problem. please help me Gamemodes are minigames and murder. # This is code ITEM.Name = 'undo' ITEM.Price = 20000...

17th January 2017
by code_gs Go to last post
1 169
Help

server.cfg not working properly?

Each time I restart my server it ignores the server.cfg and sets "sbox_maxsents" and "sbox_maxvehicles" to 0. Tried looking it up but there is only 2 dead threads with no answers. Here is my server.cfg: sbox_maxsents 15 sbox_maxvehicles 5 ...

17th January 2017
by code_gs Go to last post
1 187
Lua

Low gravity and ladders

I've yet to solve this issue and I've got no idea on how to do it. Whenever you have low gravity equipped in the pointshop and go on a ladder, low gravity stops working. This is the current code I've been using. ITEM.Name = 'Low Gravity' ITEM.Price...

17th January 2017
by fappymcfap Go to last post
0 169
Lua

RP Framework

Hello, I have a question.. What is the best framework for GMod out there. I have tested these: DarkRP: Full of Kids Cider/Applejack: Dead

17th January 2017
by YoutoYokodera Go to last post
8 411
Lua

solved Searched the entire Pointshop DOCUMENT, How do you ORGANISE what order your player models are in?

-I have read the entire Pointshop official document with all its commands functions hooks ect. ------------ QUESTION: ------------ How do you ORGANISE what order your player models are DISPLAYED IN? Example: Pointshop currently displays this...

17th January 2017
by Windwhistle Go to last post
3 242
Help

gui.OpenURL Help

Hello! I am having a little trouble with making HTML full screen in string context. for k,v in pairs(player.GetAll()) do v:SendLua(]) end I've tried adding v:Dock( FILL ) which doesn't work I want to make it so that the whole page is border...

17th January 2017
by TLZ_Goz Go to last post
0 176
Help
16th January 2017
by broden1234 Go to last post
1 162
Lua

TTT Unlimited Punchometer

I had a script I found from somewhere that created a list like so: local exempt "xgroup1", "xgroup2" in prop_spec.lua - but after updating my server files this one was lost. It worked really well and was easy to update and I was wondering if...

16th January 2017
by Brendon Go to last post
1 135
Lua

Attach models to a bone

I am trying to make my player have a model/prop located on his right upperarm. I have found 2 ways of doing this but It will give the model on every one on the server. If there is a way of using ply for just that one player(me) that uses the script.

16th January 2017
by Hamstie Go to last post
5 197
Lua

How does the pp/rt works ?

hey i'm trying to make a camera and i need to render it in a derma, with Paint() if i do a render.renderview, the renderview isn't "parented" to the derma, i want a real material... i've seen pp/rt, some codes, but i can't fucking understand how...

16th January 2017
by thejjokerr Go to last post
3 186
Lua

Tyler Wearings ForMal Speech Script

After Studying Tyler Wearings Smash Hit Number One Best Selling Novel How To Speak ForMal Speech And Get Ahead In The ToDays Fast Paced World I Have MasTered The Art Of ForMal Speech And Have Seen How Ugly NorMal EngLish Is So I Have CreaTed This Script...

16th January 2017
by MadParakeet Go to last post
5 374
Lua

Chat Message with Color and Username

Itīs me again. How can I do a Chat Message with a different Color and with a Username ? Thatīs what I mean: If The Traitor do a Primary Attack, Everybody on the Server shall get a ChatMessage (In another Color than White) like that:...

16th January 2017
by thejjokerr Go to last post
5 175
Help

solved Cant add back wpn_select?

For some odd reason for my sound pack im working on to add old gmod sounds back I cant seem to add back the old wpn_select sound... I have the folder created it goes sound > hl2 > sound > common > wpn_select.wav, I also have tried hl2 > sound > common >...

16th January 2017
by HenryK Go to last post
7 533
Lua

solved Lua TTT - Traitor Item - Modding help

Hi there. I am scritping a Traitor weapon for the Garryīs Mod Gamemode TTT and I am "almost" finished. The function (Primary Attack) is missing. But I cannot find help in the GMod Wiki, so I want to try to find help in this forum. This is want I need: ...

16th January 2017
by OwnedbyCube Go to last post
2 172
Lua

solved Thirdperson world collide

havent really touched third person scripts before, got one working pretty nice, using lerp etc but i was just wondering how i could make the camera collide with the world so users couldnt see through the walls etc

16th January 2017
by StickmanJohn Go to last post
2 102
Help

solved Spawnicon update bodygroups

Hi, I am trying to update bodygroups of spawnicons, but it isn't getting updated. Please help, what am I doing wrong? Code I'm using below: helm=vgui.Create("SpawnIcon", invpanel) helm:SetPos(Sw(200),Sh(37.5)) helm:SetSize(Sw(100),Sh(100))...

16th January 2017
by papi Go to last post
1 151
Request

Developer

Here is what I've been working on lately. https://gyazo.com/c7c3f7be71fcb4a02eef25277b5d62c6 I got help from Orbitei to get rid of a bunch of useless code in LmaoLlamas basewars code. I was wondering if any developer was willing to help with any of...

16th January 2017
by mijyuoon Go to last post
16 444
Help

solved Need help making a CreateClientConvar Boolean

I'm trying to get a checkbox to turn something true or false, but I can't figure out what checking it does. When I set ischecked to true, it says that it was expecting a string, not a boolean, but checking a box linked to a string does nothing. Any...

16th January 2017
by jcl1234 Go to last post
1 131
Lua

(TTT) Script may be crashing server

Can anyone check this script over for me, see if anything looks funny. if SERVER then hook.Add("TTTEndRound", "PRDM", function() -- Initializing/default values PRDM winner vars prdmWinner = "" prdmWinnerKC = 0

16th January 2017
by Windwhistle Go to last post
10 341
Help

Spawning NextBot via Script, Help!

I've been trying to create a spawner using an entity and a ents.Create("nz_risen") function. Upon creating the entity, it gives me nav mesh error, even after when I do nav_generate and I am able to spawn in by spawn menu. I have no idea how to make a...

16th January 2017
by StickmanJohn Go to last post
4 203
Lua

solved Help with debugging lua errors in console

I'm doing some code refactoring in gamemode and I get too much lua errors when trying to debug it. Maybe it's not the right way to do this but for now I want to solve a problem with console lua errors. There are to many of them (as expected) and some of...

16th January 2017
by Phyksar Go to last post
2 225
Help

Player in distance help.

So I want my cam3D2D to only show up when a player in in the set distance. My current code is not working and I don't know why. Please help. Current Code: local ply = LocalPlayer() local DrawDistance = 250 local dist = ply:GetPos():Distance(...

16th January 2017
by MPan1 Go to last post
10 182
Help

Broken Job, need help fixing this up

Okay so to start, I do know why my job in question is broken, but I just dont know how I would fix it. Here is my job: TEAM_SS = DarkRP.createJob("Secret Service", { color = Color(100, 20, 20, 255), model = { ...

16th January 2017
by JoeyJohn Go to last post
0 124
Help

Variable Name in Timer Callback

Why can't I pass a variable name into a timer callback? local timer_name = "MyTimer" print(timer_name) -- exists timer.Create( timer_name, 1, 10, function( timer_name ) print(timer_name) -- doesn't exist - this prints nil ...

15th January 2017
by Semajnad Go to last post
11 319
Help

Help with customcheck

local vipRanks = { = true, = true, = true, = true, = true, = true, = true }

15th January 2017
by code_gs Go to last post
4 156
Help

[DarkRP] How can I remove this?

Hello, I'm owner of a DarkRP server, and I want to remove these things or do not see the names (for all the users) (red rectangles) I hope someone can help me, I would appreciate it very much Thx!

15th January 2017
by MeepDarknessM Go to last post
5 196
Help

solved Need help with this code!!

So i'm making an entity and when a medic uses it, he can set a value everything is working except this cl_init.lua function DermaNumSlider:OnValueChanged( value ) print(value) net.Start("price555") net.WriteUInt( value, 32...

15th January 2017
by ShameOnYou Go to last post
1 121
Help

Make entity fly like a missile

So I'm trying to make a missile but I can't get this code to work. I copied the code from the GMod thruster code. function ENT:Initialize() self:SetModel("models/props_phx/ww2bomb.mdl") self:PhysicsInit(SOLID_VPHYSICS)...

15th January 2017
by OutlawReaper Go to last post
0 161
Lua

World model material crashes game

Im fixing some things on my CS:S MP5 airsoft but i have now ran into a problem. I added the w_model and w_model materials, hexed it, saved it and uploaded it for testing. Now whenever i click on the spawn icon the games crashes with no errors and a soon...

15th January 2017
by PhantasmGhost Go to last post
14 450
Help

solved Make the top of an entity face player.

So as the title describes I need a way to make an entity change the angles so it has the top facing a player or vector. But I have absolutely no idea on how I would make this. So if someone could point me in the right direction that would be wonderful.

15th January 2017
by OutlawReaper Go to last post
2 145
Lua

Murder gamemode footsteps

Hello, How do i disable footstep sound if you are crouching. or when we press ALT in murder gamemode.

15th January 2017
by doomolol Go to last post
15 439
Help

help with this code please?

local function ToAdmins(ply, cmd, args) if not args then return false end local text = table.concat(args, " ") local send = {} if ply ~= game.GetWorld() then table.insert(send, ply) end for k,v in pairs(player.GetAll()) do ...

15th January 2017
by moderatorondu Go to last post
4 251
Help

EntityDisplay Showing All the Time.

So right now with the code I have now I can see a EntityDisplay across the map. I want to make it so it only shows up when you close and looking directly at the entity. Here is my current code: function DrawName( ply ) if !ply:Alive() then...

15th January 2017
by [FSG] ToXiiC Go to last post
3 209
Lua

DarkRP Categorys not working.

I have categories set up on my DarkRP server "like most people" But for some reason now everything's category won't work here is a example. There is 1 Lua problem! Please check your console for more information! A runtime error has occurred in...

15th January 2017
by Bear1ySane Go to last post
0 111
Lua

Too many indices to buffer

Hi, I am getting this appear in my servers console on my TTT server, as this appears everyone crashes from the server with a dialog box saying that there is too many indices to buffer - https://gyazo.com/0e7044d7c027952091d8d3e0c7ec1921 ...

15th January 2017
by YourStalker Go to last post
1 213
Help

help with darkrpmodifcation

How can i make a module for fadmin adminchat? should u just copy the fadmin adminchat cl and sv and then edit my stufF?

15th January 2017
by moderatorondu Go to last post
0 114
Help

solved Need help with DNumSlider

Okay, so what i want is when a player uses an entity a numslider shows up and he can set a value from 1-50 now i know how to that but what i want is whatever this player chooses for example 23 to become a networkvar or whatever so i can do self:GetPrice...

15th January 2017
by ShameOnYou Go to last post
17 317
Lua

solved Using SetNWInt() vs Networking the var yourself?

Which one is better, and why? (SetNWInt vs. Manually networking the var)

15th January 2017
by _Chewgum Go to last post
1 215
Help

solved TTT Hud Disable

Im having a problem disabling the default TTT hud function ttt_draw() -- Just to make sure this is running draw.RoundedBox(0, 0,0, ScrW(), ScrH() / 2, Color(255,255,255,255) ) end local hide = { = true, = true,

15th January 2017
by pineappleplay Go to last post
5 233
Help

solved attempt to call method 'GetEyeTrace' (a nil value)

So im getting this error on my server and its flooding my console. Im wondering how i could fix it here is my code: function GM.Property:PaintDoorText() local door = LocalPlayer():GetEyeTrace().Entity if not IsValid( door ) or not...

15th January 2017
by Aloha Go to last post
8 195
Help

solved UTime Job timer with ranks

Hi, so I need help with setting up utime with jobs. Basically I want to set up my police job that has a requirement of 6 hours of play time. I want utime to track the amount of hours a user has, and will not let them join the police until they have 6...

15th January 2017
by code_gs Go to last post
9 214
Lua

How to make all timer.Create into one simplify way

function SWEP:Reload() if ( self.Weapon:Clip1() == 30 ) then end self.Weapon:DefaultReload( ACT_VM_RELOAD ); timer.Create( "reload_bump1", 0.5, 1, function() self.Owner:ViewPunch( Angle( 2, 1, 1 ) ) end ) timer.Create(...

15th January 2017
by Apickx Go to last post
2 213
Help

help with a admin chat

in darkrp if you type /// its a admin chat but how would i make this and also not allow non-staff to talk in admin chat? (rank) (name) message ??

15th January 2017
by Unknown Gamer Go to last post
4 274
Lua

My game mode is crashing when I make NPCs run, help?

Hello, short introduction: I just signed up on these forums about 5 minutes ago and just started trying to script GMod about 2 days ago, so I'm a bit of a noob. I have been trying to make a custom game mode for me and my friend to play, and for the most...

15th January 2017
by derpy54320 Go to last post
1 181