- Introduction
- Features
- Prerequisites
- Installation
- Configuration
- Usage
- Customization
- Limitations
- Troubleshooting
- Support
Aura-applications is a free, feature-rich FiveM whitelist system designed to streamline the application process for your server. It integrates seamlessly with Discord, providing a user-friendly interface for applicants and powerful management tools for administrators.
- Discord OAuth2 integration for secure authentication
- User-friendly application form
- Admin panel for application review and management
- Automated Discord notifications for application status updates
- Responsive design with dark mode support
- Robust security measures
Before you begin, ensure you have the following:
- Node.js (v14 or later)
- npm (v6 or later)
- A Discord application and bot
- A FiveM server
- Visual Studio Code Build Tools
To install Visual Studio Code Build Tools:
- Download the Visual Studio Build Tools installer from the official Microsoft website.
- Run the installer.
- In the installer, select the "Desktop development with C++" workload.
- Make sure the following components are checked:
- MSVC v143 - VS 2022 C++ x64/x86 build tools
- Windows 10 SDK
- C++ CMake tools for Windows
- Click "Install" and wait for the installation to complete.
- Restart your computer after the installation is finished.
-
Clone the repository: git clone https://github.com/zlexif/aura-applications.git
-
Navigate to the project directory: cd aura-applications
-
Install dependencies: npm install
Create a .env.local
file in the root directory and add the following variables:
DISCORD_CLIENT_ID=your_discord_client_id DISCORD_CLIENT_SECRET=your_discord_client_secret NEXTAUTH_SECRET=your_nextauth_secret NEXTAUTH_URL=http://localhost:3000 DISCORD_BOT_TOKEN=your_discord_bot_token
Replace the placeholder values with your actual credentials.
- Create a new application in the Discord Developer Portal.
- Under the "Bot" section, create a bot and copy its token.
- Enable the following Privileged Gateway Intents:
- Presence Intent
- Server Members Intent
- Message Content Intent
- Invite the bot to your server using the OAuth2 URL generator with the following scopes:
- bot
- applications.commands
- Ensure the bot has permissions to send messages and read message history.
To configure admin users, edit the src/lib/auth.ts
file:
export const ADMIN_DISCORD_IDS = ['your_discord_id', 'another_admin_id'];
Replace the array with the Discord IDs of users who should have admin access.
-
Start the development server: npm run dev
-
Access the application at
http://localhost:3000
.
- Log in with a Discord account configured as an admin.
- Click the "Admin Panel" button that appears after logging in.
- Logo: Replace
/public/logo.png
with your own logo. - Colors: Modify the Tailwind configuration in
tailwind.config.js
. - Application Fields: Edit the form schema in
src/components/whitelist-form.tsx
.
- The system currently supports only Discord authentication.
- File uploads are not supported in the application form.
- The application is designed for use with a single FiveM server.
- Discord authentication issues: Ensure your Discord application credentials are correct and the redirect URI is properly set in the Discord Developer Portal.
- Bot not responding: Check that the bot token is correct and the bot has the necessary permissions in your Discord server.
- Admin access not working: Verify that the correct Discord IDs are set in the
ADMIN_DISCORD_IDS
array. - Build errors: If you encounter build errors, make sure you have correctly installed the Visual Studio Code Build Tools as described in the Prerequisites section.
For issues, feature requests, or general inquiries, please open an issue on the GitHub repository or contact us through our Discord support server.
Thank you for using Aura-applications! We hope this system enhances your FiveM server's whitelist process.