docs: update ngdredemption
This commit is contained in:
parent
c1009fa768
commit
91573a51ee
@ -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-02-09T19:04:33.530Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2025-01-28T00:30:34.910Z
|
dateCreated: 2025-01-28T00:30:34.910Z
|
||||||
@ -72,21 +72,50 @@ NGDRedemption {packageId} {transaction}
|
|||||||
---
|
---
|
||||||
|
|
||||||
- **See example from the config below:**
|
- **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 `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.
|
-- The packages are defined in the config, you should make sure the package from Tebex matches.
|
||||||
```
|
```
|
||||||
Config.Packages = {
|
Config.Packages = {
|
||||||
[6650632] = {
|
[6650632] = {
|
||||||
Type = 'item',
|
Type = 'item',
|
||||||
Label = 'A Pack Of Lockpicks',
|
Label = 'Criminal\'s Goody Bag!',
|
||||||
Item = 'lockpick',
|
Items = {
|
||||||
Qty = 5
|
{ Item = 'lockpick', Qty = 5 },
|
||||||
|
{ Item = 'tosti', Qty = 1 }
|
||||||
|
}
|
||||||
},
|
},
|
||||||
[6650679] = {
|
[6650679] = {
|
||||||
Type = 'vehicle',
|
Type = 'vehicle',
|
||||||
Label = 'Pagassi - Zentorno',
|
Label = 'Pagassi - Zentorno',
|
||||||
Model = '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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user