From 99df94ebf433977c59904bb7a85ce652167f51da Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 9 Feb 2025 11:10:58 -0800 Subject: [PATCH] docs: update ngdredemption --- ngdredemption.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/ngdredemption.md b/ngdredemption.md index d5005f8..269e0be 100644 --- a/ngdredemption.md +++ b/ngdredemption.md @@ -2,7 +2,7 @@ title: ngd-redemption description: published: true -date: 2025-02-09T19:06:35.045Z +date: 2025-02-09T19:10:56.320Z tags: editor: markdown dateCreated: 2025-01-28T00:30:34.910Z @@ -216,6 +216,31 @@ end ``` +5. ### **In-Game Package Creation** + +
+Admin Package Creation (Click to Expand) +- The script comes pre-configured for either Discord or Fivemerr logs. Choose your log type in the config and follow the instructions below to configure it. + +### Discord: +- To use the discord logging feature, set the `Config.LogType = 2`, and add your webhook into the top of the `editableserver.lua` file. +### Fivemerr: +- To use the Fivemerr logs, set the `Config.LogType = 1'. +- Open your `server.cfg` and add the following: + ```lua + set fivemerr_ngdredemption 'YOUR_API_KEY' + ``` + - Replace `YOUR_API_KEY` with your API key from the Fivemerr dashboard. +### Custom / No Logs: +- To use your own logging logic, or to use no logs at all, set the `Config.LogType = 0' +- If you wish to use your own logic, you can add it into the following function found inside the `editableserver.lua` +```lua +function CustomLogs(data, message) + +end +``` +
+ --- # Translations