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

Adding playermodels

Hi I am trying to add playermodels to f2s stronghold and I am a bit stuck, here is a small amount of code to add playermodels: = "models/player/us_01.mdl", = "models/player/alyx.mdl", the alyx model has a model, but the bf4 one is an error,...

30th August 2015
by Mattymoo14211 Go to last post
0 92
Help

How to set default scale for custom jobs on darkrp

How to set default scale for custom jobs on darkrp, I dont want to do it manually and have them spawn with a 1.2 scale in the custom job script im assuming it would be ply:setscale(1.2)

SMBAHB 1 people are reading this thread x 1
30th August 2015
by JasonMan34 Go to last post
1 862
Lua

EML error

--] DarkRP.createEntity( "Printer Coolant Cell", { ent = "k_coolant_cell", model = "models/items/battery.mdl", price = 500, max = 3, cmd = "buycoolant", })

30th August 2015
by DaRkWoRlD1337 Go to last post
7 516
Lua

solved SWEP Construction Kit Issues

So I've been trying to make some view models using the SWEP construction kit, and it's bee working well, except for one thing. Only the bones of the viewmodel I made are manipulated, the models/sprites/quads that I add do not draw. Here is my code:...

30th August 2015
by Fortune11709 Go to last post
3 298
Shitpost

solved Difference between SetNW* or net.Broadcast?

Hi, what is best way to inform all players? E.G.: We have 40 players and 2 from them are Infected?

30th August 2015
by Z0mb1n3 Go to last post
2 231
Help

[EXPLOIT] New crash exploit ( 2 3 4 5 Last )

At the moment, one of my servers is being targeted by an exploit that I haven't seen before. It appears to be some sort of engine exploit, where a player is joining the server and the server crashes before they even spawn in, not related to tools or...

30th August 2015
by NiandraLades Go to last post
179 14,971
Help

simple entity esp

Hi, SO this has something thats got me confused lol I decided to make a simple entity esp, very easy thing to do as you all know. Get all entities in some sort of loop, Find the ones you want and draw them above the entity using...

30th August 2015
by serverwatch Go to last post
2 264
Question

Find Friends of Player

I've seen some admin addons that let you use a command such as !friends and it lists all friends the player has that are currently logged onto the server. I've seen Player:GetFriendStatus() however it's only clientside. So is this done by sending a...

30th August 2015
by Semajnad Go to last post
2 221
Lua

How to check what job a player is?

So i have a menu for police, but i want it to only open if your police etc? How would i do this?

30th August 2015
by geferon Go to last post
7 205
Help

solved Strange download problem with resource.AddFile

