🥤
ylean_ Docs
  • Paid releases
    • ylean_turfwars
      • QBCore DOCS
      • ESX DOCS
    • ylean_loansystem
    • ylean_hobofights
    • ylean_cryptosystem
    • ylean_armslicence
    • ylean_aiparamedic
    • ylean_loans
      • QBCORE
      • QBOX
      • ESX
  • Free releases
    • ylean_noflyzones
    • ylean_softFall
Powered by GitBook
On this page
  • 1. SQL Setup
  • 2. Config
  • 3. Maximum interest rate and installments configuration
  1. Paid releases

ylean_loansystem

https://ylean.tebex.io/package/5634716 https://ylean.tebex.io/package/5634728

1. SQL Setup

Import yl.sql file to your servers database

2. Config

Ylean = {}

--provided number is in days 
Ylean.paymentDeadline = 14

Ylean.blip ={
    coords = vector4(254.52, 210.11, 106.29, 0.0),
    name = "Take a loan!",
    type = 500
}
Ylean.Marker = {
    Coords = vector4(254.52, 210.11, 106.29, 0.0),
    Type = 29,
    Scale = vector3(1, 1, 1)
}

Ylean.csmla = {
    {credit_score = 0, max_loan = 10000},
    {credit_score = 5, max_loan = 20000},
    {credit_score = 10, max_loan = 30000},
    {credit_score = 15, max_loan = 40000}
}

Ylean.csmla explanation:

The variable "credit_score" is the player's credit score threshold, and for a given credit score, the maximum loan amount that can be taken out is determined (the variable "max_loan").

For example: If credit_score = 5, max_loan = 20000

a player with a credit score greater than or equal to 5 can take out a loan of up to $20,000. However, a player with a credit score of 4 will not be able to take out $20,000, but rather a lower amount.

3. Maximum interest rate and installments configuration

If you want to change maximum interest rate go to -> nui/script.js and edit:

const maxInterestRate //line 344

If you want to change maximum/minimum installments go to -> nui/index html and edit those variables on line 24:

min="1" max="15" 

PreviousESX DOCSNextylean_hobofights

Last updated 8 months ago