MSK Scripts
TebexGithubDiscordMusiker15
  • MSK Scripts
    • Welcome
  • Common Issues
    • Keymaster
  • Miscellaneous
    • Change Notifications
  • Scripts
    • MSK Core
      • Installation
      • Functions
        • Client
          • Ace Permission
          • Commands
          • Coords
          • Player
          • Points
          • Request
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
          • Vehicle
        • Shared
          • String
          • Math
          • Table
          • Timeout
          • Vector
        • Server
          • Ace Permission
          • Ban System
          • Commands
          • Player
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
    • MSK Banking
      • Installation
        • Paycheck Transaction
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Server Callbacks
    • MSK EngineToggle
      • Guides
      • Exports
        • Client
      • Event Handler
        • Client
        • Server
    • MSK Fuel
      • Config
      • Exports
        • Client
    • MSK Garage
      • Config
      • Exports
        • Client
    • MSK Handcuffs
      • Guides
        • General Edits for Jobs
        • Jaksam Job Creator
        • Multichar
        • ox_inventory
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Event Handlers
    • MSK Radio
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Server
    • MSK Simcard
      • Installation
        • Config.Database
      • Config
    • MSK VehicleKeys
      • Guides
        • Installation
        • Integrations
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
    • MSK Whitelist
      • Config
      • Exports
        • Client
        • Server
    • MSK Weaponammo
Powered by GitBook
On this page
  • es_extended
  • esx_addonaccount
  • Jobs
  • Bankcard Prop
  1. Scripts
  2. MSK Banking

Installation

All Events and Exports for msk_banking

Last updated 10 months ago

You need msk_core! -

  1. Upload the msk_banking folder.

  2. Insert ensure msk_banking in your server.cfg

  3. Please configure the config.lua before starting the Script!

  4. Add the items you configured in config.lua to your inventory or database

  5. Restart your Server.

The SQL will be created automatically.

es_extended

Please go to es_extended/server/classes/player.lua line ~168. You have to see this: function self.setAccountMoney(accountName, money)

Please add the following lines as you can see at the picture if it's not already added:

TriggerEvent('esx:setAccountMoney', self.source, accountName, money)
TriggerEvent('esx:addAccountMoney', self.source, accountName, money)
TriggerEvent('esx:removeAccountMoney', self.source, accountName, money)

esx_addonaccount

Please go to esx_addonaccount/server/main.lua

If you don't have a function like the following then please redownload esx_addonaccount from ESX Github and replace all files!!!

addonaccount.lua
function AddSharedAccount(society, amount)
    if type(society) ~= 'table' or not society?.name or not society?.label then return end
    -- society.name = job_name/society_name
    -- society.label = label for the job/account
    -- amount = if the shared account should start with x amount

    -- addon account:
    local account = MySQL.insert.await('INSERT INTO `addon_account` (name, label, shared) VALUES (?, ?, ?)', {
        society.name, society.label, 1
    })
    if not account then return end

    -- if addon account inserted, insert addon account data:
    local account_data = MySQL.insert.await('INSERT INTO `addon_account_data` (account_name, money) VALUES (?, ?)', {
        society.name, (amount or 0)
    })
    if not account_data then return end
	
    -- if all data inserted successfully to sql:
    SharedAccounts[society.name] = CreateAddonAccount(society.name, nil, (amount or 0))
end

Jobs

If you want to use Societyaccounts, then please add all jobs to Config.Society so that the script works as expected :)

Bankcard Prop

If you want to use a Bankcard Prop, we already integrated a script for that! Just download the prop and set the following config option to true. If you don't want to use it, set it to false.

Config.Animation = {
    useBankcardProp = true
}

You will need this:

Download it here
https://prnt.sc/qM3gulnXHqti
https://forum.cfx.re/t/free-props-wallet-props-cards-and-key-car/5039912