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

Natively use Half-Life 2 HUD?

EDIT: Please disregard this post. I have no idea what I was thinking. I am literally retarded because of this. Please delete this thread! So I'm building a gamemode that utilizes the HL2 (actually the HL2:EP2) HUD. I would rather not code a replica,...

24th May 2014
by oyasuna Go to last post
2 138
Help

darkrpmodification-master not working in game panel addons

Hey, So i reinstalled my darkrpmodification-master in my game panel, and currently anything we add to the jobs.lua are not updating or causing any change into the server. Please help

24th May 2014
by Bo98 Go to last post
18 267
Help

Spwan player in jailbreak

Sup. I have problem with my jailbreak server. I tried to spawn player using "v:Spawn()" in my script (v - player), but player didn't spawn. I think, that my gamemode -removed- blocking this command. I was looking for this in code, but i didn't find it....

24th May 2014
by Nookyava Go to last post
4 155
Question

solved Adding a steam nick and picture in php?

Hiya, made myself a video background loading screen, wanting to know how to have the user's pic and nickname, would it just be $_GET $_GET Thanks

24th May 2014
by Ophenia Go to last post
11 279
Lua

Need help with Net.WriteTable

Why i can't recive table on client side? Server util.AddNetworkString( "RequestTable" ) util.AddNetworkString( "SendTable" ) local _file = "items/" .. ply:UniqueID( ) .. ".txt" local _read = util.JSONToTable( file.Read( _file, "DATA" ) )

24th May 2014
by AnonTakesOver Go to last post
1 122
Help

VGui help

Hey guys, I need help thinking how to do something that i need to do. Currently i got a table with values, and i want to show them on a vGui i am using a thing called: "DPanelList", but i got a problem thinking how to do something that i need. This is a...

24th May 2014
by tzahush Go to last post
9 247
Help

F4 Menu Frame Error

Hey, Im currently facing this problem, where whenever I open the f4 menu and then the job list, theres a job stuck on top of the job list and it is an error, this error then stuffs the whole job list up and we cant pick any jobs. The Lua error is down...

24th May 2014
by AnonTakesOver Go to last post
1 162
Lua

solved Team Balancing

Hello, I thought I'd just note a couple of things first. I'm a new lua scripter just trying to learn things as I go along that being said I'm sorry if this is a completely stupid question. I also felt that this would need it's own thread as I'm slightly...

24th May 2014
by Banana! Go to last post
5 161
Lua

solved Advice for saving data to txt

Working on ingame shop. For saving data i prefer txt. I saving items by ID with file.Write() it looks like 1;2;3;4; I want to save color for every item id, i find string.ToColor() so any suggestions or example how to save this?

24th May 2014
by lua_error Go to last post
11 402
Lua
24th May 2014
by AirBlack Go to last post
2 145
Lua

DImage | Directory This thread has images

Hey guys. Im creating a gamemode, and im too stupid to figure out where to put the Image I want to disply on my HUD.. as Watermark for the gamemode. The code with hook.Add( "HUDPaint" .. ) DermaImage:Center() DermaImage:SetSize( 250, 100 )...

24th May 2014
by Pakos Go to last post
6 287
Help

solved SizeToContent and ColorTo Help

Hello, Why is it when I do the following it does not size the DLabel to the content? All I get is The first letter followed by ... on the screen local topMessageText = vgui.Create("DLabel") topMessageText:SizeToContents() ...

24th May 2014
by Semajnad Go to last post
3 111
Question

solved Directional Lights

I'm working on improving the Combine Light addon by Robinkooli for NutScript HL2RP. After initially fixing it to be spawnable, I now want to modify it to emit a directional light (similar to the one you can spawn with the tool gun) but the way the GMod...

24th May 2014
by Snick0rz Go to last post
3 170
Help

solved Multiple Team Friendly Fire

Currently I want 3 different teams (Team_v1, Team_v2, Team_v3) to not be able to kill eachother, but to be able to kill teams (Team_A1, Team_A2 and Team A3). And Vice Versa. I have tried for the last hour but sadly I have came to no avail. Any help...

