Code Monkey home page Code Monkey logo

esx-banker-job-upgraded's Introduction

ESX Banker Job Upgraded [esx_bankerjob]

New Banker Job with functionnalities such as loans, savings with custom rates, risked savings, inventory and so on...

ESX Banker Job Upgraded


[FEATURES]

  • Make loans and manage them from the office inside the Pacific Standard Bank

    • Powerful loan attribution system : Define the amount given, the rate, the amount of deadlines, the time between deadlines
    • Automatic loan management system : every morning at defined time in config.lua two cron tasks run :
        1. Countdown of the time remaining before a player must repay part of his loan
        1. Automatic payment of a deadline if the user has enough money on his bank account otherwise the account is frozen
    • View all | the active | the frozen loans and manage them
  • Open savings accounts with a custom rate defined in percentages (1 - 100)

    • View the active and closed accounts and manage them
    • Automatic savings system : once a week on the day defined in config.lua a cron task runs calculating the interests
    • Choose if the money is generated or removed from the company bank account
  • Open risked savings accounts

    • View the active and closed accounts and manage them
    • Automatic savings system : once a week on the day defined in config.lua a cron task runs calculating the interests
      • Custom rates : a custom rate that can be defined in the config.lua file is randomly chosen and applied to a risked savings account... living the life on the edge?
    • Choose if the money is generated or removed from the company bank account

[REQUIREMENTS]


[INSTALLATION]

  1. CD in your resources/[folderWhereYouWantTheScriptToBe]

  2. Clone the repository

git clone https://github.com/BenoursonJ/ESX-Banker-Job-Upgraded esx_bankerjob
  1. Import esx_bankerjob.sql in your database

  2. Configure the config.lua file (do not forget to modify the authorized vehicles)

  3. Modify the multiple "TriggerClientEvent('esx:showNotification" in server.lua to translate them to your liking.

  4. Add this in your server.cfg after cron, async, mysql-async and esx_society:

ensure esx_bankerjob

[CONFIG.LUA EXPLAINED]

  • Config.DrawDistance | Maximum distance from which the markers can be seen.

  • Config.Locale | Text language (currently supported: fr and en).

  • Config.CompanyPlate | Prefix that will be displayed on the number plate of company cars.

  • Config.RiskedRates | Rates that can be defined in the array for the risked savings accounts. Value is multiplied with the total money on the account.

  • Config.SavingsAccountRemove | True or False. If true, money removed from the company bank account, false, money is generated.

  • Config.SavingsDay | Day on which to do the interests on the savings and risked savings accounts.

  • Config.CRONSavingsTime | Time {HH, mm} at which the Savings task is to be executed.

  • Config.CRONRiskedSavingsTime | Time {HH, mm} at which the Risked Savings task is to be executed.

  • Config.CRONLoanDeadlineTime | Time {HH, mm} at which the Deadline Countdown task is to be executed.

  • Config.CRONLoanTime | Time {HH, mm} at which the deadline payment task is to be executed.

  • Config.Zones | Array listing the zones that will be drawn:

    • ZoneName | Marker name
      • Coords | Marker position
      • Size | Marker size
      • Color | Marker colour
      • Type | Marker Type (-1 = hidden | 1 = displayed)
      • Heading | Angle used as the direction when spawning cars
  • Config.AuthorizedVehicles | List of vehicles that can be spawned

    • model | Vehicle model name (not the hash)
    • label | Display named that is used in the garage menu
    • auth | Authorization level (banker = employee, boss = ceo)

[TUTORIALS]

In need of info and troubleshooting tips ? Head to the Wiki => HERE


Legal

License

esx_bankerjob - Fivem script for es_extended. Greatly improved banker job.

Copyright (C) 2021 Benourson#9496

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.

This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.

You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.

esx-banker-job-upgraded's People

Contributors

benoursonj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.