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

Save Entities in Database for later respawn

Hey, I wanna create a database (SQLite) to save entities (DarkRP weapons, shitpents and food) in for later respawn of them. I created the database successfully so far but I have no idea how to save them though. I took a look at ent:GetTable() and...

16th March 2017
by KingofBeast Go to last post
6 296
Help

Ent:EmitSound()/Ent:StopSound() problem, any workaround?

Well, as I'm stuck with CreateSound not being a 3d sound, and ENT:StopSound() not working as described on the wiki, I was hoping for someone to know a way around. I currently have a cannon, which shoots off another entity, which is ofcourse, a...

16th March 2017
by lafrog Go to last post
22 3,044
Help

solved Throwing Knife Issue

I am having an issue with this code. It should have stripped ur weapon with no error... gamemodes/jailbreak/entities/weapons/weapon_jb_knife.lua:225: attempt to call method 'StripWeapon' (a nil value) 1. unknown -...

16th March 2017
by Ace4304 Go to last post
6 258
Help

solved Deploy() and Holster() inconsistency

Hi people. I'm making a tool but something is not working as intended, and I can't find the problem. Basicly, I have these two functions in my tool: function TOOL:Deploy() if(CLIENT) then return end print("deploy")...

16th March 2017
by MaxShadow Go to last post
6 238
Question

Get IP of a server

How can a addon get the IP and hostname of the current server? It needs to be in the 123.123.123.123 format

16th March 2017
by Unknown Gamer Go to last post
6 686
Help

solved Need help with gamemode.txt file

Hello! My name is DanK aka PIXX and my problem is that my gamemode doesn't show up in the dropdown menu. I receive this error in console: KeyValues Error: LoadFromBuffer: missing { in file gamemodes/swrp2/swrp2.txt and this is the swrp2.txt

15th March 2017
by PIXX Go to last post
10 369
Help

HTML Soundcloud problem

Hi guys, I'm working on a new gamemode. And, basically, as I'm going to have a lot of different musics played during a game, and I don't want the player to download 1 terabyte of content, stream my music from soundcloud. However a lot (really, a lot)...

15th March 2017
by guigui30110 Go to last post
0 171
Help

solved Why my entity is not showing in Q menu?

Hi guys, i started scripting in Lua recently and i have problem with creating the entity: path: \Steam\steamapps\common\GarrysMod\garrysmod\lua\entities\testent shared.lua: ENT.Type = "anim" ENT.Base = "base_gmodentity"

15th March 2017
by Strudelnet Go to last post
2 132
Lua

solved Error Painting derma panel

Hello I am attempting to create a derma panel with a command to open it the command works it will open the derma panel but once I put in the command to change the look of the derma panel it puts this error in the console lua/derma.lua:16: unexpected...

15th March 2017
by smithy285 Go to last post
8 272
Help

Bhoppings max speed?

Hey! I have bhop script and can't get velocity bigger than 600. But if i bhop backwards i get to my sv_maxvelocity? How do i set up bhopping on my server so forward bhop would be normal?

15th March 2017
by timrace01 Go to last post
12 694
Help

Need some sort of Idea to setup a StarwarsRP server.

Hi, I wasn't sure where to post this so I posted it in this. I need some ideas to help me setup a StarwarsRP server, I recently just converted my DarkRP server into a StarwarsRP server and I need to know what sort of jobs I need, what sort of addons...

15th March 2017
by Strudelnet Go to last post
9 568
Lua

solved Entity like way to create new items for addons.

I'm currently working on an addon that will be using items and I will need some way of adding new items. What I have thought about is to use a method similar to creating entities where you create 3 files in a directory and then set variables like,...

15th March 2017
by Jompe Go to last post
3 187
 
15th March 2017
by Voxtria Go to last post
- -
Lua

Suck Cannon type weapon

Hello everyone, i'm still alive :D, i've been pondering about this for a while, but i need a small example, how would one go about making a suck cannon type weapon to inhale entities, store their models in a table or something, and then shoot them out in...

