From 5d2175663492a9e9d738fe195aa800fd9144c7e2 Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 28 Jan 2025 17:10:44 -0800 Subject: [PATCH] docs: update ngdredemption --- ngdredemption.md | 109 +++++++++++++++++++++++------------------------ 1 file changed, 53 insertions(+), 56 deletions(-) diff --git a/ngdredemption.md b/ngdredemption.md index c370a36..616791b 100644 --- a/ngdredemption.md +++ b/ngdredemption.md @@ -2,7 +2,7 @@ title: ngd-redemption description: published: true -date: 2025-01-28T05:02:41.893Z +date: 2025-01-29T01:10:42.371Z tags: editor: markdown dateCreated: 2025-01-28T00:30:34.910Z @@ -22,13 +22,13 @@ dateCreated: 2025-01-28T00:30:34.910Z ## Installation Steps -1. **Install ngd-Bridge** +1. ### **Install ngd-Bridge** Follow the guide to install ngd-Bridge [HERE](https://nemesisdocs.com/en/gettingstarted). -2. **Install ngd-redemption** +2. ### **Install ngd-redemption** Place `ngd-redemption` into your **[ngd]** folder. This script must be started **after** `ngd-Bridge`. -3. **Modify Tebex Listings** +3. ### **Modify Tebex Listings**
Add Commands (Click to Expand) @@ -48,7 +48,7 @@ NGDRedemption {packageId} {transaction}
-4. **Configure Packages In Script** +4. ### **Configure Packages In Script**
Script Configuration (Click to Expand) @@ -90,85 +90,82 @@ Config.Packages = { } } ``` - - -
-5. Add the jobs into your framework. +5. ### **Set Garages**
-Job Configuration (QB/QBX) (Click to Expand) +Garage Configuration (Click to Expand) -## QB (old jobs.lua) - -```lua - -``` - -## QB (new jobs.lua) - - -```lua - -``` -## QBX - -```lua - -``` +> 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.
+5. ### **Test Drives** +
-Job Configuration (ESX) (Click to Expand) +Test Drive Configuration (Click to Expand) -## (If this doesn't work for you, you will need to build them manually into your modified database) +### Test Drives (Optional) -```sql +- 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. -``` -
- -6. Add the items into your framework/inventory. -
-Items List (OX) (Click to Expand) +- 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 - +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' + } + } +} ``` - -
-
-Items List (QB-NEW) (Click to Expand) - +--- +- 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. ```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 ``` -
+ +5. ### **LOGS** +
Items List (QB-OLD) (Click to Expand) - -```lua - - -``` +- 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.
--- -# 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. +# Translations +- 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) {.is-warning}