![creating addons for gmod creating addons for gmod](https://www.commonsense.org/education/sites/default/files/experience-media-file/garryscreen1.jpg)
Extra accessiblilty will also help with getting your addon noticed and downloaded if you're planning on uploading it to the Workshop. It would be greatly appreciated if you included support for multiple languages into your addon so that it becomes more accessible for users. Sounds types accepted are: *.wav, *.mp3 and *.ogg. gamemodes/terrortown/content/sound/ Note This has the benefit that they're only loaded when you're using the ttt/2 gamemode. Sound Files ¶Ĭustom sounds for your SWEP will need to be stored in this folder if you're not going to use the default sounds from GMod.
![creating addons for gmod creating addons for gmod](https://i.ytimg.com/vi/14hZHravpP0/maxresdefault.jpg)
GMod default weapon model paths are found here.
CREATING ADDONS FOR GMOD HOW TO
It's advised that even if you're using non-GMod models that you include them in the addon because not all users will own CS:S or Half life, etc.ĭocumentation on how to create models will be uploaded soon. Model files for the SWEP will also need to be stored in the addon folder, unless you're using the default ones which come with source games. The basics about creating icons can be found here. Your *.vmt and *.vtf icon files (what gets shown in the buy menu) will need to be stored in this format: gamemodes/terrortown/entities/weapons/weapon_ttt_/.lua Icon Files ¶ Your weapon's lua file must be in this format: If your structure is all wrong, them gmod won't recognise the files and your addon will break. The most important thing you must get right about weapons (or addons in general) is the folder structure. Using those instructions for setting up the editor and project structure/management will make it easier for us to support you with any problems while coding. For this guide I'll be using the Visual Studio Code with the glualint extension as referenced in the Creating An Addon section of these documents. When starting content creation for gmod, creating a basic weapon using the SWEP structure is one of the easiest things you can do.