Logs
The YSeries phone system includes a comprehensive logging mechanism that tracks and reports various phone activities to Discord webhooks.
Features
Discord Integration: Automatic posting to Discord channels via webhooks
Batch Processing: Efficient log queuing and batch sending to reduce API calls
Multi-App Support: Dedicated logging for different phone apps and features
Special Monitoring: Advanced monitoring capabilities for specific activities
Customizable Formatting: Rich embed formatting with custom colors and avatars
Automatic Cleanup: Built-in queue management and timeout systems
Configuration
Basic Settings
Configure logging in config/config.logs.lua
:
Webhook Configuration
IMPORTANT: You must configure webhook URLs in your server.cfg
file using the following convars:
Setup Steps:
Create Discord Webhooks:
Go to your Discord server settings
Navigate to Integrations → Webhooks
Create webhooks for each channel you want logs in
Copy the webhook URLs
Configure server.cfg:
Open your
server.cfg
fileAdd the convar lines above with your actual webhook URLs
Replace
"YOUR_DISCORD_WEBHOOK_URL_HERE"
with your webhook URLs
Example Configuration:
Restart Server: Restart your FiveM server for changes to take effect
Avatar Customization
Set custom avatars for different log types:
Color Configuration
Customize embed colors using hex values:
Supported Log Types
Social Media Apps
InstaShots
Posts: Photo/video uploads and interactions
Messages: Direct messages between users
Activities: Likes, comments, follows
Y (Twitter-like)
Posts: Tweet creation and interactions
Messages: Direct messages
Activities: Retweets, likes, replies
Communication Apps
Phone Calls
Call Logs: Caller/recipient information
Anonymous Calls: Special handling for anonymous calls
Call Duration: Track call lengths and outcomes
Messages (SMS)
Text Messages: Content and participant tracking
Group Messages: Multi-participant conversations
Media Sharing: Photo and location sharing logs
DarkChat
Channel Messages: Encrypted communication tracking
Special Monitoring: Advanced surveillance capabilities
User Activity: Join/leave events
E-Commerce Apps
YBuy (Marketplace)
Listings: Item postings with details
Transactions: Purchase tracking
Contact Information: Seller/buyer details
YPay (Payment System)
Transactions: Payment processing logs
Transfer Details: Amount and participant tracking
Payment Methods: Card/cash transaction types
Advanced Features
Batch Processing
Logs are automatically batched for efficiency:
Queue Size: Sends immediately when 10 logs are queued
Timeout: Sends all queued logs after configured timeout (default 60 seconds)
Memory Management: Automatic queue cleanup after sending
Security Considerations
Webhook Protection
Secure Storage: Store webhook URLs in
server.cfg
using convars (as shown above)Access Control: Restrict access to your
server.cfg
file - only server administrators should have access
Troubleshooting
Common Issues
Logs not appearing in Discord:
Check webhook URLs are correct and active
Verify Discord channel permissions
Check server console for HTTP errors
Partial log information:
Ensure all required fields are provided
Check specialized formatter implementations
Verify additionalData structure
Rate limiting issues:
Increase timeout value to batch more logs
Check Discord rate limit responses
Last updated