Addon Folder Loading - Mantibro/SlashCo GitHub Wiki

SlashCo will load folders in other addons right alongside (or after) the gamemode loads in order to allow for other addons to add in their content. There aren't any pages for how to add content to the gamemode just yet. Please look into the gamemode's code for examples (under the lua folder)

Currently, SlashCo doesn't support custom subfolders. This could be changed in a future update.

The folders the gamemode loads are as follows:

<YOUR GAMEMODE FOLDER> / lua / slashco /
    configs / maps   # Config files for maps. Name should equal the name of the map the config is for. SHARED
    effect           # Effect definitions. Each new file should contain the functioning code for one effect. SHARED
    item             # Item definitions. Each new file should contain the functioning code for one item. SHARED
    lang             # Localization definitions. Each new file should contain all of the text for a new language; the name must be gmod's code for the language. CLIENTSIDE
    slasher          # Slasher definitions. Each new file should contain the functioning code for one slasher. SHARED
    patch /          # The subfolders in here load after certain parts of SlashCo's init. There's no conventions for what each file is, it's purely for mods.
        client       # Loads after SlashCo's client code has finished. CLIENTSIDE
        server       # Loads after SlashCo's server code has finished. SERVERSIDE
        shared       # Loads after SlashCo's server and client code has finished. SHARED
        effect       # Loads after all of SlashCo's effects have loaded. SHARED
        item         # Loads after all of SlashCo's items have loaded. SHARED
        lang         # Loads after all of SlashCo's lang files have loaded. CLIENTSIDE
        slasher      # Loads after all of SlashCo's slashers have loaded. SHARED