15th March 2017
by Dragula5892 Go to last post
2 202
Question

Freelook for first and third person

So I am attempting to add freelook as a feature to the gamemode I am working on. However, I am not quite sure exactly how to do this. From my understanding, in the calcview hook, I would need to attach the camera to the player's eyes, but limit the camera...

14th March 2017
by VeXan Go to last post
4 427
Question

Print GMOD Map Coordinates to Chat?

Hello! I am recently playing a lot of SWRP. The Server where I am playing uses coordinates and it's bloody annoying to copy and paste them. Until then, you already got overrun. I would know if there is a possibility to make a Script which does the...

14th March 2017
by Flixs Go to last post
11 315
Lua

Gmod lua get server ip clientside ( 2 Last )

I can't find out how to get the servers ip from clientside in lua? I have tryed for multiple hours and can't find anything...

14th March 2017
by Grunzwanzling Go to last post
50 9,083
Question

solved Understanding inheritance and splitted files

Hello everyone, I am trying to define some entity base classes, which I can later use. For this I splitted up the code into init.lua and shared.lua. class A: init.lua: AddCSLuaFile("shared.lua")

14th March 2017
by Luni Go to last post
3 186
Question

Capture point help

Hey, so I'm trying how to figure out how to make an area capture script though I've stumbled upon this problem. How is one supposed to create a circle colored red or green depending on it being captured? I'm generally quite new to Glua though, but how...

14th March 2017
by Luni Go to last post
1 160
Help

Need a person who can help me fix my server

will pay if needed add me on steam and ill tell you the info on whats up http://steamcommunity.com/id/tedcc/

14th March 2017
by MrRalgoman Go to last post
3 235
Help

It says [Not Allowed by whitelist] here is the code

Ok Looking in folder "D:/ShootyAddon/" imgres.jpg lua/weapons/oprevolver/shared.lua sound/weapons/automag/bikehorn.wav sound/weapons/automag/melt.wav File list verification failed and here is the...

14th March 2017
by Banana Lord. Go to last post
1 233
Shitpost

April Fools Lua'ing ( 2 3 Last )

The best day of the year is just around the corner, and I'm capitalizing on it to add the dumbest nonsense to my mod that I can think of. I strongly urge the rest of you to do the same. Since most of the Gmod community doesn't know that Facepunch...

14th March 2017
by Ryanrc Go to last post
84 9,293
Help

solved trace hit displacement

Hi, can http://wiki.garrysmod.com/page/util/TraceHull hit a displacement? found a site that says HitTexture String This is the texture that the trace hit. Returns "**studio**" if it hits an entity or player, "**empty**" if the trace hits nothing,...

14th March 2017
by poepel Go to last post
4 243
Help

solved remove ragdolls

Hi, is there a way to remove ragdolls in lua?

14th March 2017
by poepel Go to last post
4 155
Lua

solved SWEP with less damage at far distances (LUA Error)

I Have been working on a shotgun that damage gets reduced when the distance between victim and attacker is too high, I tried that with this code: function GM:ScalePlayerDamage( victim, dmginfo ) local attacker = dmginfo:GetAttacker local...

14th March 2017
by Thookie Go to last post
13 256
Help

How to disable picking weapons up from the ground?

How to disable picking weapons up from the ground? But at the same time, you can collect weapons using the "E".

14th March 2017
by Packages Go to last post
16 471
Help

YouTube API to play sound

I'm trying to make a GUI so when a player enters a youtube video ID it'll play the sound here my code. I've been having troubles and can't figure it out. I've managed to find an API that plays the sound but I'm kinda new to LUA and still don't really...

14th March 2017
by Potatofactory Go to last post
4 405
Help

Its says "Could not parse addon.json and here is the full thing

Its says "Could not parse addon.json and here is the full thing just want to let you know Im pretty new to this whole lua thing so dont list me as dumb or get me banned again becuase I have 15% what im doing the code "AddonInfo" { "name"...

