G9 Docs
DiscordYoutubeTebex
  • Welcome
  • INFO
    • How can i download my script
    • How can i transfer my script
    • What is escrow system?
  • Scripts
    • Core
    • Loading Screen
      • Installation
      • Guide to Changes
      • Config
    • FPS Menu
      • Installation
      • Language
      • Config
    • Shop
      • Installation
      • Language
      • Config
      • Editable Files
    • Bank
      • Installation
      • Language
      • Config
      • Editable Files
      • Exports
Powered by GitBook
On this page
  1. Scripts
  2. Bank

Config

cfg = {}
cfg.useTarget = true
cfg.PlayerOnloadEvents = {
    "esx:playerLoaded",
    "QBCore:Client:OnPlayerLoaded",
}

cfg.useSound = true
cfg.lang = 'en'
cfg.billCommand = 'bills'
cfg.billCount = 5 -- for block export

cfg.billAccess = {
    [1] = {
        job = 'police',
        type = 'LSPD FINE'
    },
    [2] = {
        job = 'ambulance',
        type = 'HOSPITAL FINE'
    }
}


cfg.banks = {
    ["banks"] = {
        vector3(149.67, -1040.65, 29.37)
    },
    ["atms"] = {
        'prop_fleeca_atm',
        'prop_atm_01',
        'prop_atm_02',
        'prop_atm_03'
    }
}




cfg.loans = {
    [1] = {
        loan = 'Small Loan',
        duration = 7, -- use day
        amount = 100000, -- loan amount
        interest = 5 -- interest %5
    },
    [2] = {
        loan = 'Car Loan',
        duration = 28, -- use day
        amount = 250000,
        interest = 12
    },
    [3] = {
        loan = 'Business Loan',
        duration = 30, -- use day
        amount = 500000,
        interest = 20
    },
}



if cfg.Framework == "qb" or cfg.Framework == "QB" or cfg.Framework == "qb-core" then
    cfg.Framework = "qb"
    G9Core = exports['qb-core']:GetCoreObject()
elseif cfg.Framework == "qbold" then
    G9Core = nil
    cfg.Framework = "qb"
    
    Citizen.CreateThread(function()
        while G9Core == nil do
            TriggerEvent('QBCore:GetObject', function(obj) G9Core = obj end)
            Citizen.Wait(50)
        end
    end)
elseif cfg.Framework == "esx" or cfg.Framework == "ESX" or cfg.Framework == "es_extended" then
    cfg.Framework = "esx"
    G9Core = exports['es_extended']:getcfgObject()
elseif cfg.Framework == "esxold" then
    G9Core = nil
    cfg.Framework = "esx"

    Citizen.CreateThread(function()
        while G9Core == nil do
            TriggerEvent('esx:getcfgObject', function(obj) G9Core = obj end)
            Citizen.Wait(50)
        end
    end)
else
    cfg.Framework = "custom"
    -- Write your own code cfg object code.
    G9Core = nil
end

Last updated 11 days ago

Page cover image