txAdminLogs_v2
Replaces the old txAdminLogs implementation with a modular, table-driven system. Adds new files (fxmanifest.lua, main.lua, settings.lua, utils.lua) and removes the previous monolithic scripts. Logging is now fully configurable via settings.lua, supports per-event webhooks, and features improved formatting and timestamp handling. Updates README with new installation and configuration instructions.
🛠️ txAdminLogs
A lightweight, standalone logging system for FiveM that automatically captures and routes txAdmin events to Discord.
✨ Features
- Zero Maintenance: Automatically registers listeners for every event defined in your settings.
- Dual-Routing: Sends logs to specific category channels (e.g., Bans, Whitelist) while simultaneously maintaining a "Master Log" for full history.
- Smart Tables: Automatically flattens complex data (like Player Identifiers) into clean, bulleted lists.
- Dynamic Timestamps: Converts expiration Unix codes into human-readable, localized Discord time (e.g., "in 2 days").
- Standalone: No framework requirements. Works on any server.
🚀 Installation
- Drop the
txAdminLogsfolder into yourresourcesdirectory. - Open
settings.luaand replace'WEBHOOK'with your actual Discord Webhook URLs. - Add
ensure txAdminLogsto yourserver.cfg.
⚙️ Configuration
The system uses a simple table structure in settings.lua.
- MasterWebhook: The catch-all channel.
- Webhooks Table:
['playerBanned'] = { color = 10038562, title = '🔨 txAdmin: Player Banned', webhook = 'YOUR_SPECIFIC_URL' }
Description
Languages
Lua
100%