Installation
This page will give you the information you need to setup our fishing script.
How to import SQL
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
Add new rod types (optional)
Last updated