Real Wallet / Configuration
Cash & storage
Cash
Lua
Config.MoneyItem = 'money'
Config.WalletCash = 10000
-- Config.Leather.WalletCash = nil (in Config.Leather)
| Setting | Default | What it does |
|---|---|---|
Config.MoneyItem |
'money' |
The cash item the wallet holds. ox_inventory's money item is cash on every framework. |
Config.WalletCash |
10000 |
The most cash one wallet holds. Change it freely: the server checks it on every put-in. 0 = wallets hold no cash at all. |
Config.Leather.WalletCash |
nil |
The leather's own limit. nil = the same as Config.WalletCash; 0 = none. |
- With a limit of
0, cash already in a wallet can still be taken out. - Lowered below what a wallet already holds: nothing more goes in, all of it still comes out.
- If your money item has a weight, the wallet's storage grows to fit the cash limit.
Storage
Lua
Config.Storage = { prefix = 'ryanwallet:', label = 'Wallet', slots = 8, maxWeight = 500 }
| Setting | What it does |
|---|---|
prefix |
The start of every wallet stash's name: ryanwallet:<id>. Do not change it on a live server: wallets that already have contents would look in a new, empty stash. |
label |
The stash's label. |
slots |
How many items one wallet holds, cards and cash together. |
maxWeight |
The stash's weight limit, before the room added for cash. Card items are light (5 in install/items.lua). |
The wad of notes
Lua
Config.CashTiers = { { min = 1, model = 'ryan_wallet_cash_1' }, { min = 500, model = 'ryan_wallet_cash_2' }, { min = 2500, model = 'ryan_wallet_cash_3' } }
The notes in the slate's money clip by how much cash is in it: from $1 a thin wad, from $500 a thicker one, from $2,500
a full one. The tier also picks the count animation (3, 5 or 8 notes counted). You can change the min amounts; the
models are the streamed props.
Still stuck? Open a ticket in the Ryan Studios Discord and we'll help you out.