📝 Discord Logs for FiveM
![GitHub license](https://camo.githubusercontent.com/8fb757fba193e18ef4d4dfa67681255da07e431d6634fc2afdccaab9473e9806/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f50657472697347522f466976654d2d446973636f72644c6f67732e737667)
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.