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

NEED A CODER? DON'T MAKE A THREAD - LAST UPDATED 25 OCTOBER 2013 - READ THIS

We are not interested in threads that state you are looking for a coder for your server/addon/gamemode. Please instead use these resources: https://scriptfodder.com/ Want to learn to code? http://facepunch.com/showthread.php?t=1250283

garry 1 people are reading this thread x 1 Winner x 38
3rd September 2014
by NiandraLades Go to last post
2 17,875
Garry

MODDING HELP - READ ME FIRST - LAST UPDATED 5 OCTOBER 2015

This forum is for help modding Garry's Mod. This does NOT include Mapping or Modelling. Mapping: http://facepunch.com/forums/40 Modelling: http://facepunch.com/forums/38 Your first port of call should be the Garry's Mod Wiki. If you don't find...

garry Lua King x 28
27th February 2013
by garry Go to last post
0 18,307
Lua

ScriptFodder - The Garry's Mod Marketplace ( 2 3 4 5 .. 59 60 61 62 Last )

ScriptFodder - The Garry's Mod Marketplace ScriptFodder is tailored towards two types of people, if you're a Garry's Mod server owner, ScriptFodder can offer a variety of premium content for your server, or if you're looking for something a little more...

Handsome Matt Thread has images 18 people are reading this thread x 18 Dumb x 26
54 Minutes Ago
by Apickx Go to last post
2,448 91,955
Help

Derma screen help

So i created a derma screen and stuff and i just need a command to open it via chat example !odst if anyone can make a command that if u type !odst it opens my derma screen, im a beginner coder so im sry :3

Jason138 1 people are reading this thread x 1
1 Hour Ago
by Jason138 Go to last post
5 77
Help

DarkRP Jobs aren't Showing Up... No Lua Errors or Anything.

Welp, I'm about to throw my computer out the window. I absolutely hate going on these forums to ask for help, but I'm becoming extremely desperate. It was showing some weird category errors earlier which were fixed by changing the sort order, but other...

Orshal4 3 people are reading this thread x 3
1 Hour Ago
by Orshal4 Go to last post
2 38
Release

