Overview
The Live Map displays:- Player positions from connected FiveM servers
- Active units (LEO, EMS/FD) with their current status
- Active 911 calls and incidents
- Smart signs and motorway signs
- Custom map tiles for specific game maps
Prerequisites
- SnailyCAD v4 installed and running
- FiveM server with SnailyCAD integration (for player tracking)
- Admin access to SnailyCAD
Configuring Live Map URLs
Connect your FiveM servers to the live map.Add Server URL
Click Add URL and configure:
- Name: Friendly name for your server (e.g., “Main Server”, “Test Server”)
- URL: WebSocket URL of your FiveM server
Save Configuration
Click Save to add the server. You can add multiple servers for different game servers.
Multiple Server Configuration
You can configure multiple FiveM servers for different purposes:- Main Server: Primary roleplay server
- Training Server: For training new members
- Development Server: For testing new features
Custom Map Tiles
Customize the map appearance by uploading custom tiles for different game maps (e.g., custom cities, maps beyond default GTA V).Understanding Map Tiles
SnailyCAD uses a tiled map system with 6 tiles arranged in a 2x3 grid:Preparing Map Tiles
Extract Game Map
Use a tool like GTAUtil or similar to extract your game’s minimap:
- Extract the minimap files from your game resources
- The files should be named
minimap_sea_X_Y.pngwhere X and Y are grid coordinates - All 6 tiles are required (0_0, 0_1, 1_0, 1_1, 2_0, 2_1)
Verify Tile Format
Ensure your tiles meet these requirements:
- Format: PNG or JPG
- Naming: Exactly
minimap_sea_X_Y(without extension) - Count: All 6 tiles must be present
- Size: Recommended 1024x1024 or 2048x2048 per tile
Upload Tiles
In the Live Map settings:
- Scroll to the Map Tiles section
- Click the file input to select all 6 tile files
- The system will validate file names
- Click Save to upload
Tile File Permissions
The SnailyCAD server needs write permissions to the client’s public directory:Using the Live Map
Dispatcher Interface
View Players
- Player Icons: Show all connected players from FiveM
- Color Coding: Different colors for LEO, EMS/FD, civilian
- Click for Details: Click any player to see their information
Monitor Units
- Active units show with their callsign
- Unit status is indicated by color
- Click a unit to see full details
Map Controls
- Zoom: Mouse wheel or +/- buttons
- Pan: Click and drag
- Center: Double-click to center on a player/unit
- Filter: Toggle player types, units, calls on/off
- Search: Search for specific players or units
WebSocket Connection
Connection Status
The Live Map shows connection status in the top-right:- Connected (Green): Successfully connected to FiveM server
- Connecting (Yellow): Attempting to establish connection
- Disconnected (Red): Not connected to server
Reconnection Behavior
The Live Map automatically attempts to reconnect if the connection drops:- Initial connection attempt
- If failed, retry every 5 seconds
- Maximum 10 retry attempts
- Manual reconnection available via “Reconnect” button
Data Synchronization
Player Data Updates
Player positions update based on FiveM server configuration:- Position: Updated every 500ms (default)
- Vehicle: Updated when changed
- Identifiers: Updated on connection
Unit Linking
Players are automatically linked to their active units:- FiveM sends player identifiers (Steam ID, Discord ID)
- SnailyCAD matches identifiers to user accounts
- Active units for that user are displayed on the map
- Unit information updates in real-time via SnailyCAD websockets
Troubleshooting
Connection Issues
Cannot Connect to Server- Verify the server URL is correct
- Check that the FiveM server is running
- Ensure WebSocket port is accessible (not blocked by firewall)
- Test connectivity:
telnet your-server-ip 30120
- Check network stability between CAD and FiveM server
- Verify FiveM server isn’t under heavy load
- Increase WebSocket timeout in FiveM resource config
- Check for firewall rules blocking WebSocket connections
Players Not Showing
No Players Appear- Verify FiveM integration resource is running
- Check resource is sending player data (review FiveM console)
- Ensure at least one player is connected to FiveM server
- Verify API URL in FiveM resource config is correct
- Check players have linked their Discord or Steam accounts in SnailyCAD
- Verify identifiers are being sent from FiveM
- Ensure users have active units in the CAD
- Check that unit status is not “Off Duty”
Map Tile Issues
Tiles Not Loading- Verify tiles were uploaded successfully
- Check file permissions on
apps/client/public/tiles/ - Clear browser cache and reload
- Inspect browser console for 404 errors on tile files
- Verify all 6 tiles are present
- Check tiles are same resolution
- Ensure tiles are in correct order (0_0, 0_1, etc.)
- Re-upload tiles if corruption suspected
- Check server has write permissions to tiles directory
- Verify all 6 tiles are selected
- Check tile file names match exactly:
minimap_sea_X_Y - Review server logs for specific error messages
- Check available disk space on server
Performance Issues
Map Loads Slowly- Optimize tile file sizes (use WebP or compressed PNG)
- Reduce tile resolution if too large
- Check server bandwidth
- Enable CDN for static assets if available
- Reduce player update frequency in FiveM config
- Limit number of concurrent players displayed
- Disable unnecessary map features (e.g., smart signs if unused)
- Use hardware acceleration in browser settings
API Endpoints
For developers integrating with the Live Map:PUT /admin/manage/cad-settings/live-map- Update live map settingsPUT /admin/manage/cad-settings/live-map/tiles- Upload map tilesPOST /dispatch/players- Fetch player/unit data for map display
Security Considerations
Restricting Access
Configure which roles can access the Live Map:- Go to Admin > Manage > Permissions
- Configure “View Live Map” permission
- Assign to Dispatch, LEO, EMS/FD roles as needed
Best Practices
- Test with Development Server: Set up a test FiveM server before production
- Monitor Performance: Watch server load when many players are connected
- Backup Tiles: Keep backups of custom map tiles
- Document Server URLs: Maintain a list of all configured servers
- Use HTTPS/WSS: Always use secure connections in production
- Optimize Updates: Balance update frequency with performance needs
- Regular Testing: Periodically verify all servers connect properly
Related Documentation
- FiveM Integration - Set up FiveM server integration
- Discord Integration - Configure Discord features
- Dispatch Guide - Learn to use the dispatch interface