14th March 2017
by CarlTheLoafLo Go to last post
3 191
Help

Errors that are solved after re-save

I'm working on a script that, once the player moves for the first time, a sound is played and text output to chat. The main fundamentals work...only if I've re-saved the file. The first time I open a server with the script, I get this error printed...

13th March 2017
by SweptThrone Go to last post
4 149
Help

Customizable Weaponry & Nutscript

Hello, immediately I apologize for coming here with this My problem is that CW:2's weapon raise and lower system clashes with Nutscripts on some level, where your gun always looks like it is raised but isn't really. I have tried disabling Nutscripts...

13th March 2017
by Mr.Daniel Go to last post
0 141
Help

Problem with Darkrp Scripting

Ok so i am not a good lua person but i am learning but Dark rp has a console error that states Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 160. The best help I can give you is...

13th March 2017
by hunterkrovac Go to last post
2 185
Help
13th March 2017
by Samurai Yack Go to last post
0 127
Help

remove undo's

I create undo's when someone spawn a prop. Undo works perfectly but when you remove the prop with toolgun and then press z, it still gives undo message like "Undone prop" but there is no prop already. So I need to remove undo as well when the prop got...

13th March 2017
by MaxShadow Go to last post
1 158
Help

Darkrp: Problem with server

erm so when i pick up a player he/she freezes and cant move and has to kill him self. this is when i let go and the second problem is every prob they spawn is a world prop and cant phys-gun there props

13th March 2017
by Toedeli Go to last post
3 159
Help

Ammo not working DarkRP

I put these in DarkRPModification/lua/customthings/ammo.lua DarkRP.createAmmoType("m9k_ammo_357", { name = "M9K 357 ammo", model = "models/Items/357ammo.mdl", price = 100, amountGiven = 20 }) ...

13th March 2017
by geferon Go to last post
3 138
Help

Dupe to addon?

Is there any way to make a dupe into an addon that I can use on a server (.gma file). I have a dupe id like to add to a car dealer I just cant seem to figure out how.

13th March 2017
by Nick78111 Go to last post
11 371
Help

Ply:SteamID() is a nil value, most important function cannot run!

Hi. The function that loads all the player's data every 3 seconds cannot run(and therefor, my entire gamemode is wrecked) because of this error i tried replacing several things but i cannot get it working: code around like 60

13th March 2017
by bilbasio Go to last post
8 434
Help

Black Box Muzzle Flashes, please help.

Hello, this is my first time on these forums, so I really do apologize if I should be bringing this up somewhere else. Anyhow, I've seen this issue brought up in other places, but no one seems to have given any solid reasoning, or solution. Whenever I...

13th March 2017
by code_gs Go to last post
2 108
Help

Using PlayX for DarkRP

So let me start by saying I want to allow each person one playX player (with the option to restrict to ulx ranks). The way playX works at the moment allows only one player on the whole server. I have a DJ class set up but obviously allowing only one...

13th March 2017
by LuckyCharms Go to last post
1 138
Help

how to fix this error

i get this error in my gamemode gamemodes/tdm/gamemode/init.lua:42: unexpected symbol near ')' 1. unknown - gamemodes/tdm/gamemode/init.lua:0

13th March 2017
by code_gs Go to last post
9 281
Question

Quick Question About DarkRP

Hey, I've been doing some google searches and cannot seem to find what I am looking for therefore hitting a dead end, I am looking on how I can integrate into the default DarkRP tab menu (or scoreboard what ever you like to call it). I need to be able to...

13th March 2017
by zacklogan Go to last post
6 393
Politics

Why No Standard Facepunch mobile App For Profit? ~ Developer Discussions ~

With all the amazing Developers and Programmers on this website, i'm really surprised that no one has taken the time and opportunity to rip off the reddit app and then make the first Official Facepunch Forum Mobile APP. Then once developed you would go...

12th March 2017
by Rocket Go to last post
20 770
Question

Can't Create Folder in Data

