Skip to content

Commit 0c9f7a8

Browse files
committed
Update docs to the new config
1 parent 8383a68 commit 0c9f7a8

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

pages/it-drugs/adjustments/selling.mdx

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ The individual zones can be created and edited here. We will now take a closer l
3131
},
3232
thickness = 27,
3333
drugs = {
34-
{ item = 'cocaine', price = math.random(100, 200), moneyType = 'cash'},
35-
{ item = 'joint', price = math.random(50, 100) = moneyType = 'bank'},
36-
{ item = 'weed_lemonhaze', price = math.random(50, 100), = 'black_money'}
34+
['cocaine'] = {price = math.random(100, 200), moneyType = 'cash'},
35+
['joint'] = {price = math.random(50, 100), moneyType = 'bank'},
36+
['weed_lemonhaze'] = {price = math.random(50, 100), moneyType = 'black_money'}
3737
}
3838
},
3939
```
@@ -77,9 +77,9 @@ As soon as a player enters this zone he has the possibility to sell items to the
7777

7878
```lua
7979
drugs = {
80-
{ item = 'cocaine', price = math.random(100, 200), moneyType = 'cash'},
81-
{ item = 'joint', price = math.random(50, 100) = moneyType = 'bank'},
82-
{ item = 'weed_lemonhaze', price = math.random(50, 100), = 'black_money'}
80+
['cocaine'] = {price = math.random(100, 200), moneyType = 'cash'},
81+
['joint'] = {price = math.random(50, 100), moneyType = 'bank'},
82+
['weed_lemonhaze'] = {price = math.random(50, 100), moneyType = 'black_money'}
8383
}
8484
```
8585

@@ -88,7 +88,7 @@ Theoretically, an infinite number of items can be added. For many items it is re
8888

8989
**Schemata for new items:**
9090
```lua copy
91-
{ item = 'item_name', price = math.random(min_price, max_price), moneyType = 'cash/bank/black_money'},
91+
['item_name'] = {price = math.random(min_price, max_price), moneyType = 'cash/bank/black_money'},
9292
```
9393

9494
<AccordionGroup>
@@ -99,22 +99,27 @@ Theoretically, an infinite number of items can be added. For many items it is re
9999

100100
**Please keep in mind `black_money` is no default account on qb-core!**
101101

102-
```lua
103-
['cash'] = {
104-
['qbcore'] = 'cash',
105-
['esx'] = 'money',
106-
['ND_Core'] = 'cash'
107-
},
108-
['bank'] = {
109-
['qbcore'] = 'bank',
110-
['esx'] = 'bank',
111-
['ND_Core'] = 'bank'
112-
},
113-
['black_money'] = {
114-
['qbcore'] = 'black_money',
115-
['esx'] = 'black_money',
116-
['ND_Core'] = nil -- Will be added soon
102+
```lua
103+
MoneyTypes = {
104+
['cash'] = {
105+
[Framework.ESX] = 'money',
106+
[Framework.QBCore] = 'cash',
107+
[Framework.QBOX] = 'cash',
108+
[Framework.NDCore] = 'cash'
109+
},
110+
['bank'] = {
111+
[Framework.ESX] = 'bank',
112+
[Framework.QBCore] = 'bank',
113+
[Framework.QBOX] = 'bank',
114+
[Framework.NDCore] = 'bank'
115+
},
116+
['black_money'] = {
117+
[Framework.ESX] = 'black_money',
118+
[Framework.QBCore] = 'crypto',
119+
[Framework.QBOX] = 'crypto',
120+
[Framework.NDCore] = nil
121+
}
117122
}
118-
```
123+
```
119124
</Accordion>
120125
</AccordionGroup>

0 commit comments

Comments
 (0)