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