local ad = "players" local ad_id = ply:SteamID64() if file.Exists("AddonCheck/" .. ad .. "/" ..ad_id.. ".txt", "DATA") then print("checked") else function AddOpenOnJoin(ply)

12th March 2017
by xbeastguyx Go to last post
1 172
Help

Sending a ULX command to server?

Hey guys, i want to make a simple lua script wich sends every 20 minutes a 'ulx showsite' command but it doesn't work, what is bad here? i'm using the incorrect native function to send the command? if (SERVER) then...

12th March 2017
by LNATIC Go to last post
2 224
Help

Colored TTT Radio commands?

I'm trying to make it so that the "Traitor" in the traitor call-out radio command is highlighted in red. I have both of these files in my autorun folder: function RadioModify( ply, cmd, target ) util.AddNetworkString( "radiomodifyinfo" ) ...

12th March 2017
by Ferrumite Go to last post
0 148
Help

Running client-side console command upon loading into a server

Greetings, I'd like to be able to run a command in my console when I load into a server, the script should be client-side, the objecitve is to be able to type something like Hello, if I can figure out how to run a console command upon loading into a...

12th March 2017
by Potatofactory Go to last post
9 332
Help

Cant Force Clients to Download Sound

Hey, I always get Error HTTP ERROR 8 downloading http://ldn-28.tca.node.nitrous.it/23001/garrysmod/maps/ttt_minecraft_b5.bsp.bz2 HTTP ERROR 8 downloading http://ldn-28.tca.node.nitrous.it/23001/garrysmod/maps/ttt_minecraft_b5.bsp HTTP ERROR 8...

12th March 2017
by code_gs Go to last post
8 200
Help

Weapon ammo over time

I am trying to make a swep that can get a maximum of 32 bullets with no reserve clips or any more ammo to reload, and when its starts getting bullets over time, for example you fired half of your mag, every 10 seconds you get 1 bullet back I just...

12th March 2017
by bilbasio Go to last post
8 305
Help

solved How do I disallow people from typing kill in console if they are within this group?

Hello, Does anyone know how I could stop players from killing themselves in the console if they are within the group TEAM_GHOST? Thank you, Zombiez

12th March 2017
by ZombiezPvP Go to last post
6 231
Help

solved Ugly sprites

So I just made a quick sprite as a TGA file, ran it through VTFEdit, added "$translucent" "1" to the VMT and tried it out in Garry's Mod. This is the result (Ignore the growing, that's normal and it happens even without it.) : Here's what it SHOULD...

12th March 2017
by VeXan Go to last post
3 195
Question

solved What's wrong?

I get this error: addons/kidnapping_mod/lua/autorun/server/sv_kidnapping.lua:54: attempt to index global 'wep' (a nil value) 1. SavePlayerGear - addons/kidnapping_mod/lua/autorun/server/sv_kidnapping.lua:54 2. Knockout -...

12th March 2017
by gabrielcruel Go to last post
2 199
Help

solved Help with textures to hud

