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

autorun.lua file

so I have a autorun file in my server so that my addons will get downloaded to the cilent. And it works and everything but their just a couple that r telling me that they r getting errors with some addons while some arent. Is it possible that the addon is...

1 Week Ago
by jobforacowboy Go to last post
5 133
Help
 

solved render.DrawBeam() This thread has images

Is anyone familiar with this? If you are, can you point me in the right direction, i basically want a beam from my gun to where im aiming. I tried doing this but failed and have nothing now.

1 Week Ago
by Invule Go to last post
9 201
Help
 

Looping a Sequence?

self:SetSequence("my_sequence",0.5) self:SetPlaybackRate(1) For a nexbot, how do I loop a sequence? My sequence plays once then freezes. I've used this but I can't find any info. Probably obvious, but not for me. Edit If there is a better way...

1 Week Ago
by ErrolLiamP Go to last post
10 401
Help
 

solved Derma Menu doesn't open for some people on server.

I created a Derma Menu, which sends a string to the server side to play a certain sound from the Prop Hunt taunts. Now when I go on the server and tap C or F4 the menu opens and shows up, some friends who I asked to help test it out said that when they...

1 Week Ago
by VashBaldeus Go to last post
2 117
Help
 

Anyone having issues with Gmpublish?

Getting error code: publishworkshopfile failed (2)

1 Week Ago
by xthenarwhalx Go to last post
3 122
Help
 

XP/Level system glitch (metatables)

local lvl = LocalPlayer():GetLevel() local reqxp = 1000 * lvl * 2 local xp = LocalPlayer():GetXP() local lvl = LocalPlayer():GetLevel() local reqxp = 1000 * lvl * 2 local xp = LocalPlayer():GetXP() if xp > reqxp or xp == reqxp then --...

1 Week Ago
by RonanZer0 Go to last post
6 156
Help
 

Printers getting removed when ANY player leaves

So I've made my own custom printers. Problem is, if I spawn one, (I'm sure I'm the owner of it), if ANY player leaves, my printer is removed with them. cl_init.lua: http://pastebin.com/26zzmsga init.lua: http://pastebin.com/DWFLGBCM I've tested by...

1 Week Ago
by Coble Go to last post
6 198
Help
 

[TTT] PointShop Admin Tab won't work.

Hello all! So, I couldn't see the admin tab on my server, but I fixed that. I can now see it, but can't use it. It comes up with no lua errors. Whenever I go to give someone points or set points or give items, there are no errors or nothing. It just...

1 Week Ago
by Pondy Go to last post
13 169
Release
 
Winner x 33

GMad - command line addon creator/extractor ( 2 3 4 5 .. 7 8 9 10 Last ) This thread has images

Windows/Linux/OSX: These files are available in the bin folder of your Garry's Mod install. Source: https://github.com/garrynewman/gmad Usage:

1 Week Ago
by xthenarwhalx Go to last post
380 93,268
games
 

Attempt to call a table value

Hello, I'm recieving this erros: Attempt to call a table value FireBullets - : -1 FireGun - wep_default/init:102 Unknown - df_plane/init:141 Here's the code df_plane/init.lua function ENT:Think()

1 Week Ago
by Nicksf13 Go to last post
0 68
Help
 

[DARKRP] Everyone can buy WEAPONS!! (HELP PLZ) !! :'(

