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