Hi, I am using resource.AddFile to make a client download a few files using this script: local resourceFiles = { "resource/fonts/OpenSans-Regular.ttf", "resource/fonts/Oswald-Regular.ttf", "materials/f4_logo.png",...

30th August 2015
by YaYaBinks3 Go to last post
8 178
Lua

Effects/Overlays Question

Hey guys, My question is how can I make an effect/overlay similiar to jarate's on TF2 so I can use it on DrawMaterialOverlay By the way, for those who don't know jarate here it is: https://youtu.be/lQoiE-hfqFY?t=1m32s (The effect is in the last 3/4...

30th August 2015
by Wob wob wob! Go to last post
1 123
Help

solved Chair Launcher Problems

When I start GMod on Singleplayer, I get this error: addons/chairlauncher/lua/weapons/chairlauncher.lua:34: attempt to perform arithmetic on global 'weapons' (a table value) 1. unknown - addons/chairlauncher/lua/weapons/chairlauncher.lua:34 ...

30th August 2015
by DoomTheBeast Go to last post
6 223
Help

solved DModelPanel holding a weapon

Hello. How can i make a DModelPanel model hold a weapon? Thanks.

30th August 2015
by Wob wob wob! Go to last post
1 183
Games

How to use a .png as an image in DImageButton

Hello guys. I want to know if there's anyway that I can use a .png as an image. Cause' I'm trying to use in my server and the purple black texture is appearing.

29th August 2015
by Wob wob wob! Go to last post
2 215
Help

solved How to get the first two Inputs of a Angle

How do I get the first two Inputs from a table? I already googled for it, but found nothing about it.

29th August 2015
by deinemudda32 Go to last post
2 149
Help

String turns into Table

Got a problem here that I can't work out... I send a function a string and it comes out as a table. -- It used to come out as a table. type(nick) is now saying it's a string, however it says ( a table value ) in the error. ...

29th August 2015
by Semajnad Go to last post
9 344
Help

Pointshop Background Color Change in Model Render Prewiev

So i worked a little bit on my Pointshop and found a little Problem... How can i change the color of this? i search in all the .lua and testet everything... inc change every Color code in the vgui folder.. If some one can help me :3

29th August 2015
by Noplix Go to last post
2 221
Help

Fixing a addon. Amenities

Addon: DarkRP Amenities Pic of config and error: https://gyazo.com/839f855ae7dec7641cc0afd116b54623 So I'm trying to use this addon its fresh I have made no changes at all ever to it. ive seen it on other servers and it works fine I'm thinking its...

29th August 2015
by Jundtie Go to last post
11 231
Question

Physics Modification

Hi everyone. I need your help if someone did something like this before or got ideas. I want to change a little bit weapon picking up. I want weapons being picked up on touching any bodygroup (like in css). Currently i'm planning to use PhysicsCollide but...

29th August 2015
by V-Rico Go to last post
5 414
Help

Setting default weapons?

Hi I am trying to change the default weapons for f2s stronghold and im sure the code to change is in here: http://stronghold.googlecode.com/svn/trunk/gamemode/vgui/sh_loadoutpanel.lua I have changed the model and the name to a swep I have added, but...

29th August 2015
by Mattymoo14211 Go to last post
0 121
Question

solved Daily restart times (Linux + Screen)

Hey, I'm hosting my GMod Servers on my debian 7.8 linux machine. I want to have daily restart times and I'm wondering whether anybody could tell me how to do this? I think I need cron for this? I'm using screen for running the servers. Regards, ...

29th August 2015
by Sapd Go to last post
10 581
Help

Server Crashes When Anyone Changes Job

Server Crashes When Anyone Changes Job here is my job.lue in darkrp modifcation --] TEAM_POLICE = DarkRP.createJob("Police", { color = Color(0, 33, 255, 255), model = {"models/player/ecpd/male_07.mdl"}, description = ], weapons =...

29th August 2015
by YaYaBinks3 Go to last post
9 289
Help

AntiCrash script?

Hey, How would i make anticrash script? I need to set only cl variable to true, so i could activate my reconnect script. Thanks!

29th August 2015
by Netheous Go to last post
3 361
Help

G-Mod C menu help :)

Hello, I need help trying to find the files for the C menu, its when in game you hold down "c" and a menu shows up :) The problem is that people on my server can no collide cars and drive into peoples bases, Thank you Will

29th August 2015
by Will Smith 10 Go to last post
5 167
Help

solved Anyone familiar with this error?

Hello, I am running a gmod server with f2s stronghold and I have added custom weapons. I am getting the following error when navigating through the weapon selection menu: gamemodes/stronghold/gamemode/vgui/sh_loadoutpanel.lua:432: attempt to index a...

29th August 2015
by Mattymoo14211 Go to last post
4 184
Help

Best balanced sweps?

hi at the moment on my server I have m9k installed and I was wondering if there was another sweps pack out there which is more balanced and if there are any swep packs with an understandable amount of damage given to each weapon. I am using the...

29th August 2015
by bran92don Go to last post
10 262
Help

solved Insert multiply rows in single query (sv.db)

Hello. Can I insert multiply rows in single query? This query works fine in mysqloo (remote MySQL server), but doesn't work with sv.db (sql.Query) local query = "INSERT INTO uc_maps (id, title, gamemode) VALUES (1, 'cs_assault', 1), (2,...

29th August 2015
by Koji6ac9H Go to last post
3 132
Help

Dark RP Turret Entity

