docs: update ngdredemption

This commit is contained in:
Administrator 2025-02-09 11:04:36 -08:00 committed by DeLuce
parent c1009fa768
commit 91573a51ee

View File

@ -2,7 +2,7 @@
title: ngd-redemption
description:
published: true
date: 2025-01-29T01:19:38.622Z
date: 2025-02-09T19:04:33.530Z
tags:
editor: markdown
dateCreated: 2025-01-28T00:30:34.910Z
@ -72,21 +72,50 @@ NGDRedemption {packageId} {transaction}
---
- **See example from the config below:**
-- Package `6650632` is an item that is given to players, the menu will show it as a 'A Pack of Lockpicks', and the player will be given 5 of them.
-- Package `6650632` is an item that is given to players, the menu will show it as a 'Criminal's Goody Bag', and the player will be given the quantity of each item.
-- Package `6650679` is a vehicle, the menu will show it as 'Pagassi - Zentorno' and the spawn code is a 'zentorno'
-- Package `6778910` will show in the menu as `Bag Of Money!`, and the player will get 10000 cash. (This is for servers that don't have `cash` as an item)
-- Package `54321` will show in the menu as `Change Your Name!` - The player will be able to change their name, and will be restricted to 25 characters.
-- Package `7891011` will show in the menu as `Redeem` job. The player would have the job `police` set at grade 2.
-- `12345` is custom. You can pass whatever variables you want to a server event.
-- The packages are defined in the config, you should make sure the package from Tebex matches.
```
Config.Packages = {
[6650632] = {
Type = 'item',
Label = 'A Pack Of Lockpicks',
Item = 'lockpick',
Qty = 5
Label = 'Criminal\'s Goody Bag!',
Items = {
{ Item = 'lockpick', Qty = 5 },
{ Item = 'tosti', Qty = 1 }
}
},
[6650679] = {
Type = 'vehicle',
Label = 'Pagassi - Zentorno',
Model = 'zentorno'
},
[6778910] = {
Type = 'money',
Label = 'Bag Of Money!',
MoneyType = 'cash',
MoneyAmount = 10000
},
[54321] = {
Type = 'name',
Label = 'Change your name!',
CharacterLimit = '25',
},
[7891011] = {
Type = 'job',
Label = 'Redeem Job',
JobName = 'police',
JobGrade = 2
},
[12345] = {
Type = 'other',
Label = 'Custom Package Example',
CustomVariable1 = 'CV1',
CustomVariable2 = 'CV2'
}
}
```