Installation
1. Download it
Download Real Wallet from your Cfx.re portal: portal.cfx.re → Granted Assets.
2. Add the resource
Put the ryan-wallet folder in your server's resources folder. Keep the folder name as it is: its events and
exports use that name. The console warns on start if the folder has another name.
3. Add the items to ox_inventory
Open ryan-wallet/install/items.lua and copy its entries into ox_inventory/data/items.lua (inside the returned
table). Then copy every picture in ryan-wallet/install/images/ into ox_inventory/web/images/. Every item has its
picture there, under the same name.
The file holds:
| Items | Names |
|---|---|
| 7 slate wallets | wallet_matte, wallet_gunmetal, wallet_titanium, wallet_rose, wallet_olive, wallet_silver, wallet_crimson |
| 8 leather wallets | wallet_leather_black, wallet_leather_espresso, wallet_leather_cognac, wallet_leather_oxblood, wallet_leather_navy, wallet_leather_forest, wallet_leather_blush, wallet_leather_stone |
| 2 bank cards | bank_card, credit_card |
| 3 cards most servers already have (commented out) | id_card, driver_license, weaponlicense |
- Skip the card items your server already has, and their pictures, so yours are kept. Qbox and QBCore already have
id_card,driver_licenseandweaponlicense. - Wallet items must keep
stack = false. Two wallets on one stack would share one wallet's cards and cash. The console prints a red warning for any wallet item that stacks. - Each wallet item has
client = { export = 'ryan-wallet.useWallet' }. That line is what takes the wallet out when the item is used. Nothing else in ox_inventory needs changing.
A wallet or colour you turn off in config.lua can stay in items.lua; using it simply does nothing.
4. Start it
In your server.cfg, ensure it after ox_lib, ox_inventory and your framework:
ensure ox_lib
ensure ox_inventory
ensure qbx_core # or qb-core / es_extended - optional
ensure ryan-wallet
5. Restart the server
The resource streams props and animations. Do a full server restart the first time and have every player reconnect, so
everyone downloads them. Later config changes only need restart ryan-wallet (players who are online keep the streamed
files they already have).
6. Check the config
Open config.lua. At the least, check:
Config.Cards: the item names of your cards (see Cards).Config.Slate.enabledandConfig.Leather.enabled: which wallets you want.Config.Locale: your players' language (see Languages).
7. Check the console
On start the server prints:
[ryan-wallet] 1.0.0 started
[ryan-wallet] framework: qbx_core
standalone means no framework was found. A few seconds later the update checker prints its status (see
Updating). Any yellow or red [ryan-wallet] line tells you what to fix; see
Console messages.
Optional
- Sell the wallets in a shop, or give every new character one: Shops & the starter wallet.
- Your server has its own ID or bank script: Your own ID and bank scripts.
Next: Your first test.