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.
5 lines
179 B
Lua
5 lines
179 B
Lua
for eventName, data in pairs(Settings.Webhooks) do
|
|
AddEventHandler('txAdmin:events:' .. eventName, function(eventData)
|
|
sendToDiscord(eventName, eventData)
|
|
end)
|
|
end |