Onex
Onex
Home
Products
Documentation
Changelog
Login with FiveM
  • 👋 Welcome
  • Claim Purchase
  • Translations
    • Weaponmeta
    • Voice Interaction
      Integrations
      Installation
      Configuration
      General
      Currency
      Addons
      Features
      Api
Artifacts Tracker
  1. Onex Scripts
  2. Scripts_guides / Banking
Ctrl K

BANKING#

The banking addon provides voice-controlled bank teller interactions — check balance, withdraw, deposit, and view transaction history — at bank NPC locations.

Config file: shared/banking/default.lua

BankingConfig.enabled#

TypeDefault
booleantrue

Enable or disable the banking addon entirely.

BankingConfig.debug#

TypeDefault
booleanConfig.AddonDebug

Enable debug logging for the banking addon. Follows the global AddonDebug setting by default.

BankingConfig.spawnPeds#

TypeDefault
string[]{"qb-banking", "default"}

Integrations for which the addon spawns its own bank teller peds. Resources listed here do not provide their own NPCs. renewed-banking spawns its own peds and is excluded.

BankingConfig.spawnPeds = { 'qb-banking', 'default' }

BankingConfig.pedDefaults#

Default ped model and scenario used when the addon spawns a bank teller.

BankingConfig.pedDefaults = { model = 'cs_bankman', scenario = 'WORLD_HUMAN_CLIPBOARD', }

BankingConfig.proximity#

FieldTypeDefaultDescription
widthnumber3.5Box zone width around bank teller (meters)
lengthnumber4.0Box zone length around bank teller (meters)
updateIntervalnumber500How often to check proximity (ms)
BankingConfig.proximity = { width = 3.5, length = 4.0, updateInterval = 500, }

BankingConfig.npcDetection#

FieldTypeDefaultDescription
searchRadiusnumber8.0Primary NPC search radius (meters)
fallbackSearchRadiusnumber10.0Fallback radius if primary finds nothing
waitForSpawnnumber500Max ms to retry NPC detection after zone entry
greetingDelaynumber0Delay (ms) before NPC delivers automatic greeting
BankingConfig.npcDetection = { searchRadius = 8.0, fallbackSearchRadius = 10.0, waitForSpawn = 500, greetingDelay = 0, }

BankingConfig.voice#

FieldTypeDefaultDescription
minSimilaritynumber0.65Minimum match score for voice commands (0.0–1.0)
maxAmountnumber500000Maximum transaction amount per voice command
BankingConfig.voice = { minSimilarity = 0.65, maxAmount = 500000, }

BankingConfig.confirmation#

Voice confirmation step before executing withdraw or deposit.

FieldTypeDefaultDescription
enabledbooleantrueRequire player to confirm before executing transaction
timeoutnumber10000Ms before unconfirmed transaction is auto-cancelled
BankingConfig.confirmation = { enabled = true, timeout = 10000, }

Set enabled = false to skip confirmation and execute transactions immediately.

BankingConfig.matching#

Per-intent similarity thresholds. Lower values allow less exact matches.

BankingConfig.matching = { balance = 0.70, withdraw = 0.65, deposit = 0.65, transactions = 0.70, confirm = 0.60, cancel = 0.60, }

BankingConfig.zoneGeometry#

FieldTypeDefaultDescription
heightnumber3.0Height of the box zone in meters
BankingConfig.zoneGeometry = { height = 3.0 }

BankingConfig.transactions#

FieldTypeDefaultDescription
maxPerPlayernumber20Maximum transaction history entries stored per player
maxDisplayednumber3Maximum transactions the NPC reads aloud
BankingConfig.transactions = { maxPerPlayer = 20, maxDisplayed = 3, }

BankingConfig.feedback#

BankingConfig.feedback.enabled#

TypeDefault
booleantrue

Master toggle for NPC TTS speech responses.

BankingConfig.feedback.responseToggles#

Individual toggles for each response category.

BankingConfig.feedback.responseToggles = { greeting = true, -- greet player on entry farewell = true, -- farewell on exit balance = true, -- balance inquiry responses withdraw = true, -- withdrawal confirmation/result deposit = true, -- deposit confirmation/result transactions = true, -- transaction history responses confirmation = true, -- "please confirm" prompts errors = true, -- insufficient funds, limit exceeded, etc. }

BankingConfig.feedbackTiming#

FieldDefaultDescription
responseCooldown1000 msMinimum time between NPC responses
duplicatePrevention5000 msSuppress duplicate responses within this window
farewellCooldown1000 msReduced cooldown after farewell before a new greeting
BankingConfig.feedbackTiming = { responseCooldown = 1000, duplicatePrevention = 5000, farewellCooldown = 1000, }

BankingConfig.numberWords#

Word-to-number mapping used when parsing spoken amounts (e.g. "withdraw five hundred dollars"). Covers standard English number words plus shorthand (k = 1000, grand = 1000, half = 0.5).

BankingConfig.numberWords = { one = 1, two = 2, three = 3, -- ... hundred = 100, thousand = 1000, million = 1000000, grand = 1000, k = 1000, half = 0.5, }

Last updated 3 months ago

Quick Links

All DocumentationOur Products