Hello,
i made this script for fun. This is not my code! It’s an edited wasabi_backpack
for a wallet.
I hope you enjoy this script with no problems and good functionality. If you have a problems, you can contact me here.
DOWNLOAD
UPDATE
1. Update V1.1
- Optimized script
- Added new options to edit slots or weight
- Added new options to whitelist or blacklist items (Like money, documents, id cards etc…)
Dependencies
Installation
-
First step:
Go into ox_inventory/web/images and put wallet.png into folder. You can find image in inventory-image folder. -
Second step:
Go into ox_inventory/data/items.lua and add this:
['wallet'] = {
label = 'Wallet',
weight = 120,
stack = false,
consume = 0,
client = {
export = 'grn_wallet.openWallet'
}
},
- Third step:
Go into ox_inventory/modules/items/containers.lua and add this.
You can configurate how many slots you want, how much weight, whitelisted items (Like money, your license, documents etc…)
setContainerProperties('wallet', {
slots = 5,
maxWeight = 100,
whitelist = { 'money', 'driver_license', 'weaponlicense', 'lawyerpass', 'membership', 'id_card' }
})
-
Fourth step:
Put all files into resources folder -
Fifth step:
Go into server.cfg and add this line:
ensure grn_wallet
- Sixth step:
Restart your server and enjoy, you have functional wallet script!