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
  • openATM
  • checkPin
  • getBankingInfo
  • getSocietyInfo
  • getCartridgeBursted
  1. Scripts
  2. MSK Banking
  3. Exports

Client

Exports - Clientside

openATM

Opens the ATM

Parameters checkPin - boolean - Check the pin before opening the ATM

-- Opens the ATM without checking the Pin
exports.msk_banking:openATM()

-- Opens the ATM and checking the Pin before opening
exports.msk_banking:openATM(true)

checkPin

Opens the Numpad or Input to insert the pin, if the pin is correct it opens the ATM.

exports.msk_banking:checkPin()

getBankingInfo

Parameters checkBankcard - boolean - Check if the player has a Bankcard

Returns mainAccount - table <identifier, cash, bank, iban> - The data of the main account secondAccount - table <identifier, bank, iban> - The data of the second account hasBankcard - boolean - if The Player has a Bankcard or not. If set to false then it's always true

local mainAccount, secondAccount, hasBankcard = exports.msk_banking:getBankingInfo(true)

getSocietyInfo

Parameters jobname - string - The job you want the data from - Optional

Returns societyAccount - table <identifier, bank, iban, name, label> - The data of the society account

-- Return the Account of your own job (ESX.PlayerData.job.name)
local societyAccount = exports.msk_banking:getSocietyInfo()
-- Return the Account of the given job
local societyAccount = exports.msk_banking:getSocietyInfo('police')

--[[
societyAccount.identifier -- 'police'
societyAccount.bank -- 5035
societyAccount.iban -- 'SALSPD'
societyAccount.name -- 'society_police'
societyAccount.label -- 'LSPD'
]]

getCartridgeBursted

Parameters playerId - string|number - The ServerId of the player

Returns bursted - boolean - whether a Cartridge is Bursted or not while an ATM Robbery

local bursted = getCartridgeBursted(playerId)

Last updated 7 months ago