CreateJobAccount

πŸ“Œ Function

exports['kartik-banking']:CreateJobAccount(data: table, startBalance?: number) β†’ boolean

βœ… Parameters

Name
Type
Required
Description

data

table

βœ… Yes

Table containing job information (name, label, etc.)

startBalance

number

❌ No

Optional initial balance for the debit card (defaults to 0 if not provided)

data structure

{
  name = "police",            -- Job name (acts as the account owner)
  label = "Los Santos PD",    -- Job label (used for display and card holder)
  bankType = "fleeca",        -- Optional, defaults to "fleeca"
}

πŸ’Ύ Returns

  • true if account and cards are successfully created.

  • false if the data is invalid or if the job already has an account.


πŸ“‹ Example

local success = exports['kartik-banking']:CreateJobAccount({
  name = "mechanic",
  label = "Benny's Custom",
  bankType = "fleeca"
}, 500)

if success then
  print("Job account created successfully.")
else
  print("Job account creation failed.")
end

Last updated