Hi I want to make a turret which is purchasable through entity's in the f4 menu. This turret will shoot any player that passes by unless added to co-owner like on doors. Also want to add an on and off by holding e. Is this possible and how can I go about...

29th August 2015
by ThyMason122 Go to last post
1 168
Lua

Im New To Derma

What do function do i use to call a dpanel? I want to use "KEY_F4", how do i do this, and i made my dframe, but what files do i need in order for it to work, and were do i put these files? Im really new to derma.

28th August 2015
by Borris_Squad Go to last post
30 887
Help

solved need help with f2s:stronghold

Hello, as the title says I have f2s stronghold and I was wondering whether someone knows where I can change the default loadout, so I can set it to a swep I added.

28th August 2015
by Mattymoo14211 Go to last post
4 104
Help

solved Attempt to index a nil value.

Hello, I added some custom weapons to the gamemode f2s:stronghold and now when I navigate through the weapon buy/select menu I get the following error: gamemodes/stronghold/gamemode/vgui/sh_loadoutpanel.lua:430: attempt to index a nil value 1....

28th August 2015
by AK to Spray Go to last post
4 183
Help

Players bouncing up and down as they walk

My players keep bouncing up and down while they walk. No console errors at all. function round.Begin(ply) canSpawnPLY = true canSpawnWEP = true for _, v in pairs(player.GetAll()) do if canSpawnPLY then if !v:Team(TEAM_NEUTRAL) then...

28th August 2015
by striker1013 Go to last post
4 212
Help

solved A small problem that I can't solve on my own.

I know you guys don't like beginners but whatever. I don't have anyone else I can ask about this so bear with me. I have a HUD element (ammo counter) and I need it to only show when holding either weapon_pistol or weapon_smg1. The problem is that...

28th August 2015
by Twistai Go to last post
1 162
Help

solved net.Receive can't see globals?

