Kartik Scripts

CreateJobAccount

๐Ÿ“Œ Function

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

โœ… Parameters

NameTypeRequiredDescription
datatableโœ… YesTable containing job information (name, label, etc.)
startBalancenumberโŒ NoOptional 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

On this page