GMod - What are you working on? August 2016 (#60) ( 2 3 4 5 6 7 8 Last )

Highlights from the previous thread

2 Hours Ago
by Giraffen93 Go to last post
315 24,148
Help

help with file.Write and etc. LUA

hey guys, i have a test server and i think it would be fun to troll some of my friends , to think i hacked them. so i found some lua steal code on some sites but i cant get them to work. :/ heres one of them this code is from someone named bobblehead , i...

cudex 2 people are reading this thread x 2
3 Hours Ago
by cudex Go to last post
4 70
Question

Consolechat command, help

So i made a console command thing and i need a script that if i for example type !test it executes the console command. Anyone?

Jason138 3 people are reading this thread x 3
3 Hours Ago
by proxene Go to last post
1 39
Help

[lua]Health and Armor Bar going the wrong way

Hi i have a little problem with my health and armor bars am trying to to get the health and armor bars to go down not up, is there i way so it the other way. https://gyazo.com/f15e5c0e8549a411b8e3d5ccec2fbfb5 ...

3 Hours Ago
by Detxer99235 Go to last post
2 53
Help

DFrame Weapon ??

Hello, I have a problem, when we do a right click with a weapon my interface DFrame opens correctly but in 5,6,12 steps how is that it opens that once? I thank you in advance. Regards, Proxene

3 Hours Ago
by proxene Go to last post
0 23
Help

solved collision entities

Hello , I have a problem, I do not know what should I do, for example: My entity wood if it collides with a box so ... If anyone has an example of the condition to use I'm interested :D Can you help me ? thank you in advance

3 Hours Ago
by proxene Go to last post
5 179
Help

help with lua

hey guys, how do i make this work : if(SERVER) then net.Receive("receiveddupe", function(len, ply) local dupe = net.ReadString() for k, v in pairs(player.GetAll()) do v:SendLua("MsgN(\"Received dupe:" ..dupe .. " from player"...

3 Hours Ago
by code_gs Go to last post
11 206
Help

Custom Gamemode: Adding Money

I have started to make a Custom gamemode for one of my future servers but i don't know how to get money on it. thanks for your time!

4 Hours Ago
by Detxer99235 Go to last post
2 62
Humor

Reviving Fretta gamemode

Alright, gentlemen. Since introduction of the brand new server browser made by Garry himself, many people expressed their sincere woes about loads of small gamemodes being unnoticed. I have a proposal to revive "Fretta" category in slightly different...

Noi
4 Hours Ago
by Apickx Go to last post
13 441
Help

game.GetIpAddress() working hook

Is there any hook that I can use if the server has initialized completely? Because GetIpAddress() only works after the first player connected, but a PlayerInit hook isn't always working for this. Regards, ibot3

4 Hours Ago
by ibot3 Go to last post
2 223
Help

Print text for for team issue

Hello i am creating a Undercover job and i want text above the players head that is using the job "Undercover" this is what i have so far only simple. function DrawUndercoverIndicator(ply) local zOffset = 50 local x = ply:GetPos().x local y =...

5 Hours Ago
by KFord Go to last post
0 43
Help

Gmpublish_linux Error while loading shared libraries

I'm trying to publish an addon to the workshop with the following code in shell. #!/bin/sh gmad_publish_file=$HOME/Documents/wew/project/project_workshop.gma gmad_publish_icon=$HOME/Documents/wew/project/icon.png cd...

5 Hours Ago
by xDShot Go to last post
2 68
Help

What about changing the Props List for the client ?

It's something I really want to do. I need to have a custom Spawn List for the props. I read a lot of bullshit about how bad it can be for the client because it will fucked up his Props List on other servers too. I visited some servers where they find how...

5 Hours Ago
by Moku Go to last post
3 103
Help

HUDPaint() Traitors can see detectives

Hello. I'm doing some experiments, with HUDPaint(). I would like to make traitors can see a text "Detective" in the exact position of the detectives, simple not? I made something like this: hook.Add( "HUDPaint", "DetectiveText", function() for...

6 Hours Ago
by AwfulRanger Go to last post
5 98
Garry

Next Update v5 - April 2016 Update is out! ( 2 3 4 5 .. 23 24 25 26 Last )

http://cdn.akamai.steamstatic.com/steam/apps/4000/header.jpg?t=1421333577 Changelog Main repository Pull requests Latest update is out: http://www.garrysmod.com/2016/04/28/april-2016-update/

6 Hours Ago
by meharryp Go to last post
1,000 71,299
Lua

DarkRP Jobs Subcategories?

On DarkRP when you have many categories it can look... well quite bad. My question is in relation to whether it is possible in DarkRP to have a category under another category. For example, in StarWarsRP. Generally they have many jobs with lots of...

6 Hours Ago
by SteppuFIN Go to last post
3 66
Garry's Mod

Garry's Mod Wiki Discussion ( 2 3 4 5 .. 9 10 11 12 Last )

We've been talking about the wiki in about 4 different threads. So here's one dedicated to it. http://wiki.garrysmod.com/ I just added a more functional sidebar. Typing in the search box should filter the contents of it. It should also open up...

garry Thread has images 1 people are reading this thread x 1
6 Hours Ago
by Robotboy655 Go to last post
469 20,064
Help

Spawning Vehicles into maps

So Im a beginner at lua (well not good at it) so sorry if this seems dumb or easy I want to spawn vehicles into my map automatically (like weapons). So far I've tried a lot with ENT:SpawnFunction but with no luck Please tell me how I would do this or...

6 Hours Ago
by code_gs Go to last post
3 83
Help

solved Vice City HUD Weapon Icons problem

Hello there! I making hud styled like Vice City HUD, but sometimes i get errors and i think i does something wrong. addons/vicecityhud/lua/autorun/vicecityhud.lua:168: Tried to use a NULL entity! 1. GetClass - :-1 2. v -...

8 Hours Ago
by JessePinkman Go to last post
6 69
Help

solved Set Custom Animation Frame Or Time?

Is it possible to set the time of a custom animation on an entity. I tried http://wiki.garrysmod.com/page/Entity/SetAnimTime but it seems to have no effect on it, it just runs the animation once and does not loop or adjust with that. -EDIT- Used...

0V3RR1D3 1 people are reading this thread x 1
9 Hours Ago
by 0V3RR1D3 Go to last post
0 39
Help

Several questions with movements and some SWEP

Hello Facepunch, Currently, I'm working on a mod to redesign and rebalance some of the basic mechanics of TTT, because the existing shooting mechanics are honestly just plain bad. I've made a lot of progress, but there's a few things I've ran into I...

10 Hours Ago
by OperatorDandy Go to last post
5 229
Help

Override viewmodel/worldmodel textures in weapon's lua

Is there any way to override a weapon's viewmodel and worldmodel textures in the weapon's lua file. By this I mean not just a random texture but a retexture of that weapon's models. The best example of this is xDShot's CS:GO knives, as many of the knives...

11 Hours Ago
by TFA Go to last post
10 236
Post Your

Problems That Don't Need Their Own Thread v4 ( 2 3 4 5 .. 81 82 83 84 Last )

Welcome to Problems That Don't Need Their Own Thread v4! Have a small problem in your Lua code that keeps nagging you, but you feel like it's not worth making a thread for? Well then you've come to the right place! Reply to this thread with your...

11 Hours Ago
by VIoxtar Go to last post
3,333 87,104
Help

RunConsoleCommand

Hi, I made this script but don't work, you know why ? thx for your help if ply:Team() == TEAM_GIGN then RunConsoleCommand( nv_toggle_nightvision, 1 ) end

12 Hours Ago
by sannys Go to last post
20 312
Lua

(Lua) Find a GetModel() owner.

It is necessary to do so, that would show the owner model, not the local player. How to do it? code:

13 Hours Ago
by xbeastguyx Go to last post
1 120
Lua

Need Help With LUA Errors And Other Things On My Gmod Server

Problems: So I am hosting a Gmod server on DarkRp. Everything was fine until I installed a script called Notification Themes. I uninstalled it and now there are problems on the console and on my server itself. In game my Q and C menu won't work only on...

18 Hours Ago
by code_gs Go to last post
11 169
Release

The Worst Backdoor Ever Seen

I'm not sure if this is the correct place for this, but the coding quality of this backdoor is worth discussing on its own. It works off nickname... Mod in question: ...

TFA Thread has images 2 people are reading this thread x 2
19 Hours Ago
by sants1 Go to last post
5 405
Lua

Any sort of way to change friction, that works?

I have been playing in gmod for a while making mods that used gmod_ice material. The problem is, it feels like that material is a friction coefficient of .01, which is too much, is there any way to lower friction, or make a physics mayerial> Thanks

21 Hours Ago
by Tangyboxhead Go to last post
0 87
Help

Server constantly lagging for no reason.

Server will constantly lag for no apparent reason. Idk if it's the addons I have installed or the map or something like that. Players will just randomly auto-disconnect and then go back to normal. Here is a screenshot of net_graph 4:...

23 Hours Ago
by Jason138 Go to last post
4 87
Help

Everyone can noclip [Edited server.cfg/Edited tab menu]

I've been asking for help but I haven't got anything to work. I have edited the server.cfg to make noclip as 0. I restarted the server, it didn't work. I went into the server settings in the tab menu as well and that didn't work either. I don't know any...

23 Hours Ago
by Jason138 Go to last post
21 352
Help

solved Arc Library Help

Hello, I recently have been wanting to get into making radial elements like a circular progress bar. After finding that i am god awful at making my own workaround i used the arc library. However when using it i have found that it turns out like this:...

1 Day Ago
by chudders1231 Go to last post
0 53
Help

Editing default spawnlists

Hi, on my server i have a problem where the model precache will overflow once every 2 days perhaps because over 4000 (ish) unique props have been spawned. I have tons of blacklisted props in my server but attempting to spawn a blacklisted model adds it to...

1 Day Ago
by Blinkenn Go to last post
9 131
Help

Derma screen command

i have created a derma (dont have the code right now since im on my laptop not pc) and i need a way to when someone types !odst they open the derma screen. can someone help me create it? ( if u feel like making it your self then sending it to me feel free...

1 Day Ago
by Jason138 Go to last post
0 58
Humor

[EXPLOIT] Unisec Security Vuln

Garry's Mod coders are lazy as shit and don't think about security. The code linked allows anyone to instantly keypad crack a keypad using the Unisec keypad cracker https://gist.github.com/JamieH/c95540676aa06d8cdbffebd0e24f7f33 ...

1 Day Ago
by xXMr HappyXx Go to last post
9 379
Lua

solved Aligning surface.DrawRect

Hello, I am making a HUD and I would like the armor bar to reduce from the left rather than the default right. I have posted a video that might help explain. Here is the code I am currently using. armor = LocalPlayer():Armor()...

1 Day Ago
by SnappyCo Go to last post
12 322
Shitpost

solved Is there anyway to remove a halo from a entity?

I figured out how to draw a halo around a entity, and I wanted to know if there was a way to remove the halo without removing the entity itself? I already tried redrawing the halo with a color that included an alpha of 0, but it is still visible: ...

1 Day Ago
by LeeTheCoder Go to last post
3 68
Help

Set entity model after entity is spawned?

Hey there! I've been having some issues with a simple bit of code I've been trying out. I want to set the model of a TTT corpse entity when it's identified if the body belonged to a Traitor. However, I can't seem to set the model without making it...

1 Day Ago
by Bytewave Go to last post
4 185
Help

Lua code help net library

im making a net message function to notify the admins when a dupe is spawned so is it possible to trigger this when another net message is called?, for example if the net message "ArmDupe" is called, can i create some code to make it run the net function...

1 Day Ago
by cudex Go to last post
0 71
Help

solved FindMetaTable("Player") works only server-side

Hello. In server-side, i made something like this (Example): local meta = FindMetaTable( "Player" ) function meta:IsEx() return ex

1 Day Ago
by Predda Go to last post
4 91
Help

solved respawn map weapons

theres any kind of addon out there you know that respawnes the map weapons? lets say the weapons in ttt or any kind of map contains map weapons in it. long story sort: i need help to find code/addon that respawnes the map built in map weapons

1 Day Ago
by PizzaDoxy Go to last post
6 174
Help

solved HUDDrawTargetID() see other traitors

Hello. I'm learning to use the hook HUDDrawTargetID(), because I didn't found anything in the web. I would like to make traitors can see where is other traitors with a text, I made this but it is very badly coded: hook.Add("HUDDrawTargetID",...

1 Day Ago
by Predda Go to last post
6 134
Help

env_sun GetPos

Just wondering what the best way to parse the angle of env_sun to GetPos would be (in order to traceline to it)? No idea even where to start with this. (not specifically GetPos, just parse sun angle to position in the map)

1 Day Ago
by Robotboy655 Go to last post
1 92
Help

solved Weapon sound not looping (like Nyan Gun)

Hello everyone! I was attempting a simple change to the Nyan Gun SWEP by Rubat, or more specifically the Temmie/Gaben gun since their music files were way too large, and clipping the sound file seems to stop the music from looping properly. The only...

1 Day Ago
by Robotboy655 Go to last post
3 109
Help

solved How to use Net Library

I have been reading about it for a week now. Trying to understand how it works trought the Wiki and facepuch threads. But every time I use it, I fail to accomplish anything.(As if no data was transfered to the client Here is the code I am currently...

1 Day Ago
by Marmigamed Go to last post
10 259
Help

Server side methods using key_enums, rather than in_enums?

I am developing a mod where many keys are used, the problem is, to detect the key presses i am using KeyDown() in a loop, however i am running out of keys. I then looked and found a couple of other ways like input.iskeydown, and "playerbindpress" but none...

2 Days Ago
by MPan1 Go to last post
3 111
Question

How would I carry over a network value through a duplication?

Hello, I've been working on coding a large addon for the past week and have been plowing along, but I've become stumped recently and was wondering if anyone here could help me. In my addon I can link my gun, ammo, etc entities to engine entities with a...

2 Days Ago
by Dakota0001 Go to last post
8 249
Lua

Lua Animations API beta ( 2 3 4 5 .. 8 9 10 11 Last )

This is a script that allows you to create dynamic animations using only Lua. Two example stances are included. It is obviously for coders. There is no use for the average gmod user. Use Entity(1):SetLuaAnimation("staffholdspell") or...

JetBoom Thread has images 3 people are reading this thread x 3 Useful x 48
2 Days Ago
by buu342 Go to last post
424 74,410
Help

Gmod Lua - Making Addons

Hey, I have been trying to learn lua for a while now. It's just that I can't figure out where to start. I have read a good amount on wikis but I have no idea what to implement into the software, where to implement stuff, how to code the things that I...

2 Days Ago
by Thane Go to last post
1 175
Help

"Un-strip" weapons

Hello. Excuse me for any grammatical errors. I am editing a weapon that when you shoot someone, you strip all his weapons, I would like to make after some seconds he receive all his stripped weapons. I make something like this (This is only an...

2 Days Ago
by NeatNit Go to last post
5 154
Help

Weapons with no ammo after death/spawning

Sometimes when players spawn in (citizen) with weapons, they have ammo but other times they don't. For instance, our custom classes already have guns so when they first spawn in with their job, their guns have ammo but when they die they lose their ammo....

2 Days Ago
by Algea Go to last post
0 72
Lua

How can i make serverside tread through tables?

How can i make serverside tread through tables? blablabla = {} blablabla = { MoneyCost = 500, AmountGiven = 500 } blablabla = { MoneyCost = 800,

2 Days Ago
by Klaes4Zaugen Go to last post
3 122
Help

CSoundPatch/CreateSound cuts out after abitrary length of time.

I'm attempting to play a 20 second long 44100 Hz. wav clip using CreateSound(). The sound plays fine, but as the title says, cuts out. Here's the code, which is being run serverside: local snd = Sound("ambience/test.wav") local ply = Entity(1)...

2 Days Ago
by Robotboy655 Go to last post
4 143
Lua

Gmod Lightsabers

Recently the creator of lightsabers in gmod has updated it where there isn't any knock back and everyone in my server hates it. I just found a version of the lightsabers for darkrp without force powers but it has knock back, and so i need help adding the...

2 Days Ago
by Klaes4Zaugen Go to last post
7 309
Love

solved Best way to network serverside mesh for to client on entity creation? Alternative solutions welcome.

Hey there. I'm trying to make a brush-based forcefield entity to make stuff easy for mappers. It needs to be able to take damage and "break". To goal is to simply lay a brush out in Hammer and then use the information about the brush to create the...

2 Days Ago
by wauterboi Go to last post
6 237
Help

Scale bodygroups?

Just wondering if there's anyway to scale the bodygroups of a playermodel in lua to make it appear more muscular, without actually changing the size of the model? Can't find any documentation on what I'm looking for.

2 Days Ago
by Kilgrave Go to last post
4 138
Lua

Is there a way to put a caracter creation menu into a DarkRP gamemode?

So i was wondering how to fix so when you join my server for the first time it pops this little box up for you which makes you costumize your caracter, Name, skin colour etc.. Im using DarkRp and it's kinda annoying to have different playermodels for...

2 Days Ago
by orc Go to last post
3 121
Help

How to get M9K weapons to spawn in TTT using ttt_random_weapon

I am trying to get M9K guns to spawn using this code in ent_replace.lua local hl2_weapon_replace = { = "ttt_random_weapon", = "ttt_random_weapon", = "ttt_random_weapon", = "ttt_random_weapon", = "ttt_random_weapon", =...

2 Days Ago
by KyleTheKing Go to last post
10 904
Help

solved env_sun?

I'm trying to adapt a day/night addon to work with a map that doesn't have an env_sun. I have done this so far if #ents.FindByClass("env_sun") >= 1 then SW.Sun = ents.FindByClass("env_sun") SW.Sun:SetKeyValue( "targetname", "sun" )...

2 Days Ago
by Robotboy655 Go to last post
1 103
Help

solved How to use curtime so setup a kind of round timer

I have been trying to retrieve my timer's time left. only to just give up and search the internet. Turns out it is better to do something with curtime(). But I haven't been able to display an accurate timer. Here is the code I have right now....

3 Days Ago
by Marmigamed Go to last post
3 132
Help

Obsfucate Lua Code

Hi Facepunch i want to obfuscate my lua code so it will be harder for leakers/crackers to crack it, yes IK its still very easy to deobsfucate, but still i wanna know how to do it, i've seen some guy obsfucate a lua string with"...

3 Days Ago
by Apickx Go to last post
23 981
Lua

What is the best SWEP base?

What is the best swep base for, maybe porting weapons? Or even just overall best

3 Days Ago
by wauterboi Go to last post
7 288
Lua

Calling a clientside variable from serverside function

Hello world ! This is my clientside code CreateCharacter = vgui.Create( "DButton", NewCharacter ) CreateCharacter:SetText( "Creer un nouveau personnage" ) CreateCharacter:SetTextColor( Color( 255, 255, 255, 200 ) ) CreateCharacter:SetPos( 120,...

3 Days Ago
by sannys Go to last post
1 148
Help

solved Timer F's up every time i die or suicide.

Weapons Code: SWEP.Gun = ("m9k_m4a4") -- must be the name of your swep but NO CAPITALS! if (GetConVar(SWEP.Gun.."_allowed")) != nil then if not (GetConVar(SWEP.Gun.."_allowed"):GetBool()) then SWEP.Base = "bobs_blacklisted" SWEP.PrintName = SWEP.Gun...

3 Days Ago
by XxLMM13xXx Go to last post
1 146
Lua

How can I add reload to my SWEP?

You might have thought I am a stupid for asking how to reload but my case is different. http://pastebin.com/WV8KU2sw Here is my swep but I used my reload function as changing the sounds,how can I add actual reloading?

3 Days Ago
by brooks Go to last post
0 96
Help

solved EntityTakeDamage in vehicle

Hello. Excuse me for any grammatical errors. I'm having some problem with this code: hook.Add("EntityTakeDamage", "PlayerInVehicleDamaged", function() if ( target:IsVehicle() ) then local ply = target:GetDriver() if ( IsValid( ply ) &&...

3 Days Ago
by Predda Go to last post
10 306
Request

A Final Plea for a more Robust & Intelligent Server List ( 2 3 4 5 Last )

I've been playing Garry's Mod for 9 years, I've been a developer, mapper, small community leader, and a player. My nostalgia for this game is unparalleled, having been involved in NoxNet, Gmod Tower, Sassilization, Puslar Effect, Darkland, TacoNBanana, ...

3 Days Ago
by ZeBull Go to last post
161 6,247
Lua

Removing vgui avatar picture

In a custom hud im making i use the the players avatar but its causing lag issues that cause gmod to crash, Ive been trying to figure out how to remove the old vgui avatar after a new one has been drawn. the code :http://pastebin.com/m0j0TiV8 any...

3 Days Ago
by MPan1 Go to last post
5 171
Release

FastDL Server

Hello, im offering free FastDL Hosting for a limited amount of people. i recently got a few dedicated servers in a special promotion. i have alot of spare server power so im giving away 100 FastDL Server's! if you want one please message me how much space...

3 Days Ago
by gonzalolog Go to last post
1 145
Help

Can't set bodygroup on client in multiplayer

I have a viewmodel with bodygroups and I'm using AE_CL_BODYGROUP_SET_VALUE in animation event, which works perfectly in singleplayer, but does nothing in MP because runs on client. Is this a bug or something? How do I set a bodygroup then?

3 Days Ago
by TheMostUpset Go to last post
9 232
Lua

solved I feel stupid.

I feel absolutely retarded, I have been making a three-way SWEP for garrys mod as three way sweps are more stable/sturdy but I had'nt managed to make it multiplayer compatible. The three way swep works perfectly in single player but as I foolishly used...

4 Days Ago
by Deception_ Go to last post
13 743
Help

Need Spawn Help

Hello Facepunch , I've been working on initial spawn on my server...I want Citizens to spawn in a certain space , i get no errors but doesen't work , anyone able to fix this for me ? I'd be greatful if (SERVER) then

4 Days Ago
by MPan1 Go to last post
2 137
Help

Shipments not spawning

Hi, I have made some custom shipments for the gun dealers and they show up in the f4 menu fine however when you try to spawn them in an error message appears saying shipment unavailable 20th August 2016 The message appears in the lower right corner...

4 Days Ago
by Sean-Prentice Go to last post
3 147
Help

TTT Advanced End Round Music

if ( SERVER ) then --] innowinsounds = { }

4 Days Ago
by pants73 Go to last post
4 223
Lua

Hiring a Coder MegaThread ~ Rip In Peace CoderHire ( 2 3 4 5 .. 10 11 12 13 Last )

New Gmod Scripts/Jobs Site: ScriptFodder By now we all heard the news that http://coderhire.com/ is going to be closing it's doors so might as well go back to the good ol' megathread days. This thread is for anyone who wishes to hire a coder to...

4 Days Ago
by Klaes4Zaugen Go to last post
511 35,783
Help

Confusion with local functions (Failure to be called)

I make multiple mods and the scripts are similar yet different. The problem is that if two functions have the same ID/Name they overwrite each other. So I think "Oh maybe.. I can use local functions! those are only in the scope of the entire script...

4 Days Ago
by Tangyboxhead Go to last post
3 162
Lua

Bug on frozen entities

Hi everyone , i have some bugs with this script timer.Create( 'AlienIsolation_RespawnCrates', 20, 0, function() local crates_found = ents.FindByClass( 'item_ai_crate' ) for i, v in pairs( crates_found ) do local pos, ang, mdl =...

4 Days Ago
by Robotboy655 Go to last post
1 155
Lua

"Unregister" a SWEP/SENT

Which way is the best way to "unregister" a SWEP/SENT? I want to replace the default TTT knife with another one. And I don't want to remove the file because I hate removing gamemode related files. I didn't found any function that can easily be used...

4 Days Ago
by code_gs Go to last post
2 123