I am trying to load an vtf to my HUD but no matter how hard I try I have not been able to figure it out. local topal = surface.GetTextureID( "troll/test1" ) hook.Add("HUDPaint","lola", function() surface.SetTexture( topal )...

12th March 2017
by Lithos Go to last post
6 246
Help

Why are my print statements / hooks being executed multiple times in my weapon script?

This happens in both multiplayer and singleplayer, but it's worse in multiplayer. Basically I'm scripting a weapon that's more like a tool, so not really shooting anything. It basically just modifies some entity variables and prints to the screen when...

12th March 2017
by bigdogmat Go to last post
11 392
Help

Fixing SetNoCollideWithTeammates

So since I've found that using SetCustomCollisionCheck on players can absolutely kill server performance. I've started looking into fixing the problems with SetNoCollideWithTeammates. Here's what I've found out. 1. If player collision hulls overlap at...

11th March 2017
by ForrestMarkX Go to last post
0 190
Help

solved Wyozi-like smooth text glow between two colors?

Does anyone know the math/code behind making text have a smooth glow between two colors? Wyozi Tag Editor had it and I was wondering how to do it.

11th March 2017
by Ferrumite Go to last post
8 457
Help

Help needed with Pointshop skin

Recently I have installed a pointshop skin, the skin works great and looks fine. However there are a few things I would like to change but don't know how to. I have already tried to edit stuff on my own. 1)After opening the pointshop and clicking on a...

11th March 2017
by bilbasio Go to last post
1 204
Help

Change weapon material via ConVar

I'm trying to create a weapon for TTT which allows the user to change the skin of a weapon ingame via a ConVar, something like weapon_ttt_name_skin 1 or 0. I want to create skins for every weapon in my pack and have a ULX menu where the skins can be...

11th March 2017
by hendrikbl Go to last post
0 181
Question

Revive players...?

Is there a way to revive players? Often people will join and kill random players during a round of Trouble in Terrorist Town. I slay those people and want to respawn the people who got rdmed. Is there a ulx plugin or any way to respawn players after...

11th March 2017
by Zomaric Go to last post
19 9,700
Help

For loop help!

Hello facepunch, I'm wondering if someone could help me with creating buttons in an orderly fashion. I'm trying to make 9 buttons using the for loop, but on each like they has to be three so that means they'll be 3 lines with 3 buttons on each line...

11th March 2017
by Zet0r Go to last post
3 232
Help

solved ents.Create("info_node")

Hello :) why is my game crashing when i create some (2+) info_nodes? function SpawnNodes(vec) local tmp = ents.Create("info_node") tmp:SetPos(vec) tmp:Spawn() end

11th March 2017
by poepel Go to last post
10 448
Help

Im doing LUA and i made a entity but the entity is just a shadow please help!

here is the code if you need to see it init.lua include("shared.lua") function ENT:Draw() slef:DrawModel()

11th March 2017
by MadParakeet Go to last post
9 787
Help

Internet Image to In-Game Texture

Hey Facepunch, I'm new to Lua and I'd like to ask for some (quite a bit perhaps) of help. I want to know how it's possible to allow users to grab a texture from the internet via direct URL, and apply it to their playermodel for all others to see. An...

11th March 2017
by TFA Go to last post
20 1,537
Help

solved Resetting a local variable

I have a ulx command that lets players buy grenades, but I'm having trouble resetting the variable. How would I go about resetting it? Players are only allowed to buy 2 per round, so I need the reset at the start or end of each round. I tried using...

11th March 2017
by covey88 Go to last post
11 397
Help

Pointshop 2 on melonbomber

Hello My problem is when I opened the pointshop It stays on the loading screen and don't show the playermodel, someone know to fix this?

11th March 2017
by MeepDarknessM Go to last post
7 270
Lua

[TTT] How can i convert this SWEP to TTT?

Hello, i want to add this SWEP to my TTT Servers (For the Adminteam) but sadly it doesnt really work because of the base. If i just let it be like normal the weapon doesnt even show up in the inventory when equipped. If i change the base to the ttt base...

11th March 2017
by SpeedWubs Go to last post
0 144
Question

[TTT] Factions like in DarkRP and Rank Playermodel

Hello dear facepunch Community, hopefully you can help me with this questions. First i want to create something like a faction-system. It should look like in DarkRP with jobs, you can join and get the Playermodel and weapons of the faction in your...

11th March 2017
by stickman14714 Go to last post
11 356
Help

About WorkshopDL

Hey! I own a GMod server and today it happend a wierd thing,it have been online for a while. I started the server up and everything worked and we started to get some players in. But all these players that joined gets error at the map and models. I...

10th March 2017
by txike Go to last post
2 156
Help

Help with commands to open derma menus and derma menu skins

I have 2 concommands to open a derma menu and to close it how can I make a chat command that will open it i.e !openderma Second Question: How do I skin a derma menu to make it something like you would see on scriptfodder i.e...

10th March 2017
by jackson25me Go to last post
6 204
Question

