QB-Moneycase is a FiveM script that allows users to manage their finances using an interactive money case. It is built to work seamlessly with the QB framework and requires a few dependencies to be installed for it to work correctly.
This script requires the following dependencies:
- qb-core
- qb-inventory
- qb-input
- qb-menu
These dependencies should be installed and properly configured on your FiveM server.
Follow these steps to install and configure the qb-moneycase script on your server:
-
Clone the repository or download it as a ZIP file.
git clone https://github.com/TOSHKO003/qb-moneycase.git
-
Move the
qb-moneycase
folder to your server's resources directory. -
Add
start qb-moneycase
orensure qb-moneycase
to your server configuration file (server.cfg). -
To add the
moneycase
item, open theqb-core/shared/items.lua
file and add the following code:['moneycase'] = { ['name'] = 'moneycase', ['label'] = 'Money Case', ['weight'] = 0, ['type'] = 'item', ['image'] = 'moneycase.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A moneycase...' },
-
The
moneycase.png
image from theimages/
directory needs to be added toqb-inventory/html/images
. Copy the image file and paste it in the specified directory. -
For the tooltip functionality, add the following code to
qb-inventory/html/js/app.js
right after the "labkey" item data:} else if (itemData.name == "moneycase") { $(".item-info-title").html("<p>" + itemData.label + "</p>"); $(".item-info-description").html( "<p><strong>Money: </strong><span>$" + itemData.info.money + "</span></p>" );
Your qb-moneycase script is now installed and ready to be used.
Refer to the documentation for each of the dependencies to learn more about how to use and customize the qb-moneycase functionality.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
For more detailed information and help, please refer to the official FiveM documentation and the QB-Core community forums. Enjoy your new financial freedom with qb-moneycase!