in my serverside code I have something like this if SERVER then SomeTable = {} net.Receive("SomeString", function(len, ply) local tbl = net.ReadTable() if tbl then SomeTable = tbl end

28th August 2015
by liqob Go to last post
2 184
Question

solved Help with learning

Hey, I have been doing huds and derma for around 6 months now and it bores me and i dont know where to start on learning more server side lua. I have been reading pil 2nd edition which i have been able to apply to some of the small scripts i have...

28th August 2015
by meharryp Go to last post
9 275
Lua

Need Help With A function that activates on water

I need help on how to make a function activate once someone uses (Presses E) On a body of water on a map

28th August 2015
by DaRkWoRlD1337 Go to last post
6 210
Help

solved Table is being mysteriously erased

The script in question is here: http://pastebin.com/zwmJFwa0 What this script does: It's a simple name tag script that makes each player's name hover above their playermodel in-game. The names are colored by rank. The addition that is not working...

28th August 2015
by nae_gevurah Go to last post
1 138
Help

Add entity to pointshop

Hey, May be complete noob question just wondering how i'd spawn an entity upon a player when he buys an item in Pointshop, thanks <3

28th August 2015
by UnknownSir Go to last post
15 244
Help

Target players in server side Lua

I am absolute trash with server-sided Lua. How can I target a certain player in things like, for example, Entity:SetBodygroup()? Any help is appreciated, thanks.

28th August 2015
by code_gs Go to last post
3 143
Help

Guns are in Stomachs

Hey guys, really need some help here. I've googled this issue and even contacted my server provider and nobody seems to be able to help, that's why I'm here. For some reason on my TTT server, all the guns are floating in the players stomachs,...

28th August 2015
by ThyMason122 Go to last post
11 369
Lua

solved CreateMaterial not working

local params = { = "gulch/lava", = 1, = 1, = 1, = 1, Proxies = { TextureScroll = { texturescrollvar = "$basetexturetransform", texturescrollrate = 33.3,

27th August 2015
by Freezebug Go to last post
0 105
Help

Buy Role In PointShop (TTT)

is there anyway of making it so that a player can purchase a token that will mean they are terrorist or detective next round ? i use point shop (http://pointshop.burt0n.net/) and the ULX TTT commands (http://forums.ulyssesmod.net/index.php?topic=6279.0)

27th August 2015
by CGHippo Go to last post
7 300
Help

solved Help With Proximity Code for SWEP

Hi guys! So I've decided to do my first SWEP, and it's going alright. It's a Mine Turtle, and it does everything it should. You say "Hello Mine Turtle" when you throw it, then it requires you to be a certain distance away from it before it clicks and arms...

27th August 2015
by MeagreMuffin Go to last post
9 245
Post Your

Inventory

Hello, today i found an real good Inventory system on a couple diffrent servers of DarkRP http://steamcommunity.com/sharedfiles/filedetails/?id=507517120 My Question is: Is this an Addon you can get somewhere? I really enjoy this one. Would be...

27th August 2015
by MeagreMuffin Go to last post
10 329
Lua

solved Lua Question about screen effects

Hey guys, I would like to know how to change "GM:RenderScreenspaceEffects" but for only one client. Is there a way to make only one client run a function like: local function testfunction() DrawMaterialOverlay( "effects/lalalaoverlay", 0.123 ) ...

27th August 2015
by Pwned231 Go to last post
7 156
Lua

a question about table.HasValue()

im trying to find players in a place, trying this local tablefindplayers = ents.FindInSphere(Vector(-3030.606689, 5.961421, 763.873596), 50) PrintTable(tablefindplayers) print(table.HasValue(tablefindplayers, "Player")) i find the...

27th August 2015
by gonzalolog Go to last post
1 169
Question

[LUA] Gmod Prop Hunt - Grenade distribution

Hello all! I'm a seasoned computer scientist and software developer, but unfortunately am quite new to this specific game. So I was hoping to seek some assistance with scripting a feature I'd like to add. A quick synopsis of what I'm attempting to...

27th August 2015
by kevinmd88 Go to last post
0 282
Help

Need help with init.lua (new gamemode)

I seem to get an error but I'm not sure where it is. I probably use something I shouldn't use/do. function GM:InitPostEntity() Entity=ents.Create("spawnred1") Entity:SetPos(Vector(-336, -120, 424)) Entity:Spawn() Entity2=ents.Create("spawnblue1")...

27th August 2015
by striker1013 Go to last post
4 279
Work In Progress

Garry's Mod Texture Formats - Testers Needed

During the course of a project that I'm working on, I've needed real-time texture modification, and render targets are too slow to write pixel data to. So, I've created a module that will allow the creation and modification of procedural textures (it does...

27th August 2015
by Knoxed Go to last post
11 913
Help

solved Server Lags due to high CPU

Hello, I own a DarkRP Server with an average of 32 players online. The problem is, that the server is laging quite hard. I checked some things and it seems to be the CPU Usage. One second Core 8 is 100% used, the other second everything is fine...

27th August 2015
by P4sca1 Go to last post
10 343
Question

solved Using Windows Function Keys Beyond F4

How would I go about utilizing the Function (F) keys beyond F4 (ShowSpare...)? - FP

27th August 2015
by Fillipuster Go to last post
4 248
Lua

DarkRP Shipments Help

I want to make it so when you buy a shipment it drops the guns in a pile induvidualy, is this an option or setting, or what do i do?

27th August 2015
by Borris_Squad Go to last post
0 73
Help

can't set custom spawn points for custom class's on darkrp

I can't set custom spawn points for custom class's on darkrp says: You don't have the right privileges to perform this action You don't have the right privileges to perform this action Note I am superadmin in the darkrp client and ULX

27th August 2015
by code_gs Go to last post
3 461
Lua

solved Problem with Weapon:GetActivity()

Here is the part of code of my SWEP: ... function SWEP:Reload() local act = self.Weapon:GetActivity() if act = ACT_VM_IDLE_LOWERED then return end self.Weapon:SendWeaponAnim(ACT_VM_IDLE_LOWERED)

27th August 2015
by xDShot Go to last post
2 123
Help

Jobs Arent Working

the problem is that i put i new job in citizen and now none of my jobs work this is my jobs.lua --] TEAM_POLICE = DarkRP.createJob("Police", { color = Color(0, 33, 255, 255), model = {"models/ecpd/male_07.mdl"}, description = ], ...

27th August 2015
by HyperDude Go to last post
1 186
Lua

TTT | Weapon Dropped and Picked up gives back full ammo & projectile doesn't collide with owner

I've been programming a melon gun for a TTT server, and I am having 2 issues: 1. When you drop and pickup said gun, you get all ammo back SWEP.Base = "weapon_tttbase" SWEP.HoldType = "rpg" SWEP.Primary.Delay = 1 SWEP.Primary.Recoil ...

27th August 2015
by Limesta Go to last post
4 189
Help

Dark Rp Errors DarkRPVars

this is the error addons/darkrpmodification-master/lua/darkrp_modules/hudreplacement/cl_hudreplacement.lua:91: attempt to index field 'DarkRPVars' (a nil value) 1. DrawNewHUD -...

27th August 2015
by HyperDude Go to last post
4 278
Lua

solved Can't find the error it spams console & can't set custom spawns for darkrp

This spams console cant find it CMaterial::PrecacheVars: error loading vmt file for tools/toolswhite CMaterial::PrecacheVars: error loading vmt file for tools/toolswhite CMaterial::DrawElements: No bound shader Also, I can't set custom spawn...

27th August 2015
by SMBAHB Go to last post
2 230
Lua

solved Nextbot hitbox detection

Does anyone know of any methods for obtaining what hitbox is being shot at on nextbots? They don't seem to count toward the ScaleNPCDamage hook, can't really think of any other ways to do it. 27th August 2015 Nevermind, figured it out myself. ...

27th August 2015
by KevinnTCG Go to last post
1 152
Help

Server crashes periodically for the same reason when some one respawns.

So here's a picture of what it dose when it crashes: https://gyazo.com/3bfec4c7c8734d2dbd83b6a2db3ac4e2 It just dose that and dose the same thing over and over again it wont stop repeating the error so that's why the server crashes. Can someone help...

27th August 2015
by code_gs Go to last post
3 237
Lua

Strange Effect; Invisible colision mesh + Entity not changing the model on spawn.

Hello fp users, I'm currently developing a prop placement tool, but I have a strange problem. The effect is the next: I spawn the entity with a SWEP and, apart from the problem that the model of the entity remains the default one (what I do not want),...

27th August 2015
by gonzalolog Go to last post
1 161
Help

DarkRP Chaniging money sign at certain amounts

Hi guys. I'd like to make a type of system where whenever a DarkRP wallet amount goes over 999999, it changes to 1M or 1.00 M, and once it's over 999M it changes to 1B, and so on. I think I'd start it somewhat like this? if...

27th August 2015
by McDunkable Go to last post
1 155
Help

solved Making players spectate on death, then respawn next round

I've decided to make a gamemode for learning purposes and to practice GLUA, I'm have issues setting up spectating and team switching on death. Basically I'm trying to make a dead player change to a different team then spectate, then when the round ends...

27th August 2015
by striker1013 Go to last post
1 153
Lua

solved Spawned Prop has ownder but doesn't send message back that owner killed player

I am currently making a prop launcher (the start of all developers) and I am wondering why, in TTT, the player who launched the prop doesn't get credit for the crush kill? When I print out the owner of the melon I get the player who fired it Relevant...

27th August 2015
by Limesta Go to last post
4 130
Help

Why does my FPS drop immediately upon adding a button to my HUD?

Hello, I recently added a button to my HUD, that when pressed, returns the player to the hub server. local DButton = vgui.Create( "DButton" ) DButton:SetPos( 307, 1035 ) DButton:SetText( "Return to Hub Server" ) DButton:SetSize( 120, 20 )...

27th August 2015
by PopeFaggotini Go to last post
2 262
Help

Game doesnt load the sounds

Hello FP, I tried making an test addon for an friend, to play a siren sound, but it doesnt send the files to the client, and therefore cant load them, even though I addfile'd them: client: AddCSLuaFile() concommand.Add("playdursirennaow",...

26th August 2015
by bmeeker625 Go to last post
4 116
Help

NPC's Godded

How can i make the NPC's godded when my server starts, this is not the NPCs you can interact with, im referring to the Hl2 Ones etc.

26th August 2015
by Potatofactory Go to last post
3 302
Lua

MySQL/SQLite Ranking system for Prophunt not work?

Hi Guys, today I have the Server Plugin "MySQL / SQLite ranking system" installed for Garry's Mod - Prophunt - Server: https://steamcommunity.com/sharedfiles/filedetails/?id=476052303 Now I've found, it somehow does not work for Prop Hunt (Kills...

26th August 2015
by Killer0561 Go to last post
9 267
Help

solved Dark RP Help

SO Basicly I Have A few issews the first one being when a player joins my server there job is joining/connecting Secound Issew this is to do with RP Name Menu When anyone joins it always asked for there name even if they have join before and put...

26th August 2015
by Pigsy Go to last post
5 159
Lua

solved Small Playermodel Issue

Hello, I got an little issue with the standart Hl2 playermodels, i am trying to change an player´s Playermodel via : ply:SetModel( model ) The Changing of the model works, but it doesnt give the playermodel thier animations, so hes spreading his...

26th August 2015
by Spanky123 Go to last post
2 87
Lua

Help With the Nutscript Framework

Somebody specified here: https://github.com/Chessnut/NutScript/issues/213 that the feature of already having changeable recognition distance (commonly bound to F2 in cw hl2rp) has been implemented but i cannot find anything about it? If somebody could...

26th August 2015
by warlock123 Go to last post
4 176
Help

solved Round based gamemode

Okay so I've changed up the script a bit and am trying to get a player to spectate on death until the next round begins. Here is what it looks like. function GM:PlayerInitialSpawn( ply ) ply:SetTeam(TEAM_NEUTRAL) ply:SetGravity(1)...

26th August 2015
by striker1013 Go to last post
14 444
Help

Garry's Mod Development Skype Channels

Hey everyone! I am starting up some development channels on Skype for any developers who want to collaborate or need help. Simply click to join. Remember there is 0 tolerance for flame + spam. Model Makers:...

26th August 2015
by SteppuFIN Go to last post
20 793
Help

Make a console command run for admins when they join

I would like to know how i can make "developer 1" run for admins when they join?

26th August 2015
by DaRkWoRlD1337 Go to last post
6 265
Love

solved Drawing polys in VGUI

:snip: Screw that, I hate the 'anti-spam' on these forums, makes you unable to edit your freakin thread without breaking it's tags.

26th August 2015
by Netheous Go to last post
0 90
Help

Poinshop 2

hey, do you guys now where i can find some poinshop 2 player models in a pac or somthig, pleas phost a link :D

26th August 2015
by Stardust342 Go to last post
1 153
Lua

Location question

Hello, i got a small question is there an way to check if an position is clear? Why? I want to TP an car to an location, i wanna check somehow if theres an other car at this location, i got 5 locations, when the first location is blocked with an car...

26th August 2015
by Spanky123 Go to last post
14 241
Lua

Read 1 Table-Insert of x Table-Inserts randomly by lowest to highest percentage

TYPES = { {"Name1", 30}, {"Name2", 70} } How would I get in a function table insert 1 with a chance of 30% and table insert 2 with a chance of 70%. Sorry for the bad grammar, but I honestly don't know how to explain this better. Thanks for...

26th August 2015
by Ylsid Go to last post
12 383
Help

Remove map props

How do i make it so when the server starts up it removes all the map entities i have specified? Such as the 4 doors for nexus entrance in evocity *141 *142 *63 *140

26th August 2015
by Exploderguy Go to last post
6 390
Help

solved Thoroughly check entities for valid parts

Quick question- what kind of things should I put in the functions below to have more thorough validity checks on the entity in question to avoid script errors? concommand.Add( 'DamageAllEnts', function() for _, v in pairs( ents.GetAll() ) do if...

26th August 2015
by MPan1 Go to last post
2 88