[ESX] MSK Banking - NativeUI

Tebex [5.40€]: https://mskscripts.tebex.io/
Preview: msk_banking (english) | by Musiker15

Description

  • Create your first main account
  • Create a second account
  • Create society accounts [in config.lua]
  • You can set the ranks that have access to the society account [in config.lua]
  • Deposit, Withdraw and Transfer money
  • Transfer money via Accountnumber [not via PlayerID]
  • Set different locations for a Bank with a few options [look at the config.lua]
  • NPCs or Marker at the Bank [toggleable in config.lua]
  • NPC Speech Voice [toggleable in config.lua]
  • ATMs via model [set models in config.lua]
  • Animation at the ATMs
  • Bankcard item needed to access a ATM [buyable at the Bank]

Config

Config = {}
----------------------------------------------------------------
Config.Locale = 'de' -- 'de', 'en'
Config.VersionChecker = true
Config.Debug = true
Config.getSharedObject = 'esx:getSharedObject'
----------------------------------------------------------------
Config.Hotkey = 38 -- default: 38 = E // Change the Key in translation.lua too
Config.npcVoice = true -- The NPC will say something to you
Config.textUI = {
    type = 'default', -- 'default', 'esx' or 'okok'
    color = 'darkblue', -- Only for okokTextUI
    position = 'left', -- Only for okokTextUI
    esx = 'info' -- Only for esx_textUI
}
----------------------------------------------------------------
Config.bankAccounts = {
    enable = true, -- If set to true, the Player can create a second Bankaccount
    price = 500 -- Price for a new Bank Account
}
Config.IBAN = {
    enable = true, -- Set false if you dont want that Players can change the IBAN themself
    prefix = 'SA', -- IBAN looks like this SAXXXXXX
    lenght = 6, -- default: 6 // max Lenght for Custom IBAN // IBAN looks like this SAXXXXXX
    design = false, -- If false then numbers ONLY // If true then numbers and letters
    price = 500 -- default: $500
}
Config.Bankcard = {
    enable = true, -- If false then you dont need a Bankcard to open an ATM and you cant buy them in the Bank
    item = 'bankcard', -- Set the item that you want to use
    price = 100 -- default: $100 // Set the price that Players have to pay for a new Bankcard
}
Config.Animation = {
    -- Only for ATMs not for Banks
    enable = true, -- Set false if you dont want animations
    dict = '[email protected]@[email protected]@[email protected]',
    anim = 'enter',
    time = 2 -- default: 2 seconds
}
Config.Society = {
    enable = true, -- Set false if you dont want society accounts
    jobs = { -- job has to be the jobname
        {job = 'police', iban = 'SALSPD'},
        {job = 'ambulance', iban = 'SALSMC'},
        {job = 'mechanic', iban = 'SAACLS'},
    },
    ranks = {'boss'} -- Which Ranks can look at the society account // You can set multiple ranks
}
----------------------------------------------------------------
Config.Banks = {
    -- Set 'blip' to false if you dont want it
    -- Set 'pedmodel' to false if you want to use a Marker instead
    -- Set 'draw3dtext' to false if you dont want that. // Only activ if 'pedmodel = false'
    -- !!! Some NPC Peds are NOT talking to you so test it with diffrent NPCs yourself !!!
    {label = 'Fleeca Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 'a_f_y_business_01', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = 148.09, y = -1041.66, z = 29.37, h = 341.17}},
    {label = 'Fleeca Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 's_f_y_airhostess_01', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = -1211.95, y = -332.01, z = 37.78, h = 22.44}},
    {label = 'Fleeca Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 's_f_y_airhostess_01', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = -2961.14, y = 481.48, z = 15.7, h = 87.36}},
    {label = 'Blain County Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 's_f_m_shop_high', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = -111.24, y = 6470.02, z = 31.63, h = 133.32}},
    {label = 'Fleeca Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 's_f_y_airhostess_01', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = 312.28, y = -279.98, z = 54.16, h = 335.8}},
    {label = 'Fleeca Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 's_f_y_airhostess_01', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = -351.34, y = -51.24, z = 49.04, h = 336.09}},
    {label = 'Pacific Standard Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 's_f_m_shop_high', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = 248.92, y = 224.3, z = 106.29, h = 157.51}},
    {label = 'Fleeca Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 's_f_y_airhostess_01', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = 1176.34, y = 2708.21, z = 38.09, h = 179.69}},
    {label = 'Fleeca Bank', blip = {id = 108, color = 5, scale = 0.8}, pedmodel = 's_f_y_airhostess_01', draw3dtext = {label = '~g~Open Bank', size = 0.8}, location = {x = -1039.2, y = -2845.22, z = 27.71, h = 98.08}},
}
Config.ATMs = {
    models = {-870868698, -1126237515, -1364697528, 506770882},
    -- Set 'enable' to true or false to active or deactive the feature.
    marker = {enable = false, type = 27, radius = vector3(0.6, 0.6, 0.6), color = vector3(255, 255, 255)},
    draw3dtext = {enable = false, label = '~g~Open ATM', size = 0.8},
}

Optional Requirements

  • okokTextUI
  • esx_textUI
Code is accessible No
Subscription-based No
Lines (approximately) ~ 1900
Requirements ESX 1.2 (v1-final) or Legacy; NativeUI, mysql-async or oxmysql
Support Yes

My other Scripts

1 Like

Update v1.1

  • Fixed change Accountnumber with Mainaccount if you already created a second Account.

Update this script it runs much too high 0.14-0.18ms at resmon

I know that. Please be patient.

When will this be? and what will there be a fix for the armor