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
trueif account and cards are successfully created.falseif 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.")
endLast updated