Installation
This page will give you the information you need to setup our fishing script.
It is important to follow all the steps for the script to work properly
Download and unzip vision_finance.zip
Add "ensure vision_finance" to your server.cfg
Import the finance.sql into your databse.
Follow the steps on this page
(re)start your server and enjoy
How to import SQL
If you don't understand how this works why are you creating a fivem server? But for you fools you can download HeidiSQL, open the database and press file > Load SQL File (select finance.sql) > Run SQL File (select finance.sql) and you are done.
Server-sided exports
-- Update a loan, all the values can be skipped to leave them the same (not recomended)
exports.vision_finance:UpdateLoan(loanId, {
amount_paid = 0,
remaining_amount = 15000,
periods_paid = 1,
periods_remaining = 6,
last_payment_date = os.date('%Y-%m-%d %H:%M:%S'),
next_payment_date = os.date('%Y-%m-%d %H:%M:%S', os.time() (7 * 24 * 60 * 60)) -- Example for 1 week
}
-- update the status of a loan
exports.vision_finance:UpdateLoan(loanId, {
status = 'suspended'
}Status types
There are six types for status, each has influence on the possible payments for a player.
Add new rod types (optional)
Last updated