You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
Now after the update, plugins stopped working, because the import principle has changed. It is necessary to return backward compatibility for plugins to work.
import*asaltfrom'alt-server';import*asAthenafrom'@AthenaServer/api';constPLUGIN_NAME='myPlugin';Athena.systems.plugins.registerPlugin(PLUGIN_NAME,()=>{alt.log('Hello from Athena Server!');});
is not working, because we need to add index file in the end:
import*asaltfrom'alt-server';import*asAthenafrom'@AthenaServer/api/index.js';constPLUGIN_NAME='myPlugin';Athena.systems.plugins.registerPlugin(PLUGIN_NAME,()=>{alt.log('Hello from Athena Server!');});
Now code is works, and there is no error anymore.
The text was updated successfully, but these errors were encountered:
Now after the update, plugins stopped working, because the import principle has changed. It is necessary to return backward compatibility for plugins to work.
For example, this code is from documentation:
is not working, because we need to add index file in the end:
Now code is works, and there is no error anymore.
The text was updated successfully, but these errors were encountered: