๐Ÿฆqb-banking

Keep your money safe and quickly access!

Introduction

  • Multiple ATM's & banks around the map to interact with

  • Handles all player interaction with bank/job/gang/shared accounts

  • ATM and bank card integration

  • Shared accounts between players

  • Auto creation of job/gang accounts on bank first open

  • Boss-only access to job/gang accounts

CreatePlayerAccount

Creates a new shared account for a player and returns where it was successful or not

exports['qb-banking']:CreatePlayerAccount(playerId, accountName, accountBalance, accountUsers)
  • playerId: number

  • accountName: string

  • accountBalance: number

  • accountUsers: table

  • returns: boolean

CreateJobAccount

Creates a new job type account, this is automatically done so shouldn't need this

  • accountName: string

  • accountBalance: number

Example:

CreateGangAccount

Creates a new gang type account, this is automatically done so shouldn't need this

  • accountName: string

  • accountBalance: number

Example:

AddMoney

Adds money to an account by name and returns where it was successful or not

  • accountName: string

  • amount: number

  • reason: string

  • returns: boolean

RemoveMoney

Removes money from an account by name and returns where it was successful or not

  • accountName: string

  • amount: number

  • reason: string

  • returns: boolean

GetAccount

Returns all the information for the specified account by name

  • accountName: string

  • returns: table | nil

GetAccountBalance

Returns just the balance of the specified account by name

  • accountName: string

  • returns: number

CreateBankStatement

This will create a statement for a specified account and returns where it was successful or not

  • playerId: number

  • account: string

  • amount: number

  • reason: string

  • statementType: string

  • accountType: string

  • returns: boolean

Last updated

Was this helpful?