[TTT] How can i fix the pistols?

Some Pistols on my Server which i've converted to TTT (So they work in this Gamemode) dont work together with Rifles and generally normal Guns. As example i use one of those Pistols, i cant have a rifle at the same time. Thats pretty annyoing and useless....

10th March 2017
by SpeedWubs Go to last post
2 162
Help

New players aren't getting the character creation menu.

Hello. So when a player joins my server they automatically are named John doe. There's a function that detects the names however the menu isn't shown. I've got two files who handle this. One doing most networking(and detecting the name) and one is...

10th March 2017
by bilbasio Go to last post
5 354
Help

Help HUD doesnt work in server but works in singleplayer

mdl:SetModel( LocalPlayer():GetModel() ) I am not sure why this is happening works in sandbox singleplayer but not on my server that is darkrp. addons/darkrpmodification-master/lua/darkrp_modules/savagehud/cl_savagehud.lua:38: Tried to use a NULL...

10th March 2017
by dbaum101 Go to last post
3 182
Question

solved Preventing all except one player to see an entity

How to show an entity to certain players? SetPreventTransmit (http://wiki.garrysmod.com/page/Entity/SetPreventTransmit) doesn't seem to work now for me UPD: Okay, nevermind, my fault, sorry

VXP
10th March 2017
by VXP Go to last post
0 117
Question

Linking keycard scanner to map doors?

Hey guys, I really need your help. I need to find a way to link a keycard scanner to a map door (to a sliding one). Would this be possible and how?

10th March 2017
by Jompe Go to last post
1 190
Help

The Strangest Gamemode Error.

Herrow! I'm kinda new to these facepunch fourms, but I have been stuck on the same problem for like, three days. Basically, I'm messing around with creating a custom gamemode, and for some reason, my game crashes if I join this gamemode via server or...

10th March 2017
by Pyro-Fire Go to last post
4 357
Help

Players crash when joing the server.

Hi Facepunch, I am unsure what to do now. I have created a Server, with a heck lot of addons (Only ~20 in FastDL). These are mainly all my model and weapon files. Here is the collection: http://steamcommunity.com/sharedfiles/filedetails/?id=801710031 I...

10th March 2017
by Moat Go to last post
5 346
Help

gamemode voting on fretta

Hello, I have the fretta of prophunt however don't work me the change votting gamemode on modes as murder, melonbomber, smash or trash compactor when end the round.... and I have this on all gamemodes "selectable" "1" "fretta_maps" { "1" "tc_"...

10th March 2017
by Streak12 Go to last post
4 215
Lua

player taking damage a bunch of times instead of once

I'm using this code to make it so whenever a player gets close to an entity they take damage. I want the player to take damage only once but instead they are taking damage until they die. shouldtakedamage = true hook.Add("ShouldCollide",...

10th March 2017
by bilbasio Go to last post
6 377
Help

solved Attempt to call method 'SendLua' (a nil value)

Trying to get this to work. I've placed it serverside in the autorun folder. function RoleMusic() for k, ply in pairs(player.GetAll()) do if ply:GetRole() == ROLE_TRAITOR then ply:SendLua( 'surface.PlaySound( "traitorbegin.mp3" )' ) elseif...

9th March 2017
by Ferrumite Go to last post
4 216
Help

Help with give weapon on prophunt

I have this hook.Add("PlayerLoadout", "RandomUniqueName", function(ply) if ply:Team() == TEAM_HUNTERS then if pl:IsUserGroup("superadmin") then ply:Give("weapon_ss_cannon") return true --hides default loadout end...

9th March 2017
by Streak12 Go to last post
6 251
Lua

ULX Force Respawn players

---------- Force Spawn ---------- local CATEGORY_NAME = "ULX Custom Commands" function ulx.respawn( calling_ply, target_ply ) if not target_ply:Alive() then target_ply:Spawn() ulx.fancyLogAdmin( calling_ply, true, "#A respawed #T", target_ply...

9th March 2017
by covey88 Go to last post
15 591