📝 Discord Logs for FiveM
Introducing "FiveM-DiscordLogs", your ultimate tool for effortless event logging on FiveM servers. With seamless integration with Discord, this script makes logging detailed events a breeze. From player interactions to script events, capture it all with ease and precision.
- Easily log your server events to Discord with many details.
- Capture every interaction and activity with ease, ensuring a comprehensive record.
- Custom Multiplayer/Singleplayer Log
- Custom No-player Log
- Basic Events (Player Join/Leave, Resource Start/Stop)
- txAdmin Events (Ban, Kick, Warn, Announcement, Shutdown)
- Player Aim Logs (Player Info, Weapon, Distance, Screenshot)
- Explosion (Full Detailed, Screenshot)
- Make sure you have the latest screenshot-basic installed in your server resources.
- Make sure you have the latest OX Library installed in your server resources.
- Download the latest version.
- Drag & Drop the zip file into your
resources
folder. - Un-zip the folder of the script.
- Start the script via your server.cfg by typing
ensure petris-discordlogs
in a new code line. - Use the server-side log function via exports. (Scroll down to see how)
- Enjoy having logs connected with your Discord server.
exports["petris-discordlogs"]:CreateLog({
category = "txadmin", -- (* required)
title = "txAdmin Logs", -- (* required)
action = "Player Banned",
color = "red",
players = { -- Players Table (id, role)
{ id = 1, role = "Admin"},
{ id = 2, role = "Target"},
},
info = { -- Event Information (name, value)
{ name = "Reason", value = "troller" },
},
takeScreenshot = true,
screenshotTargetId = 2
})
Contributions are welcome! Please submit a pull request if you have any ideas, suggestions, or improvements. For significant changes, please open an issue to discuss the proposed changes.
If you encounter any issues or have any questions or suggestions, please feel free to open an issue.