Ares-Core is a dependency used by our other scripts this script does not provide any content to your server
Perfect! Now I have all the context. Here's your comprehensive GitBook documentation:
Configuration Guide
config.lua Reference
This guide covers all configuration options for ares-core. Each section includes explanations, examples, and best practices.
Framework Configuration
Config.Framework = 'auto' -- Options: 'auto', 'esx', 'qb-core'
Config.Debug = true
Framework Detection
The auto setting automatically detects your server's framework using resource state checks:
ESX Detection: Checks if es_extended is started
QBCore/QBOX Detection: Checks if qb-core or qbx-core is started
Fallback: Returns error if no framework found
Manual Override: Set to 'esx' or 'qb-core' to skip auto-detection.
What are Lobbies?
Lobbies are synchronized player instances that allow multiple players to:
Work together on job activities
Receive shared payouts at completion
Lifecycle Management
Character length of lobby codes (e.g., "ABC123")
Inactivity timer before lobby becomes eligible for cleanup
How often the system checks for stale lobbies
Cleanup Logic:
Lobby must be inactive for 2+ minutes AND have 0 players
Prevents memory leaks from abandoned lobbies
Runs every 121 seconds (staggered from timeout to ensure proper cleanup)
⚠️ Warning: Setting GarbageCollectorInterval lower than LobbyTimeout may cause premature cleanup.
Controls the lobby invite notification UI behavior.
Default: 15 seconds before auto-dismissal
Player Action: Can accept/decline before timeout
Post-Timeout: Invite automatically closes
Steam Avatar Integration
Displays player Steam profile pictures in lobby UI.
Setup:
Paste key into Config.SteamApiKey
Fallback: Shows player initials if no API key configured
Discord Avatar Integration
Displays custom Discord avatars in lobby UI.
Setup:
Paste into Config.DiscordBotToken
Fallback: Shows default Discord avatar if no bot token configured
🔒 Security Tip: Keep API keys private. Never commit them to public repositories.
Supported Languages
Additional languages coming soon
Translation Files
Located in: ares-core/shared/lang/
Custom Translations: Duplicate en.json and rename to your language code.
Garages manage job vehicle spawning and return locations for all Ares scripts.
Configuration Fields
Reference point for closest garage detection
Where players return vehicles
Required proximity to return vehicle
Vehicle spawn coordinates + heading
Smart Spawn System
If a spawn point is occupied:
Script checks next nearest garage
Continues until available garage found
Returns error if all garages occupied
Adding Custom Garages
Tips:
Use unique IDs (lowercase, underscores)
Set dropoff.radius large enough for easy access
Test spawn.radius to prevent clipping with nearby objects
Job Vehicle Configuration
Settings Explained
Setting
Description
Example
Base vehicle model for the job
Max concurrent vehicles per lobby
Phase-specific vehicle overrides
Quick Reference
Recommended Settings (by default please use the production settings)
Use Case
Framework
Debug
LobbyTimeout
GarbageCollector