Lua folder breakdown
From GMod Wiki
Lua: Lua folder breakdown. |
Description: | Where to put all your files. |
Original Author: | Esik1er |
Created: | December 18, 2006 |
Contents |
What you will learn
This article is intended to inform you on the Garry's Mod folder breakdown. I will tell you:
- Where to put SWEPs.
- where to put scripts.
- Where to put a game mode.
- where to put an addon.
Notes:
- Scripts.lua is ONLY an example.
- What to do with a .zip/.Rar.... usually people are nice and make it so you just have to extract it to your Garry's Mod folder... But if not just follow what I say below.
- It's Lua or lua not LUA. ( Saying LUA makes people mad )
- It's SWEP not swep. ( Scripted Weapon )
- It's STOOL not stool. ( Scripted Tool )
Where to put your SWEPs.
garrysmod -> lua -> weapons -> weapon_folder -> Scripts.lua
OR
garrysmod -> addons -> lua -> weapons -> weapon_folder -> Scripts.lua
Where to put a game mode.
garrysmod -> gamemodes -> GameMode_Folder -> ( Sub Folders / files )
OR
garrysmod -> addons -> gamemodes -> GameMode_Folder -> ( Sub Folders / files )
Where to put any old script.
garrysmod -> lua -> Scipts.lua
OR
garrysmod -> addons -> lua -> Scripts.lua
Where to put an addon.
garrysmod -> addons -> Addon_Folder -> lua/gamemodes/maps et cetera
Extras.
The folder _downloaded is only for things you downloaded from other servers. I.E. all the client side stuff. ( GUI / SWEP Effects / Any other effects Et cetera. )
If all else fails go ask the creator of the script. Saying that you followed all the directions will make them answer you faster / more politely. Saying things like "Your script sucks and doesn't work!!!" will just make the author of the script angry.