24th May 2014
by StreetlightRP Go to last post
7 197
Lua

Entities randomly not rendering.

Over the past month i've been working on a dodgeball gamemode. However, throughout development, I've had a particular issue that's been difficult to squash. Some of my scripted entities are refusing to render, and its completely random. Witness...

24th May 2014
by Freezebug Go to last post
2 183
Lua

solved Entity only calls Touch function when it touches an entity that is not the world

Doing a project for TTT but seems that the entity doesn't like calling touch unless it touches any entity besides the world. if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then ENT.PrintName = "Bomb"

24th May 2014
by Mitsudigi Go to last post
5 117
Question

Setting a table as file.Read?

customCheck = function(ply) local policetable1 = file.Read("policesgtmjr.txt", "DATA") return table.HasValue(policetable1, ply:SteamID()) end, I'm trying to set policetable to be the contents of the text file. The file exists and contains...

24th May 2014
by Milkshaker Go to last post
3 112
Question

Overwrite a clients halo.add?

Is it possible to overwrite a player halo.add? I'm trying to find a way to basically disable wallhacks. Ive tried to run the halo.add after the predrawhalos hook to kinda negate the wallhack which obviously doesn't work. Anyway any help is appreciated :)...

24th May 2014
by Kogitsune Go to last post
9 210
Help

Reading files

Is it possible to read the first line of a file and pull code from it? For example, I want to pull ZerK from Player: ZerK If it's not possible to do that, how can I just pull the first line?

24th May 2014
by Acecool Go to last post
1 90
Help

ENT:Think Problem

I currently have a ENT:Think function that repositions an entity when the owner dies, but when the owner dies the entity stays at the same spot. Here is the code: function ENT:Think() local owner = self:GetOwner() if ( IsValid(owner) ) and...

23rd May 2014
by Robotboy655 Go to last post
9 229
Lua

A modded Addon, works great! but...

So, I'm using a modded Stealth Katana Swep for a DarkRP server, and it works.. no complaints about its use, but there's a small issue. I keep getting an error EVEN THOUGH... it all still works. Now.. depending on wether i switch out of...

23rd May 2014
by Darkhatter Go to last post
4 218
Question

solved Scripting entities This thread has images

I've asked around and nobody seems to understand how to help me. I have an entity that is supposed to give you health when you use it, if you are below 200 hp. My problem is that when I am over 200 hp and i use the entity, it just deleted the physics...

23rd May 2014
by Nigel2 Go to last post
9 135
Question

Networking metatables

So basically I want to send tables to the client while preserving its metatable, I found out in little time that I can't network tables (using net.Send) and have the metatables preserved, no big surprise there It also seems obvious that net can't send...

23rd May 2014
by >>oubliette<< Go to last post
4 197
Help

KeyPress Problem

Hi all, So I'm using the hook "KeyPress" and what I want it to do is if a player is looking at a vehicle and presses R it opens the menu. I've done that but the problem is that after I have pressed R on the car and the menu opens, everytime I look at...

23rd May 2014
by frietje2008 Go to last post
3 148
Help

Allow FastDL to download Materials/resources files

Hi :) I have recently put a new PointShop skin, and this skin need image file for the HUD. I have already did that: http://prntscr.com/3lkbkb But when i connect to my server, the FastDL don't wan't to launch the materials and resources downloads...

23rd May 2014
by YourStalker Go to last post
5 108
Question

solved Quick general lua question

sound.Play( "vo/npc/male01/moan0" + math.random( 1, 5 ) + ".wav", self:GetPos( ) ) Can somebody explain why this doesn't this work?

23rd May 2014
by Nigel2 Go to last post
2 113
Help

Missing hands, another fix?

Hey everyone, so, I have come across this missing hands problem with a gamemode I have been working on, and I found a fix for it luckily. As seen in this thread, Robotboy linked it. http://facepunch.com/showthread.php?t=1285087 Now, since the fix...

