Title / Thread Starter Last Post ByReverse Sort Order Replies Views
Lua scripting
 

Preventing Object Spawning In A Certain Area

OK so this code is in <garrysmod\lua\autorun\server> and it does work. However, I would like to make it so that admins and super admins can spawn objects in the area. I have tried a few things but they haven't worked. I am running ULX and ULIB. Thanks for...

1 Week Ago
by Moriemini Go to last post
3 108
Help
 

Set spawn points

Hey guys! I Have been working on my own gamemode and recently made my own map for it, in my gamemode i have 3 Teams, red blue and spec. Now my question is how do i add team specific spawns to the map, Liek i said i have made the map, but there is only one...

1 Week Ago
by darkmist Go to last post
3 100
Help
1 Week Ago
by Exho Go to last post
8 118
Help
 

Cloaking someone when they use a entity?

How would you make it so when someone uses a entity they get cloaked for 15 seconds. I'm assuming you would use timer.create but, I don't know how to make someone invisible. If someone could show me a example and explain it that would be great.

1 Week Ago
by Winter Go to last post
8 491
Lua scripting
 

Shared code for GM:Initialize does not run serverside

Title says it all. function GM:Initialize() self.BaseClass.Initialize(self) if( SERVER ) then print( SharedVars.prefix + "Gamemode is now initialized." ) timer.Create( "RoundTimer", 1, 0, function() print(...

1 Week Ago
by Aide Go to last post
2 121
Help
 

solved Add.Dir function does it work anymore?

the old function for gmod 12 does it work any more or is there any equivalent of it any more any help would be appreciated example below function AddDir(dir) // recursively adds everything in a directory to be downloaded by client local list =...

1 Week Ago
by jack ralph Go to last post
3 86
Help
 

Timer broke gammod (Fretta) This thread has images

I don't know why but this function broke fretta base and create script error function GM:Initialize() if ( GAMEMODE.GameLength > 0 ) then timer.Simple( GAMEMODE.GameLength * 60, function() GAMEMODE:EndOfGame( true ) end ) SetGlobalFloat(...

1 Week Ago
by Butthurt Go to last post
5 146
Help
 

Only showing Halos on live entities

I was wanting to show Halos on objects that are alive but I discovered that when the entity is killed, the halos stay. I know about table.remove but I dont know where to put it so that its constantly checked if the drawn players are alive. I've crashed...

1 Week Ago
by ZombieWizzard Go to last post
5 112
Help
 

solved Help finding players XP file for Bhop Gamemode.

I have the bhop gamemode by Ilya, and i want to be able to have donator perks like exp gain. But i cant seem to find the file that has players experience nor their level. I originally thought it would be in the data files but it's not. Can someone please...

1 Week Ago
by Vizik Go to last post
5 115
Help
 

How do I make a new ulx catergory.

How do I make a new ulx catergory.

1 Week Ago
by HumbleTH Go to last post
4 121
Help
 

How do I make a new ulx catergory.

How do I make a new ulx catergory.

1 Week Ago
by JasonMan34 Go to last post
1 75
Help
 

Help! Garrys mod addon help

Hello i have been having soo much trouble in adding TDM cars to my server. I have looked everywere and on youtube,fourms,websites etc... now i come to ask the FacePunch community. How do i add this.

1 Week Ago
by DiTTo4 Go to last post
1 79
Help
 

Prophunt (Banning Props)

On like say maps like cs_office, by default you are allowed to become the remote and mouse, how do I know what is the model name for those so i can restrict it where players can't become them? I tried using GCFScape to view the contents of the map but...

1 Week Ago
by Gizmotist Go to last post
5 104
Help
 

solved player.lua

Where is player.lua in darkrp?

1 Week Ago
by DiTTo4 Go to last post
14 213
Help
 

TTT slot 1 weapon question

So we all know that the default TTT weapon is crowbar and its possible to change the crowbar into something else like the fists and here comes my question is it possible to for example be able to change the crowbar to another weapon for individual...

1 Week Ago
by SaintSin6 Go to last post
5 101
Help
 

Trying something new, but dont know how :/ This thread has images

I want to make a 'skycam' entity that all players look through when they join my server before they are spawned with their characters. The 'view' is just going to be for a moving background purpose and not serve for anything else. What I have done so...

1 Week Ago
by BlackMadd Go to last post
7 241
Help
 

ULX Making groups spawn with weapon(s)

Hi. I'm currently having problems on finding a how to make certain ulx groups spawn with weapons. In this case, i want to have the "donator" group to spawn with a weapon (First aid kit) as a bonus when they are in the group "donator".

1 Week Ago
by JasonMan34 Go to last post
11 90
Help
 

Player spawning - not?

Hey again everyone. I am almost done. But I have a problem. In my gamemode, a lot of people die a lot. But instead of dying I have a global function that just resets them to their default spawn position (a static position) But when a lot of...

1 Week Ago
by Fillipuster Go to last post
10 238
Help
 

Custom SWEP Problem.

I've tried making my own Chair gun using the tutorial at http://wiki.garrysmod.com/page/Chair_Throwing_Gun . I ran into the problem that I don't know how to change the strength that the gun is firing at. My code is the EXACT SAME as on the link above,...

1 Week Ago
by Nemmy Go to last post
4 85
QUESTION
 

solved Playermodels

Hey guys ill be adding playermodels to my _undefined pointshop soon and was wondering if you can tell me the lua id need to add them and where I should put the playermodels zip file and what exactly id need.

1 Week Ago
by JasonMan34 Go to last post
1 64
Lua scripting
 

Lua script not working

I have a script I made that I want people to be able to gamble there Points from PointShop however it seems to not be working at all. We put it in the Addons/lua/autorun/gamble.lua yes nothing works at all. local gambleCommand = "!gamble" local...

1 Week Ago
by keensta Go to last post
0 69
Lua scripting
 

Make a mouse click

I people , I'm trying to modify the VehController_cl.lua , i wan't to do left click and right click for blinker cars . The original codes are : local Key = input.IsKeyDown(KEY_COMMA) and input.IsKeyDown(KEY_LALT) if !ply.VC_KeyAltPrPst and...

1 Week Ago
by Zephruz Go to last post
4 108
Lua scripting
 

I Have A Swep

So I have a swep that fires a prop, but I need to it to recognize when there is no more ammo left to shoot. How would I do that? It keeps shooting even when the ammo says there is no ammo left in it.

1 Week Ago
by bluebull107 Go to last post
9 153
Help
 

solved network string not working (2.0)

-snip- I was really really dumb and used the same identifiers for different hooks. >_> Anyways, solved

1 Week Ago
by JasonMan34 Go to last post
0 33
Lua scripting
 

Learning Lua

Hello! I am a long time Garry's Mod player and I would love to start scripting for it, however I have run into some problems. I have no idea where to start, if someone could point me in the right direction that would be great. If it means anything, I...

1 Week Ago
by Acecool Go to last post
4 175
html
 

solved HTML Server player count

How would you code in get how many players are on a server on your website with HTML? Like this site has http://www.gameserverdirectory.com/search/garrys-mod/

1 Week Ago
by Adzter Go to last post
6 281
Help
 

Timed commands

Hello, I wanted to change the ulx gag and mute commands to have a time, like with the !jail command. I tried a lot of stuff and I ended up fucking up the chat.lua file completely. I'm really lost here. Idk a lot about lua, I tried to take a command...

1 Week Ago
by Acecool Go to last post
12 300
Lua scripting
 

Show player count on server in chat

How would you code an advert for ULX to show how many players are on another server?

1 Week Ago
by UnderYouFive Go to last post
0 104
Help
 

TTT voice drain issue

So my config for voice drain looks like this "ttt_voice_drain" "0" "ttt_voice_drain_normal" "0.2" "ttt_voice_drain_admin" "0" "ttt_voice_drain_recharge" "0.5"

1 Week Ago
by bluebull107 Go to last post
3 100
Help
 

solved Issue with perm pointshop weapon

I was changing some things and I accidentally broke a perm weapon I have in pointshop. After I fixed the error I restarted the server and now the weapon is showing up as un purchased for everyone who had bought it before. I don't want to have to make...

1 Week Ago
by MrTHC Go to last post
2 112
Help
 

solved How to make the murderer unable to buy guns in the Pointshop?

In the items codes there is a way to make it so the murderer can't buy the item but everyone else can. Can any one help me?

1 Week Ago
by UnderYouFive Go to last post
12 212
Help
 

network string not working

Ok so nvm that code, I was being stupid and fucked something up. This is what I'm using right now, and the problem is quite clear: --Server util.AddNetworkString( 'open_motd' ) function chatCommand( ply, text, public ) if (string.sub(text, 1,...

1 Week Ago
by Acecool Go to last post
5 145
QUESTION
1 Week Ago
by YourStalker Go to last post
2 67
QUESTION
 

solved Karma persist

Hi i have this in my karma settings KARMA.cv.persist = CreateConVar("ttt_karma_persist", "1") Yet my karma still resets every time theres a level change,what is it im doing wrong?

1 Week Ago
by Acecool Go to last post
8 120
Help
 

solved Shooting Bouncy Balls (Invisible and crazy physics)

So I have a weapon that I'd like to shoot bouncy balls, exactly like the ones spawnable in sandbox. But I'm encountering a few problems when spawning them with ents.Create. One of them is that it immediately gets removed because of crazy physics. The...

1 Week Ago
by Zet0r Go to last post
6 128
Lua scripting
 

Help with an error?

I have a simple error, not sure why its cropping up: function drawPanel( pName, pPos, pSize, pDrag ) local p = vgui.Create( "DFrame" ) p:SetPos( pPos ) p:SetSize( pSize ) p:SetTitle( pName ) p:SetVisible( true ) p:SetDraggable( pDrag )

1 Week Ago
by rejax Go to last post
10 147
Help
 

Third person for Fretta

I'm trying to make a third person view for Fretta. *player_class local CLASS = {} CLASS.DisplayName = "Barrel" CLASS.WalkSpeed = 200 CLASS.CrouchedWalkSpeed = 0.2 CLASS.RunSpeed = 100 CLASS.DuckSpeed = 0.4

1 Week Ago
by Butthurt Go to last post
3 127
Help
 

solved "The Hunt" Gamemode Not Working?

So, recently I set up a server to run the new gamemode "The Hunt." I uploaded the addon for the gamemode to the garrysmod/gamemode folder as anyone would usually do. Every time I restart the server I get this error in the server console: Couldn't...

1 Week Ago
by Alig96 Go to last post
6 172
Help
 

solved Pointshop New Models

Hi guys! Ok, so I've come to nearly completing my TTT server, other than one thing: pointshop player models! This is probably an issue that commonly comes up, but I'm going to start my own thread about it because I'm that selfish. I managed to get...

1 Week Ago
by MeagreMuffin Go to last post
6 128
Lua scripting
 

solved Need help with making a Custom HUD please.

Hello, Names Jacklin (not my real name but thats what most people know me as now). I tried lua coding for garry's mod before and it turned into a complete Fail, so now im having a fresh start and rather then being creative im taking it step by step...

1 Week Ago
by Acecool Go to last post
2 71