Refactor txAdminLogs to modular, configurable system

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.
This commit is contained in:
Joost H
2026-02-01 00:45:55 +01:00
parent 36d6c7b77a
commit 8bade2ad95
8 changed files with 151 additions and 138 deletions

5
main.lua Normal file
View File

@@ -0,0 +1,5 @@
for eventName, data in pairs(Settings.Webhooks) do
AddEventHandler('txAdmin:events:' .. eventName, function(eventData)
sendToDiscord(eventName, eventData)
end)
end