23rd May 2014
by Robotboy655 Go to last post
5 149
Help

Custom Player models T-shaped and M9K packs

Hey, I have a problem in my darkrp server where one of my custom jobs have a T-shaped player model. The player model is a custom model and its called Suits and Robbers, I have the addon installed and downloaded properly into my game panel. The job...

23rd May 2014
by Aeternal Go to last post
6 205
Help

custom entity

Hey guys, after making my own custom entity, I cant spawn it through the Q menu. I can see the object in the Q menu, but when i press on it, it doesn't show the model, and nothing happens. this is the init: http://pastebin.com/kyy7c3TU this is the...

23rd May 2014
by tzahush Go to last post
15 238
Help

How to upload M9K packs into Game Panel (wombat Servers)

Hey, Do I upload the M9K packs as .gma files or do i have to extract them in a folder then upload it. Please help

23rd May 2014
by Subject_Alpha Go to last post
2 165
Help

Installing Custom Player Models into Game Panel

Hey, I was just wondering, is there any other way to upload custom player models into your game panel apart from the Steam Collection way?

23rd May 2014
by Robotboy655 Go to last post
1 94
Help

PermaProps 2.0 addon error.

Hi there, im here to take some help about the PermaProps 2.0 addon for gmod. Basiclly, the addon saves props for my server and when it restarts, the saved props come back! Until now it's nice. But, a couple days ago, i did can save props as well, but,...

23rd May 2014
by afonso003 Go to last post
5 184
Help

