Discord Welcome Lightbox
A FiveM resource that displays a welcome screen on player join, showing Discord connection status, user roles, and provides a Discord invite link. Supports multiple Discord servers with role grouping and customizable UI.
Overview
Section titled “Overview”Night Discord Welcome is a FiveM resource that displays a welcome screen on player join, showing Discord connection status, user roles, and provides a Discord invite link. Supports multiple Discord servers with role grouping and customizable UI.
Key Features
Section titled “Key Features”- Automatic Discord Verification - Checks Discord connection on player spawn
- Real-Time Role Display - Shows all player Discord roles organized by server
- Multi-Guild Support - Support for multiple Discord servers with custom colors
- Guild Grouping - Roles organized by Discord server with colored headers
- One-Click Copy - Easy Discord invite link copying with visual feedback
- User ID Copy - Click-to-copy Discord User ID with hover highlights
- Connection Status - Visual indicators for connected/not connected states
- Customizable UI - Fully translatable with custom colors and themes
- Logo Display - Showcase partner/sponsor logos in the welcome screen
- Manual Command - Check Discord roles anytime with
/discordroles - Tooltip Notifications - Visual feedback for copy actions
- Modern Design - Glass-morphism effects with smooth animations
- Multi-Language Support - Easy translation system for all text
Important Pre-Installation Notes
Section titled “Important Pre-Installation Notes”System Requirements & Compatibility
Section titled “System Requirements & Compatibility”Framework Compatibility
Section titled “Framework Compatibility”- Standalone: Works independently without any framework
- ESX: Works alongside ESX framework, no integrations
- QBCore: Works alongside QBCore framework, no integrations
OneSync Compatibility
Section titled “OneSync Compatibility”- OneSync Legacy: Fully tested and compatible
- OneSync Infinity: Fully tested and compatible
Dependencies
Section titled “Dependencies”- night_discordapi - Required Discord API integration resource
- FiveM Server - Requires FiveM server environment
- Discord Bot - Discord bot must be configured in night_discordapi
Installation Process
Section titled “Installation Process”Step 1: Prerequisites
Section titled “Step 1: Prerequisites”- Install night_discordapi - Ensure Discord API resource is installed and configured
- Configure Discord Bot - Set up Discord bot in night_discordapi configuration
- Verify Discord API - Test that Discord API is working correctly
Step 2: Download Night Discord Welcome
Section titled “Step 2: Download Night Discord Welcome”- Download from CFX Portal Assets after purchasing
- Extract the package to your local machine
- Verify files - Ensure all folders (client, config, html, server) are present
Step 3: Transfer to Server
Section titled “Step 3: Transfer to Server”- Set FTP to binary mode - Critical for proper file transfer
- Upload ‘night_discord_welcome’ folder to your server’s resources directory
- Verify upload - Check that all files transferred correctly
Step 4: Configure Server
Section titled “Step 4: Configure Server”- Add to server.cfg:
ensure night_discordapiensure night_discord_welcome- Ensure proper order -
night_discordapimust load beforenight_discord_welcome - Start your server and verify both resources load without errors
- Check console for successful startup messages
Configuration Setup
Section titled “Configuration Setup”Required Tools
Section titled “Required Tools”Configuration Files
Section titled “Configuration Files”| File | Purpose |
|---|---|
night_discord_welcome/config.lua |
Main configuration settings |
night_discord_welcome/html/style.css |
UI styling and themes |
Configuration Process
Section titled “Configuration Process”- Open VS Code and navigate to
config.lua - Read thoroughly - each setting has explanatory comments
- Configure Discord guild names - Must match night_discordapi config
- Set Discord invite link - Provide your Discord server invite URL
- Customize translations - Edit text strings for your language
- Configure guild colors - Set colors for role grouping headers
- Add sponsor logos - Configure partner/sponsor logo displays
- Test frequently - use F8 console for error checking
Key Configuration Options
Section titled “Key Configuration Options”Discord Guild Names
Section titled “Discord Guild Names”Config.DiscordGuildNames = { ["GUILD_ID_1"] = "Your Server Name", ["GUILD_ID_2"] = "Partner Server Name",}Discord Invite Link
Section titled “Discord Invite Link”Config.DiscordInviteLink = "https://discord.gg/yourinvitecode"Guild Colors
Section titled “Guild Colors”Config.GuildColors = { ["GUILD_ID_1"] = "#FF5733", ["GUILD_ID_2"] = "#33FF57",}Command Settings
Section titled “Command Settings”Config.Command = "discordroles" -- Command to manually check rolesHow It Works
Section titled “How It Works”Welcome Screen System
Section titled “Welcome Screen System”- Automatic Display - Welcome screen appears automatically on player spawn
- Discord Verification - Checks player’s Discord connection status
- Role Retrieval - Fetches all player roles from configured Discord servers
- Status Indicators - Shows visual connection status (connected/not connected)
Role Display System
Section titled “Role Display System”- Multi-Guild Support - Displays roles from multiple Discord servers
- Guild Grouping - Roles organized by Discord server with colored headers
- Real-Time Updates - Shows current role assignments
- Visual Organization - Clean, organized display of all roles
User Interaction
Section titled “User Interaction”- Invite Link Copy - One-click copy with visual feedback
- User ID Copy - Click-to-copy Discord User ID with hover effects
- Tooltip Notifications - Visual feedback for all copy actions
- Manual Command -
/discordrolescommand to check roles anytime
Customization Features
Section titled “Customization Features”- Logo Display - Showcase partner/sponsor logos
- Theme Customization - Custom colors and styling options
- Multi-Language - Full translation support
- Glass-morphism Design - Modern UI with smooth animations
Customization Options
Section titled “Customization Options”UI Customization
Section titled “UI Customization”- Color Themes - Customize colors for guild headers and UI elements
- Logo Placement - Configure partner/sponsor logo display
- Layout Options - Adjust welcome screen layout and positioning
- Animation Settings - Control UI animations and transitions
Translation System
Section titled “Translation System”- Full Translation Support - All text strings are translatable
- Easy Language Switching - Simple configuration for different languages
- Custom Text - Modify all text strings to match server branding
Guild Configuration
Section titled “Guild Configuration”- Guild Names - Customize display names for Discord servers
- Guild Colors - Assign colors to each Discord server
- Role Organization - Roles automatically grouped by server
Commands & Keybindings
Section titled “Commands & Keybindings”Default Commands
Section titled “Default Commands”| Command | Description |
|---|---|
/discordroles |
Manually check Discord roles and display welcome screen |
Customizing Commands
Section titled “Customizing Commands”Edit config.lua to change command:
Config.Command = "discordroles" -- Change to your preferred command nameTroubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Debugging Tips
Section titled “Debugging Tips”- Check F8 Console - Look for any error messages
- Verify Configuration - Ensure all config settings are correct
- Test Discord API - Verify night_discordapi is working independently
- Check Resource Order - Ensure night_discordapi loads before night_discord_welcome
Best Practices
Section titled “Best Practices”Configuration Best Practices
Section titled “Configuration Best Practices”- Match Guild IDs - Ensure Discord guild IDs match between night_discordapi and night_discord_welcome configs
- Test Invite Link - Verify Discord invite link is working and not expired
- Organize Guilds - Use descriptive guild names for better organization
- Set Appropriate Colors - Choose guild colors that match your server branding
User Experience
Section titled “User Experience”- Clear Instructions - Provide players with information about Discord connection requirements
- Welcome Message - Customize welcome screen text to match server style
- Logo Placement - Use sponsor/partner logos appropriately without overwhelming the UI
- Translation Quality - Ensure translations are accurate and match server terminology
Performance Optimization
Section titled “Performance Optimization”- Resource Order - Always load night_discordapi before night_discord_welcome
- Configuration Efficiency - Only configure guilds and roles you actually use
- Update Regularly - Keep both night_discordapi and night_discord_welcome updated
- Monitor Performance - Check server console for any performance warnings
Support
Section titled “Support”Read through the instructions again if you have not managed to install the resource. Can’t get it to work still? Create a ticket through our dedicated support system in Discord: