docs: update ngdredemption

This commit is contained in:
Administrator 2025-02-09 11:10:58 -08:00 committed by DeLuce
parent 2946a2f58a
commit 99df94ebf4

View File

@ -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
```
</details>
5. ### **In-Game Package Creation**
<details>
<summary><strong>Admin Package Creation</strong> (Click to Expand)</summary>
- 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
```
</details>
---
# Translations