Simple Standalone txAdmin Discord Logs made for FiveM
This is an updated version of jhag01's txAdminLogs project, made compatible with txAdmin version 5.2.0. The project works by watching txAdminEvents and pushes them to discord via webhook. Here are some of the key changes that have been made:
- Updated the fxmanifest.lua file to use the games function instead of game, as required by txAdmin 5.2.0, along with other additions made to support txAdmin Events.
- Updated the readme.md file to include more detailed instructions and information about the modifications made to the original project.
- Clone or download this repository.
- Drag and drop the
txAdminLogsfolder into yourresourcesfolder. - Add the line
ensure txAdminLogsto yourserver.cfgfile. - Modify the
config.luafile to fit your needs.
This script logs the following events and sends them to a Discord webhook:
- Player kicked
- Player warned
- Player banned
- Player unbanned
- Warning revoked
- Player healed
- Server announcement
- Direct message
- Scheduled restart
- Whitelist pre-approval added/removed
- Whitelist request
- Whitelist request approved/denied
- Whitelist request all denied
- Whitelist player added/removed
You can modify the config.lua file to change the Discord webhook, username, and avatar used for logging.
Feel free to modify for personal usage, but do not distribute it for any amount of money.
This project is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) license. You are free to use and share this project for personal use, but you are not allowed to modify or distribute it commercially without permission from the original author.