Studios
Truck Robberyhouse-3.jpg

Configuration

SoonTruck RobberyQbox
PAGE 03 OF 07  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

Config files#

All settings are in config.lua, which is open in the escrow. The file ends with Config.Text, the table of player messages, and a few helpers that read the 'auto' settings at run time.

Main blocks#

Key Default What it does
Config.JobId 'armored_truck' Job id used with the tablet and the XP provider.
Config.Truck.model 'stockade' Truck model.
Config.Truck.guardModel 's_m_m_security_01' Guard model.
Config.Truck.guards 4 entries Seat and weapon per guard. Seat -1 is the driver and must stay first. Seats 1 and 2 ride in the back.
Config.Truck.blip false true shows the truck on the crew's map.
Config.Truck.guardAccuracy, guardArmour 45, 50 Guard accuracy and armour.
Config.Truck.driveSpeed 22.0 Metres per second the driver wanders at.
Config.Truck.findTime 15 * 60 Seconds to make the call (or reach the depot) before the job is off.
Config.Truck.duration 30 * 60 Seconds for the whole job.
Config.Truck.escape 300.0 Metres the crew must get from the truck after looting.
Config.Truck.maxStopSpeed 1.0 The truck counts as stopped below this speed.
Config.XPPerRun 350 XP handed to the tablet per run.

Charges and loot#

Key Default What it does
Config.Charges.item 'c4_charge' Charge item.
Config.Charges.needed 2 One charge per back door.
Config.Charges.plantTime 30000 Milliseconds per charge.
Config.Charges.fuse { 90, 150 } Seconds after the second charge, random in this range.
Config.Charges.fling { forward = 11.0, up = 3.5, pitch = 1.2 } How hard the blast throws the truck.
Config.Loot.time 30000 Milliseconds spent emptying the truck.
Config.Loot.goldBar { item = 'goldbar', chance = 0.15, amount = 1 } Gold bar roll.
Config.Loot.extras 3 entries { item, chance, min, max } rolled for every bag taken.
Config.Loot.searchTime 4000 Milliseconds spent searching a dead guard.
Config.GuardDrop { item = 'humane_keycard', chance = 0.08, guaranteeAt = 4 } Keycard chance per search. guaranteeAt is the search that always pays out.
Config.Bobcat installed = false When set, or when resource is running, the guard carries item instead.

Money bags and payout#

Config.MoneyBags = {
    enabled    = true,
    count      = 4,
    grabTime   = 60000,
    payItem    = 'money_bag',
    unpack     = 'auto',
    unpackTime = 15000,
}

The take is rolled once per run and split over count bags. A bag carries metadata.worth. unpack = 'auto' registers a built-in Use handler for the item when glitch-criminaltablet is not running; true always registers it and false never does. With enabled = false the crew is paid the pot as dirty money when the job ends.

Config.Standalone applies when the tablet is not running:

Key Default
account 'dirty'
pot { armored_truck = { 11100, 16050 } } (min and max, split over the bags)
playerCooldown 90 * 60 seconds
minPolice 3

Config.DirtyMoney names the dirty money item (black_money, or markedbills for QBCore-style items). Config.PoliceJobs lists the jobs that count as police: police, sheriff, bcso and sasp.

Starting a run#

Config.Pickup, Config.Insider and Config.Payphone each take enabled = true, false or 'auto'. 'auto' follows which optional resources are running.

Block Default Notes
Config.Pickup 'auto' On while the tablet runs. A laptop at coords (ox_target box zone) gives the crew a random free depot after a minigame and a progress circle. failCooldown is 60 seconds. minigame names a glitch-minigames export and its arguments.
Config.Insider 'auto' On while the tablet is not running. standaloneCost is 5000, taken from the bank.
Config.Payphone 'auto' Used when the resource (sd-phone) runs. radius is 400.0, ring 3000 ms, hold 6000 ms, spawnBack 220.0, driveOn 140.0.
Config.Spawns 6 depots Each has an id, label and coords. Each becomes a tablet contract site when the tablet runs.
Config.Interactions useRcInteractions = true rc-interactions dialogue for the insider.
Config.Tablet enabled = true, resource = 'glitch-criminaltablet' requireContract = true and slots = { armored_truck = 2 }.

Chase, backup, XP and alerts#

Key Default What it does
Config.Chase.armWithin, armAfter 120.0, 120 When the chase checks begin: the crew within this many metres, or this many seconds passed.
Config.Chase.warnAt, loseAt 400.0, 1200.0 Distance for the warning text and for calling the job off.
Config.Backup.enabled false Reinforcement truck. delay is 60 seconds, distance is { 180.0, 320.0 } and speed is 32.0.
Config.XP.enabled true XP category heisting. Perks used: heist_speed, heist_take, heist_save_explosive and heist_chain_drop.
Config.XP.failShare 0.25 XP share on a failed run.
Config.XP.maxTakeBonus, maxSpeedCut, maxChainBonus, maxSaveChance 0.15, 0.24, 0.10, 0.30 Perk caps.
Config.Alerts.truck code 10-90 Dispatch alert, sent when the truck is first attacked. The heist_alert perk has no effect here.
Config.Tasks title = 'Armaguard Robbery', tag = 'Silvia' Task list title and contact name. Set tag = '' for none.

Text#

Config.Text holds every message the player sees, including the task list lines and the insider texts. Edit or translate them there and keep the %s and %d markers in place. Config.L(key, ...) reads from it.