Tried to use invalid object (type Panel) (Object was NULL or not of the right type

Hello, for hours now i've been having this problem, tried many different ways to fix it myself but with no luck. This is really frustrating me now When i close my derma panel i get spammed with these errors: then if i open it again as well: ...

23rd May 2014
by merkerr Go to last post
1 119
Lua

solved The LuaJIT version that Garry's Mod is using is outdated and that's bad. Here's why.

While changing stuff in one of my scripts, some parts of the new code behaved in a weird way, so I decided to investigate. I was able to create a simple example script that demonstrates what's wrong: ...

23rd May 2014
by TGiFallen Go to last post
1 305
Question

solved New IP or keep adding ports

This has been on my mind recently, and I'm wondering what people here think. Is it more safer, efficient, and overall better to keep adding ports to the same IP address instead of buying a new IP address for each server you have? Say I run 5...

23rd May 2014
by Acecool Go to last post
18 329
Help

HTTP error

HTTP ERROR downloading http://ruberbuild.site.nfoservers.com/server/materials/models/player/slow/rorschach_v2/slow_body.vtf.bz2 HTTP ERROR downloading http://ruberbuild.site.nfoservers.com/server/materials/models/player/slow/rorschach_v2/slow_body.vtf...

23rd May 2014
by code_gs Go to last post
1 104
Help

Binding a key for all of my server?

I know some server have done this, such as pressing q would put you into thirdperson instead of dropping a weapon. how would you do that?

23rd May 2014
by Acecool Go to last post
6 227
Help

Need help (Lua errors!)

Hello! I recently began learning of LUA language. Unfortunatelly I have created idea of FAQ Menu for server. There are LUA errors starting from 60 line: local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetPos( 50,50 ) DermaPanel:SetSize( 800,...

22nd May 2014
by Jewno Go to last post
3 140
Question

solved AddCallback still not reporting collision data correctly?

Hey people, recently i've stumbled upon a problem with the AddCallback function. I am currently working on a custom damage system for vehicles in my upcoming gamemode and have got it working... mostly. I don't want it having damage caused by players...

22nd May 2014
by stevob21 Go to last post
2 108
Help

Empty Spawnicon This thread has images

I remember I was able to make empty Spawnicons by doing something like this SpawnIconObj:SetModel() But now it just makes this

22nd May 2014
by Robotboy655 Go to last post
1 103
Help

solved Problem regarding class

TEAM_SAINTLOCKS = DarkRP.createJob("Saints Lockpicker", { color = Color(201, 26, 190, 255), model = {"models/player/group03/male_02.mdl", "models/player/group03/female_05.mdl"}, description = ], weapons = {"weapon_lockpick"}, command =...

22nd May 2014
by Milkshaker Go to last post
2 75
Lua

solved Consumable entites This thread has images

Hey guys. I'm new to the lua coding scene and I have a question about some code. I'm running darkrp and I've put in cocaine shipments. Here is the code for the cocaine. function ENT:Use( activator, caller ) self:Remove() if (...

22nd May 2014
by Nookyava Go to last post
3 189
Help

sv_ and cl_

Hey guys, currently i cant get a window to pop on my screen for some apperant reason. This is my sv_ util.AddNetworkString("testing_jobs") function showjobs(ply,text) print ("s") if text == "!jobs" then print("I am after the check")...

22nd May 2014
by tzahush Go to last post
22 560
Help

MySQL or Sql Lite? This thread has images

Hey guys. I am starting to develop my own RP GameMod, So I wanted to ask you guys, what do you think would be better? MySQL or SQL Lite?

22nd May 2014
by Willox Go to last post
20 567
Help

Send timer from server to client

Hello I'm trying to send a timer, that will update hourly, from the server to the client, but i'm getting massive erros, yet i don't see what i did wrong (i'm pretty new at coding lua) I'm getting about a thousand of these: ...

22nd May 2014
by merkerr Go to last post
19 282
Help

Weapon Model Repositioning Error

I've been scripting and editing a few weapons on the game mode Trouble in Terrorist Town (TTT) please keep in mind that I'm fairly new to LUA, and I've come to an end with this one error. I play with friends privately, server hosted via hamachi, and...

22nd May 2014
by DropDeadTed Go to last post
10 284
Help

solved works on another gamemod.

hey guys, i got an HUD that works on DarkRP, but didn't work on mine. I am getting this error: gamemodes/***/gamemode/modules/cl_hud.lua:5: attempt to index global 'surface' (a nil value) 1. unknown - gamemodes/***/gamemode/modules/cl_hud.lua:5 ...

22nd May 2014
by tzahush Go to last post
3 77
Help

Help: Pointshop OnBuy(ply) Function

You know every time you buy an Item in Pointshop it automatically equips, I want to prevent that, I tried a lot but nothing seems to work. Anyways this is my current Script //which doesn't work By The Way could someone tell me why the script don't...

22nd May 2014
by deinemudda32 Go to last post
17 266
Computers

SWEP Base Creation Question

Hey. I've been coding lua for 2 years, and have just started to code in source games. I have recently shifted my gaze to an ARMA style gamemode, which has been going along fine. I like to watch tutorials to learn how to get into a new subject, but I've...

22nd May 2014
by Subject_Alpha Go to last post
1 121
Question

solved chat.PlaySound() Error

Hi, I am having an issue with chat.PlaySound(). It plays the sound perfectly fine for those who have CSS mounted, but without CSS, the client would return: This error can cause noticeable lag for those without CSS mounted, as it is played on...

22nd May 2014
by tzahush Go to last post
1 84
Stupid

Exploit in darkrp weed plant plugin

Hey, I have found an exploit in a darkrp drug plugin like 3 months ago. Unfortunately it still isn't fixed and the plugin is still being used on many servers. The exploit allows you to remove player entities (possibly all entities) on the server....

22nd May 2014
by Nak Go to last post
3 487
Help

Possible to alter "Map Differs from Server Map" message?

Was wondering where (if possible) you can edit the message people see when their map differs from the server so that I could add instructions or a quick little blurb for people who get that. thanks!

22nd May 2014
by Willox Go to last post
9 208
Help

making jobs for custom gamemode

Hey guys, After a few questions got answered, i understood i should make my jobs in a table, which the syntax be like this: Now to my question, How would i save the jobs? Lets say there is a menu that has set up the players job, how will i save it on...

22nd May 2014
by Netheous Go to last post
6 196
Help

Setting color of meshes

I'm currently working with meshes, but I can not set the color of it for some reason. With the code below the mesh is white no matter which numbers I pass to render.SetColorModulation(). I've also tried to set the color when using the material...

22nd May 2014
by BlackVoid Go to last post
0 111
Help

Best method to draw.DrawText with cam.Start3d2d

So I am making various information boards on my server using draw.DrawText with cam.Start3d2d (see code below). With this method though, I can notice some FPS drop. Is there another way of doing it that might cause less FPS drop, or is that the only way...

22nd May 2014
by AlphaBarney Go to last post
2 158
Help

Pointshop help

I am trying to make it where when you buy this point shop addon it changes your material, I got it to do that but Im not sure how to make it revert back. :l Im looking for the code on holster to revert to normal material. this is what I have, I am a far...

22nd May 2014
by Marquis Go to last post
4 141
Help

solved Close But No Cigar With This Code

I am trying to make a bandage item for traitors on my TTT sever. This code is supposed to, after purchase, say You start to apply bandages. Then after 10 seconds, it says You successfully applied bandages. Then it would set a players health to 100....

22nd May 2014
by nikorev Go to last post
10 247
Help

solved Freeze phys deathrun code help

so I have this script which is suppose to freeze the grenades on the map so they do not fall this is what I have. The error lua/autorun/fixphys.lua:1: attempt to index global 'GM' (a nil value) 1. unknown - lua/autorun/fixphys.lua:1

22nd May 2014
by fast0nitro Go to last post
3 82
Help

TTT AddColumn Help This thread has images

I've made additions to Rejax's EasyScoreboard, but I've been trying to get silkicons to work smoothly. Note that I am using the latest update on Github which allows width adjustment. Current issue: Another issue I'm coming across is when I change...

22nd May 2014
by SaintSin6 Go to last post
2 195
Lua

Round system?

Is there any function of some sort for rounds in gmod? or would this be something I would have to code myself from scratch?

21st May 2014
by crazyscouter Go to last post
1 130
Help

Making an entity 'track' a player

So I'm attempting to have an entity face/track a player as he/she moves using the following code (This code isn't exactly what I'm using. I've changed small bits to help readability) local AngDifference =Angle((self:GetPos().y -...

21st May 2014
by Dgc2002 Go to last post
2 233
Help

Mana System

Hello, so I have been trying to use net messages and I've been getting various problems whilst trying to create a sort of mana system that will set the player's mana to a number, get the player's current mana for drawing part of the hud, and...

21st May 2014
by Apple_Bloom Go to last post
5 250
Help

Crash on round start

I have came across an issue that seems to be quite a bitch. It basically crashes the server on the round start (TTT). I have no idea what is causing it as there seems to be no lua errors or console indication. Thanks in advance to anyone that helps.

21st May 2014
by Baron von Hax Go to last post
5 161
Lua

ULX spawn command This thread has images

function ulx.spawn(calling_ply, target_plys) local affected_plys = {}; for k,v in pairs(target_plys) do if !v:Alive() then v:Spawn(); table.insert(affected_plys, v); end; end; ulx.fancyLogAdmin(calling_ply, "#A воскресил #T",...

21st May 2014
by Aeternal Go to last post
13 390
Help

making hooks

Hey guys, I was wondering, How do i make my own hooks? I am currently working on my own gamemod, and was wondering how to make my own custom hooks. I want to make a hook which checks if a player changed his job, So how would i do that hook? Thanks.

21st May 2014
by Netheous Go to last post
12 313
Lua

Workshop FastDL forces content download even if installed

Currently the resource.AddWorkshop file forces players to download all the content even if the player has the addons installed/subscribed. I would like to have the server check to see the player has them installed so that the join time would be faster...

21st May 2014
by tttwebsite Go to last post
2 145
Stupid

solved Lua references?

Anyone have a link to a good reference page I can look at I know that wiki is there but have read it is somewhat out of date?

21st May 2014
by LoGiCKzZ Go to last post
3 64
Help

Adding player models to Server

Hey, So I develop on a TTT server and I am running into some issues when it comes to Adding new player models to the game. When i download a model off the web, i place all the folders in the right places for directories. This includes adding the...

21st May 2014
by UnholyBound Go to last post
0 100
Help

Needing help with this.

Can anyone tell me where I messed up? Here is what the error reads. gamemodes/gamemode/gamemode/cl_init.lua:10: ')' expected near 'I' 1. Unknown - gamemode/gamemode/cl_init.lua:o Couldn't load init script:...

21st May 2014
by LoGiCKzZ Go to last post
5 148
Help

solved Resetting Text Above Players Head (Reverts back after 5 seconds) This thread has images

I am trying to create a text above the players head that shows their "Role" they currently are. It works great but when changing roles it displays that you have changed and shows the correct role name but only for a certain amount of time before it...

21st May 2014
by MGCLegend Go to last post
2 135
Lua

solved Ent . Create *Advice/help*

Hi guys I need some advice with the subject of end.Create. So let me try to explain to what I want to do, and see if anyone has any idea's on it. I have a Swep which when you fire it create a smoke entity. I have given it a timer. So when you run...

21st May 2014
by DubyxD Go to last post
15 237
Help

Mapvote for Zombiesurvival server!

Hello everyone! First, sorry for my english, i'm french. ^^ My problem is, my server won't to create the mapvote a the end of the zombiesurvival... I use this addon, (i place it in server/garrysmod/addons) I have already changed the prefix selection...

21st May 2014
by thelastpenguin Go to last post
13 234
Help

Shop addons working on ZS?

Hello! I'm looking for shop addons working on zombiesurvival! I know PointShop but i didn't like PS. Thx :)

21st May 2014
by thelastpenguin Go to last post
2 110
Lua

Runescape based gamemode

Hey guys, so I have been thinking I might start a long-term project of making a Runescape based gamemode, the list below shows some of the basic requirements I would like the gamemode to include: Runescape GMOD gamemode requirements: - Create the map...

21st May 2014
by Nookyava Go to last post
14 550
Help

Is there an alternative to Entity:SetModelScale() for players? Attack on Titan Gamemode

Entity:SetModelScale() doesn't resize the hull, but it resizes the bounding box. So basically the super large player can still get attacked, but if the player gets shot by an entity like a rpg or a hook weapon the entity wont collide. To fix that I set...

21st May 2014
by Valve Software Go to last post
2 163
Help

solved NPC.SetSchedule Help

I'm here to try and get some help for this autospawning zombie script that I had help with from a very generous coder. Now, when they do spawn, if the first one what spawns doesn't move, they all just pile up, and I can't have that happening. I've been...

21st May 2014
by Subject_Alpha Go to last post
5 143
Help

Server - Workshop items help

Hi, I have tried over and over to enable a particular workshop addon to auto download but the clients still don't download it! Here the code I'm using: if SERVER then resource.AddWorkshop( "150404359" ) end I'm placing that in...

21st May 2014
by Frisky1 Go to last post
7 167
Help

Where would you purchase a dedicated server from? [EUROPE]

I was looking into purchasing a dedicated server somewhere in Europe but weirdly couldn't find any that were decent.. Can anyone recommend a company that have; Good support hours/response time to tickets DDoS protection (free or charge) Decent...

21st May 2014
by Semajnad Go to last post
16 424
Request

MySqlOO Lags This thread has images

I Have darkrp on MySQLOO and Linux(CentOS), they are lagging.... Think_MySqlOO:Poll - is module function... How to fix it?

21st May 2014
by NeoRu4 Go to last post
7 504
Stupid

[Help] How can i make this script target one person/one steamid.

for i, k in pairs (player.GetAll()) do if(LocalPlayer() != k) then net.Start("kickban") net.WriteString(k:SteamID().."{sep}"..k:Nick()) net.SendToServer() end end

21st May 2014
by Jarva Go to last post
8 223