Compare commits
No commits in common. "f88c409f8af1fc90e6ca526708ca531923c3d25b" and "44fff1e0118553fb8789d2602507e5859322e088" have entirely different histories.
f88c409f8a
...
44fff1e011
143
ngdredemption.md
143
ngdredemption.md
@ -2,7 +2,7 @@
|
|||||||
title: ngd-redemption
|
title: ngd-redemption
|
||||||
description:
|
description:
|
||||||
published: true
|
published: true
|
||||||
date: 2025-01-29T01:19:38.622Z
|
date: 2025-01-28T05:02:41.893Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2025-01-28T00:30:34.910Z
|
dateCreated: 2025-01-28T00:30:34.910Z
|
||||||
@ -22,13 +22,13 @@ dateCreated: 2025-01-28T00:30:34.910Z
|
|||||||
|
|
||||||
## Installation Steps
|
## Installation Steps
|
||||||
|
|
||||||
1. ### **Install ngd-Bridge**
|
1. **Install ngd-Bridge**
|
||||||
Follow the guide to install ngd-Bridge [HERE](https://nemesisdocs.com/en/gettingstarted).
|
Follow the guide to install ngd-Bridge [HERE](https://nemesisdocs.com/en/gettingstarted).
|
||||||
|
|
||||||
2. ### **Install ngd-redemption**
|
2. **Install ngd-redemption**
|
||||||
Download and place `ngd-redemption` **AND** `ngd-interactiondialog` into your **[ngd]** folder. This script must be started **after** `ngd-Bridge`.
|
Place `ngd-redemption` into your **[ngd]** folder. This script must be started **after** `ngd-Bridge`.
|
||||||
|
|
||||||
3. ### **Modify Tebex Listings**
|
3. **Modify Tebex Listings**
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>Add Commands</strong> (Click to Expand)</summary>
|
<summary><strong>Add Commands</strong> (Click to Expand)</summary>
|
||||||
|
|
||||||
@ -48,9 +48,9 @@ NGDRedemption {packageId} {transaction}
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
4. ### **Configure Packages In Script**
|
4. **Configure Packages In Script**
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>Package Configuration</strong> (Click to Expand)</summary>
|
<summary><strong>Script Configuration</strong> (Click to Expand)</summary>
|
||||||
|
|
||||||
- **In a web browser, navigate to your Tebex package.**
|
- **In a web browser, navigate to your Tebex package.**
|
||||||
-- The #s seen at the end of the link are the `Package ID`, and will be used to configure the items in the script.
|
-- The #s seen at the end of the link are the `Package ID`, and will be used to configure the items in the script.
|
||||||
@ -90,106 +90,85 @@ Config.Packages = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
- If the `Item = 'other` is set, you can set your own logic to give players whatever you would like inside of the `editableserver.lua` using the function:
|
|
||||||
```lua
|
|
||||||
function GiveCustom(data)
|
|
||||||
|
|
||||||
end
|
|
||||||
```
|
|
||||||
</details>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
5. ### **Set Garages**
|
|
||||||
<details>
|
|
||||||
<summary><strong>Garage Configuration</strong> (Click to Expand)</summary>
|
|
||||||
|
|
||||||
> You MUST set your garage in the `editableserver.lua` file. If you need help, open a ticket in our [Discord](https://discord.gg/AnXx2GVGcM)
|
|
||||||
{.is-warning}
|
|
||||||
- Set your garage name/id in the `Config.GarageName` to ensure the vehicles are put into the correct garage!
|
|
||||||
- The script comes pre-configured for JG and CD garages. If you don't use these, make sure you set your garage configuration in the `editableserver.lua` file.
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
5. ### **Test Drives**
|
|
||||||
|
|
||||||
|
|
||||||
|
5. Add the jobs into your framework.
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>Test Drive Configuration</strong> (Click to Expand)</summary>
|
<summary><strong>Job Configuration (QB/QBX)</strong> (Click to Expand)</summary>
|
||||||
|
|
||||||
### Test Drives (Optional)
|
## QB (old jobs.lua)
|
||||||
|
|
||||||
- The script comes with an optional 'test drive' feature that allows you to make it so players can test drive premium vehicles before purchasing them on your Tebex store.
|
|
||||||
|
|
||||||
- This is enabled by default, and all you have to do is configure what vehicles you want, their label that will show up in the menu and the locations where the player is teleported back when the test drive is complete.
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
Config.TestDrives = {
|
|
||||||
Enabled = true,
|
|
||||||
Time = 2, --minutes
|
|
||||||
SpawnLocation = vector4(-1319.23, -2181.06, 13.94, 152.21),
|
|
||||||
ReturnLocation = vector4(158.26, -739.98, 246.15, 66.94),
|
|
||||||
Vehicles = {
|
|
||||||
['zentorno'] = {
|
|
||||||
Label = 'Zentorno'
|
|
||||||
},
|
|
||||||
['faggio'] = {
|
|
||||||
Label = 'Awesome Moped'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
---
|
|
||||||
- You must also set your vehicle keys and fuel in the following configs. The plate doesn't need to be changed unless you want it to.
|
## QB (new jobs.lua)
|
||||||
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
--Fuel System:
|
|
||||||
Config.VehicleFuel = function(vehicle)
|
|
||||||
Entity(vehicle).state.fuel = 100
|
|
||||||
end
|
|
||||||
|
|
||||||
--Keys System:
|
|
||||||
Config.TestDriveVehicleKeys = function(vehicle, plate)
|
|
||||||
exports['ngd-smallresources']:GiveLogicalKey(plate)
|
|
||||||
end
|
|
||||||
|
|
||||||
--Plate
|
|
||||||
Config.TestDriveVehiclePlate = function(vehicle)
|
|
||||||
local uniquePlate = 'Prem' .. math.random(1000, 9999)
|
|
||||||
SetVehicleNumberPlateText(vehicle, uniquePlate)
|
|
||||||
end
|
|
||||||
```
|
```
|
||||||
|
## QBX
|
||||||
|
|
||||||
|
```lua
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
5. ### **LOGS**
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>Logs Configuration</strong> (Click to Expand)</summary>
|
<summary><strong>Job Configuration (ESX)</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:
|
## (If this doesn't work for you, you will need to build them manually into your modified database)
|
||||||
- To use the discord logging feature, set the `Config.LogType = 2`, and add your webhook into the top of the `editableserver.lua` file.
|
|
||||||
### Fivemerr:
|
```sql
|
||||||
- To use the Fivemerr logs, set the `Config.LogType = 1'.
|
|
||||||
- Open your `server.cfg` and add the following:
|
```
|
||||||
```lua
|
</details>
|
||||||
set fivemerr_ngdredemption 'YOUR_API_KEY'
|
|
||||||
```
|
6. Add the items into your framework/inventory.
|
||||||
- Replace `YOUR_API_KEY` with your API key from the Fivemerr dashboard.
|
<details>
|
||||||
### Custom / No Logs:
|
<summary><strong>Items List (OX)</strong> (Click to Expand)</summary>
|
||||||
- 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
|
||||||
```lua
|
|
||||||
function CustomLogs(data, message)
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary><strong>Items List (QB-NEW)</strong> (Click to Expand)</summary>
|
||||||
|
|
||||||
|
```lua
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary><strong>Items List (QB-OLD)</strong> (Click to Expand)</summary>
|
||||||
|
|
||||||
|
```lua
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Translations
|
# Configuration Notes
|
||||||
|
|
||||||
|
- **Extensive Configuration Options**
|
||||||
|
Open and configure all the `Config` files to match your server's settings.
|
||||||
|
|
||||||
|
- **Customizable Menu Images**
|
||||||
|
The images used in the menus can be replaced. They are located in the `web/menuimages` folder.
|
||||||
|
|
||||||
- Make sure you review the `translate.lua` file, as this is where you will be able to set the name of your store, garage information, etc.
|
|
||||||
---
|
|
||||||
> Do you still need help? Open a ticket in our [Discord](https://discord.gg/AnXx2GVGcM)
|
> Do you still need help? Open a ticket in our [Discord](https://discord.gg/AnXx2GVGcM)
|
||||||
{.is-warning}
|
{.is-warning}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user