Gmod Discord Logging System - Script
The Gmod Discord Logging System is a logging add-on that integrates Discord with your Gmod server. You can send and store logs from your Garry's Mod server on your Discord server, and view them from any device connected to Discord. This allows you to monitor your server's activity in real time, even when you're not connected to the game.
❮
❯
Description of Gmod Discord Logging System
๐ Presentation of Gmod Discord Logging System
If you're looking for a solution to integrate Discord into your Gmod server and track user activity even when you're not connected to the game, this Discord Logging System for Gmod is for you.
The Gmod Discord Logging System is a logging add-on designed to facilitate the integration of Discord into your Gmod server. Whether you're using DarkRP or another gamemode, as long as they use the same Garry's Mod APIs and hooks, this addon works with all game modes.
This system allows you to send requests from your GMod server to the Discord API and to store logs from your Garry's Mod server off-site, directly on your Discord server, in specific text chat rooms using webhooks that you can generate.
The major advantage of this system is that you don't need to connect directly to your GMod server to access the logs. You can view these logs from any other device capable of connecting to your Discord server, be it an Android, Windows or Apple device.
This logging system lets you monitor activity on your Garry's Mod servers in real time from your cell phone or tablet. You'll be informed of everything that's happening on your server via notifications sent to your Discord server, which you can configure to receive them in public or private channels.
Thanks to this system, you'll be able to find out, for example, who has joined your server, who has killed an in-game player and with what weapon. You can also identify troublemakers by reading discussions, and find out who initiated attacks. Logs allow you to manage and moderate your server in a clear, simple and impartial way. The system sends requests from GMod to the Discord API via the Gmod Discord Logging System.
๐ List of Gmod events that can be logged on your Discord server
Login: Player_Connect, Player_Disconnected.
PlayerSay: gmod_global_chat, gmod_team_chat.
EntityTakeDamage: explosion_damage, fall_damage, physics_damage, weapons_damage, npcs_damage_players, players_damage_npcs.
Deaths: Other, Car_Kill, Npcs, PvP, Suicide.
DarkRP: playerArrested, playerUnArrested, playerWanted, playerUnWanted, playerWarranted, playerUnWarranted, onPlayerChangedName, OnPlayerChangedTeam, playerAdverted, playerSetAFK, playerBuyDoor, playerBoughtVehicle, playerBoughtShipment, playerBoughtPistol, playerBoughtFood, playerBoughtDoor, playerBoughtAmmo,playerBoughtCustomEntity, playerBoughtCustomVehicle
NutScript 1.0: OnPlayerUseBusiness, OnCreateShipment, OnCharDelete, OnPlayerJoinClass, PlayerMessageSend, PlayerSay, StorageItemRemoved.
TTT: TTTPrepareRound, TTTBeginRound, TTTEndRound.
KickBan: Kick_ULX, Ban_ULX.
Whitelist: Player_Add_in_job, Player_Add_in_categorie.
Tickets: nordahl_new_ticket_open, nordahl_ticket_closed.
๐ Prerequisites
A web server to upload the web file and PhP
๐ Important points
-No need to configure a MySQL server.
-The data is not stored on the hard disk of your GMod server, nor on the hard disk of your WEB server.
-Inform your players who has joined your server about your Discord.
-This script will positively change the way you manage your servers in a positive way.
-Disable and Enable only what you want to log.
-NO DRM.
๐ First step
When you install the script open the menu with the command logs_system, a menu will open with the different types of logs you want to activate.
For example, you want to save the Kills on a text room on your Discord, insert the link of the webhook generated on your text room on Discord, activate the module Kills Logs by clicking on ON and select the types of Kills you want to save, for example, PvP Kills. You will then know in real time who is dead, by whom, and also with whom she is arming. The system provides the users' steamID64 to efficiently administer this. You can also log the damages to find out who attacked first. And it's not just that, check the video, images and script documentation for more information.
๐ Commands
-Command in the console to open the panel: logs_system or nord_discord_logs_system.
-Chat command: !Dlogs.
-To debug and get info in the console: debug_discord_log "https://Your_Domain/debug_discord_logs.php" "webhook_link".
๐ Admin
Access is only by rank that you have saved in the configuration file, by default to admins and superadmins. If you don't have an admin system you can always add your SteamID.
๐พ Persistence
Everything you add or remove is backed up in real time in a system independent of all other systems to ensure optimal compatibility and performance.
๐ Configuration
Configuration does not require any skills
โ Compatibility
Compatible with all gamemodes, suggestions for improvements and additions are welcome.
Path: garrysmod/addons/nordahl_discord_logs_system
- The AddWorkshop function is automatically added to the script server file and can be deactivated from the configuration file. : resource.AddWorkshop( 2513508132 )
- To add gmod workshop resources to your collection : Gmod Discord Logging System [Content Only] | Gmod Workshop
- Drag the content of the web file provided with the script to the root of your web server.
- Then add the domain name of your site to the configuration file.
Your web server must be able to manage PhP and Curl.
----- ACCES CONFIGURATION -----
OwnerSteamID="STEAM_0:0:000000000000" --If you are the owner and you dont use Admin System put your Steam ID here. Value exemple: ---> "STEAM_0:1:125347606"
Allow_ULX_GROUP_CAN_ACCESS_PANEL={"superadmin","admin"}
SERVERGUARD_Access_rank={"superadmin","admin"} --Add ServerGuard Admin Group if you want add "admin" {"superadmin","admin","anothergroup"} if you dont have Server Guard installed keep it empty.
USeWorkshopContent=0 --If you dont have a fastdownload you can use workshop content (1 Enable "I want use workshop" / 0 Disable "I prefer use my fastdl"๐
----- CONFIGURATION -----
// When you download the script you receive this folder : nordahl_discord_logs_system/web_file
// Then copy the content of web_file at the base of your website.
//replace your-website.com by your domain name, if your website dont use HTTPS:// replace by HTTP://
Webserver_request_link="https://Xyour-websiteX.com/nordahl_discord_logs"
//Invitation message on your Discord Serveur
YOUR_DISCORD_INVITATION="This server has a Discord, invitation link: https://discord.gg/y3rUCTG" // Replace the link
Enable_Chat_Notification=1
The web_file is what will make the connection between your Gmod server and your Discord.
Once you have uploaded your web_file to your web server, you can then open from a browser: nordahl_discord_logs.php which is inside the web_file file.
For example you have dragged the folder web_file to the root of your web server so the link will be : https://your_site.com/web_file/nordahl_discord_logs.php
Finally copy this link to the configuration file of script Gmod Discord Logging System.
nordahl_cfg_3905.Webserver_request_link= "https://your_site.com/web_file/nordahl_discord_logs.php"
It's done.
๐ต PhP is OK
๐ต Curl is OK.
0 means that this is only the steam nickname that will be displayed in the logs on your Discord server.
1 = The nickname is displayed with the roleplay name.
Once set to 1 go to the file: discord_log_system_sv.lua and to line 27.
Don't forget to reboot.
You will see the template in this form:
user:Nick().." / RP: "..user:Nick()
Then you should see for example: Norda / RP: Norda in the logs.
You will have understood that you will have to replace the second user:Nick() by the API that returns the roleplay name of the user.
For example:
If the API is player:RPName() to get the RP name of the player, then:
user:Nick().." / RP: "..user:RPName()
Note: It's not user:RPName() for everyone since each system does it's own thing, so there is no universal value, that's why you have to add the API yourself.
Tip to avoid the leak of Gmod Discord Logging System installed on your Garry's Mod server: How avoid the Leak of your Gmod scripts
How Install an addon on Gmod? : How install an addon on Gmod
How Publish an addon on the Gmod workshop? : Documentation how create a content pack to publish on the workshop?
Creator: Norda Scripts
Sales | 107 |
Published | 5 years |
Last update | |
Version | version 2.9 |
DRM | No DRM |
Categories | Gmod addons |
Requierements | Garry's Mod Server |
Languages | ๐ฌ๐ง ๐ซ๐ท ๐ฉ๐ช ๐ฌ๐ช ๐ฎ๐น ๐ฏ๐ต ๐ฐ๐ท ๐ณ๐ด ๐ท๐บ ๐ช๐ธ ๐ธ๐ช |
Admin VGUI Management Allgamemode |