Hello guys! In my darkrp server everyone can buy weapons... I want only: TEAM_GUN that can buy weapons... here is my addentities.lua: DarkRP.createShipment("AK-47", { model = "models/weapons/w_ak47.mdl",

1 Week Ago
by Dummore Go to last post
3 141
Help
 

solved SoundDuration() & limiting the player from spamming ply.EmitSound()

I created a Derma Menu, now it works. The sounds are send via Net.SendToServer() commands, they play for everyone. Though it doesn't limit the player on how many times he can press the button in order to play the sound, meaning it could cause spam. I...

1 Week Ago
by DEFCON1 Go to last post
1 111
Help
 

Fade into Black and White

Hey Guys, So I presume you all have played Elevator:Source or Slender the Arrival. I am working on something with Charlie Matheson. When he is near you, he slowly fades your vision from color to Black and White. I know there is a floor in Elevator...

1 Week Ago
by Kogitsune Go to last post
4 102
Help
 

solved Allowing player movement when Derma Menu open?

I created a Derma Menu, now each time I open it /freezes/ the player and doesn't allow him to move. How do I allow mouse usage on the menu and that the player will be able to move? I tried these: DFrame:SetKeyBoardInputEnabled()...

1 Week Ago
by VashBaldeus Go to last post
5 185
Help
 

LUA files not getting synced with FastDL

Hi i'm having a annoying problem with fastDL it is not syncing some lua files from customizable third person addon and a HUD when i hit the sync fast DL server button it doesn't sync the addons any help Also my server host is nitrous networks

1 Week Ago
by freakyy Go to last post
1 105
Lua scripting
 

NPC help

Hello! So i made 2 npc,s with different NPCMenus, frames, labels, but when i spawn them both on both is showing the same menu. So basicly if i am working on cl_init file on NPC1 and save it it will only show the NPCMenu from NPC1 on both. I hope i...

1 Week Ago
by HumulusLupulu Go to last post
0 73
Lua scripting
 

Kick people with LUA? This thread has images

I hope I'm in the correct section. I want to make a LUA script that will kick everyone who doesn't have their Steam ID in a list I manually edit. How do I do this?

1 Week Ago
by Acecool Go to last post
10 305
Help
 

Pointshop Sprint Powerup

I wanted to add a sprint powerup to my pointshop on my server. I through together something that i thought would work, but it wont. Can someone help me out? ITEM.Name = 'Spirint Powerup' ITEM.Price = 1000 ITEM.Model =...

1 Week Ago
by jobforacowboy Go to last post
2 90
Help
 

Making model auto download with fast dl

I'm almost done creating my dedicated server and i have a question when joining my server how come fast DL doesn't auto download the models Also IK that i need to use resources generator to generate the file what tell fastdl to include models in the...

1 Week Ago
by Acecool Go to last post
12 216
Help
 

Disable crawling by the walls SCRIT???

How to disable it?? Players can still use noclip but they can't crawling the walls...

1 Week Ago
by Scumbag1 Go to last post
0 88
Help
 

solved Playing sounds of .wav & mp3 to the client.

I created a Derma Menu, which sends a string to the server to ply.EmitSound(net.ReadString()). How the menu looks(Client Side!): if ( CLIENT ) then //This is just one button out of the entire menu. //Menu function phm_1() local p1_base =...

1 Week Ago
by VashBaldeus Go to last post
2 135
Help
 

Buyhealth command?

Hey i've been trying for the past 30 minutes to try and make a /buyhealth script that can only be used once every 20 seconds. Any help please? Thanks.

1 Week Ago
by Tomelyr Go to last post
5 142
Help
 

Trials on pointshop

So I dont know how to fix this but all players can pick more than 1 trail making it very annoying. Anyone can help fix this?

1 Week Ago
by xthenarwhalx Go to last post
2 94
Help
 

solved How can I properly account for all resolutions? (draw.RoundedBox/Polys)

local polydata = {} polydata = {} polydata = { x = ScrW() / 2 - 260, y = 0 } polydata = { x = ScrW() / 2 - 160, y = 0 } polydata = { x = ScrW() / 2 - 160, y = 50 } polydata = {} polydata = { x = ScrW() / 2 + 140, y = 0 } polydata = { x...

1 Week Ago
by RonanZer0 Go to last post
3 97
games
 

Fretta Gamemod

What happened to fretta gamemod? It became overpast?

1 Week Ago
by NiandraLades Go to last post
2 90
QUESTION
 

Spawnmenu with same GUI

How would I make a spawnmenu with the same GUI as the default, but with different code? Previous thread:http://facepunch.com/showthread.php?t=1430022

1 Week Ago
by Gleir Go to last post
8 146
QUESTION
 

solved Angled draw.RoundedBox

Now this is probably a super simple and stupid question to ask, but... I've seen in various HUD pictures (NOT downloadable examples that I could look at the code of) that they have "angled" (like a draw.RoundedBox but at a 45 degree angle) with perfect...

1 Week Ago
by Sereni Go to last post
6 119
Help
1 Week Ago
by Belly136 Go to last post
2 115
Help
 

Gmod Publishing Utility "Not allowed by whitelist"

I trying to upload my weapon pack. Here my log, Looking in folder "H:/BKT Weapons/" lua/weapons/bkt_ak-47a/shared.lua lua/weapons/bkt_c-mac10/shared.lua lua/weapons/bkt_deagle/shared.lua lua/weapons/bkt_pistol/shared.lua...

1 Week Ago
by Drunk Combine Go to last post
19 440
Map
 

run client command on specific map startup?

Hey, I've got a small issue that I believe can be alleviated using lua, and as I haven't the expertise I would appreciate some help for a small script. I have a map that has the unit extents of 31744x31744, and as source's default r_farz value is about...

1 Week Ago
by Magman77 Go to last post
5 130
Help
 

Help with Burst Fire code

Hey there! I had this code working when it was like this: function SWEP:PrimaryAttack() if not self:CanPrimaryAttack() then return end local fire = function() self:EmitSound ( self.Primary.Sound ) ...

1 Week Ago
by Cowan108 Go to last post
5 199
Help
 

solved How to disable rendering of players gun?

I making an addon that in short terms, makes you invisible. I got the player to not rendering, but I cant seem to figure out how to stop the SWEP from rendering. Here is my code. target:SetRenderMode(RENDERMODE_NONE) //This works fine...

1 Week Ago
by Exho Go to last post
3 164
Help
 

Gamemode salary

Hey, i am having some problems can someone tell me why this isn't working: The problem is i don't get any money. Salary.lua: local jobUpdateTime = 10 local jobSalary = {} function AddJobSalary( team, time, amount ) jobSalary = { time,...

1 Week Ago
by xAl3xTh3K1nG Go to last post
2 106
Help
 

solved Odd value behavior

I've run into a very odd scripting error. This is just a very basic script I've made to show it: local original_angles = Angle(10,10,10) local angles_backup = Angle(10,10,10) local new_angles = original_angles ...

1 Week Ago
by jespercal Go to last post
4 103
Help
 

solved Simple way to play sounds to all players?

How can I set that a player via a menu can activate a sound that the rest of the players can hear? I tried these: sound.Play() player.EmitSound() But when I try them no sound comes out and no errors either.

1 Week Ago
by Author. Go to last post
7 159
Help
 

Pointshop Crosshairs

With the help of facepunch a while back, I tried to make pointshop crosshairs but still haven't managed to get it to work. The code is: ITEM.Name = 'Crosshair Test' ITEM.Price = 0 ITEM.Material = 'crosshair/crosshair_001.vmt' ITEM.AllowedUserGroups =...

1 Week Ago
by Baron von Hax Go to last post
26 402
Help
 

solved hook.Call & hook.Add - not being called at all.

I created a Derma Menu with hook.Call which is client side & a server side file that has all the hook.Add. The Menu(clientside): function ph_tm_p1() local base = vgui.Create( "DFrame") //Menu Frame base:SetSize(176, 571) base:SetPos(1728,...

1 Week Ago
by LUModder Go to last post
3 124
Lua scripting
 

NEED HELP WITH '=' expected near 'function'

addons/oicw-hl2_beta/lua/weapons/oicw_beta/shared.lua:70: '=' expected near 'function' 1. unknown - addons/oicw-hl2_beta/lua/weapons/oicw_beta/shared.lua:0 Thats appear on my console. I checked all of code and nothing, so help me CODE if (...

1 Week Ago
by JakusPL Go to last post
6 137
Help
 

solved How to change deaths speed in deathrun server

I need help I want to change the default speed of the deaths so that can at least keep up with runner I have searched through the gamemode folder and can't find the code what sets the speed of the deaths

1 Week Ago
by Charlie1996 Go to last post
7 94
Help
 

solved Custom gamemode salary not working

Anyone has an idea why this is not working? local jobUpdateTime = 180 local jobSalary = {} function AddJobSalary( team, time, amount ) jobSalary = { time, amount } end

1 Week Ago
by xAl3xTh3K1nG Go to last post
10 265