Skip to content

YuRaNnNzZZ/TFA-SWEP-Base-Documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the official TFA SWEP Base documentation.

Before going through anything from here, make sure you have read through Lua basics guide for GMod here first!

List of contents:

Paths that are loaded by the base automatically (in load order):

  • lua/tfa/enums/ - Early enums initialization (only recommended for early global variables declaration)
  • lua/tfa/modules/ - Base modules (official modules are loaded first; custom modules loading is only kept for backwards compatibility and is unsupported!)
  • lua/tfa/external/ - External modules (code loaded in there is guaranteed to have TFA global variable initalized)
  • lua/tfa/att/ - Attachments (files with base in their name are loaded first)

All paths (except attachments) support client and server-side separation by prepending cl_ or sv_ to the file name.

For any questions regarding this documentation or any problems with developing addons for TFA Base, post in #development-help channel of the official support Discord server.

If you want to translate the base to your language, take a look at the localization reference!