πŸ’»
alt:V Athena Docs v3.0.0
  • Info
    • Introduction
    • Patreon & Support
    • Athena Discord
    • FAQ
  • Installation
    • Common Issues
    • Windows
    • Linux (Ubuntu 20.04+)
    • Debugging
    • Updating
  • Info
    • Admin
    • Configuration
    • Console
    • Database
    • Hotkeys
    • Identifier
  • Plugins
    • Load Plugins
    • Create Plugins
    • Mods
    • Clothing
  • Controllers
    • What is a Controller?
    • Blip Controller
    • Interaction Controller
    • Marker Controller
    • Object Controller
    • Ped Controller
    • Text Label Controller
    • World Notification Controller
  • Systems
    • Interiors
    • Inventory & Items
    • Inventory Rules
    • Jobs
    • Time
    • Weather
  • Menus
    • Menu Types
    • Action Menus
    • Input Menu
    • Wheel Menu
  • Player
    • Admin-Commands
    • Animations
    • Attach Objects
    • Credits
    • Currency
    • Commands
    • Error Screen
    • Message
    • Meta
    • Notifications
    • Particle
    • Progress Bar
    • Save
    • Shard
    • Sound
    • Spinners
    • Task Timeline
  • Custom WebViews
    • Introduction
    • Your First Page
    • CSS Framework
  • Misc
    • Custom Sounds
    • Custom Streamers
    • Custom Icons
    • Adding Locale / Translations
    • Adding Vehicle Rules
    • Adding Whitelist
    • Adding Wheel Menus
    • Adding Parking Garages
Powered by GitBook
On this page
  • Structure
  • Enabling & Disabling Plugins
Edit on GitHub
  1. Plugins

Load Plugins

Learn to Load Plugins

Inside of the main AthenaConfig.json there is a section for loading plugins.

It currently works in two ways.

  • []

    • An empty array for plugins means it will LOAD ALL PLUGINS

  • ['core-character-creator', 'folder1', 'folder2', 'folder3']

    • An array with exact folder names as strings.

    • This will load ONLY the plugins specified.

All plugins should be placed inside the src/core/plugins folder.

Structure

The folder structure is very specific.

It consists of several folders inside your main folder.

  • server

    • This should all be server-side code

  • client

    • This should all be client-side code

  • shared

    • This should be shared between server, client, and webview

  • webview

    • This is a WebView Page you want to inject

src/core/plugins/core-example
  β”œβ”€β”€β”€client
  β”‚   β”‚   index.ts
  |   β”‚
  β”‚   └───src  
  β”‚       β”‚   file1.ts
  β”‚       β”‚   file2.ts
  β”‚       β”‚   file3.ts
  |
  β”œβ”€β”€β”€server
  β”‚   β”‚   index.ts
  β”‚   β”‚
  β”‚   └───src
  β”‚       β”‚   file1.ts
  β”‚       β”‚   file2.ts
  β”‚       β”‚   file3.ts
  β”‚
  β”œβ”€β”€β”€shared
  β”‚   β”‚   file1.ts
  β”‚   β”‚   file2.ts
  β”‚   β”‚   file3.ts
  β”‚
  └───webview
      β”‚   Example.vue
      β”‚   tsconfig.json
      β”‚
      β”œβ”€β”€β”€components
      β”‚       Component1.vue
      β”‚       Component2.vue
      β”‚       Component3.vue

Enabling & Disabling Plugins

In order to disable a plugin, create a file with one of the following names from the list below inside the root folder of the plugin (src/core/plugins/<your-plugin>):

  • disable.plugin

  • disabled.plugin

  • disable

PreviousIdentifierNextCreate Plugins

Last updated 3 years ago