Studios
Truck Robberyhouse-3.jpg

Examples

SoonTruck RobberyQbox
PAGE 04 OF 07  ·  CONFIGURATION → EXAMPLES → TROUBLESHOOTINGdocs.glitchstudios.dev
Browse docs

Standalone server, no tablet#

With no glitch-criminaltablet running, the insider is on by default. Raise the price and the police requirement:

Config.Insider.standaloneCost = 10000
Config.Standalone.minPolice   = 4
Config.Standalone.pot         = { armored_truck = { 15000, 22000 } }

Make the run harder#

Config.Truck.guardAccuracy = 60
Config.Truck.guardArmour   = 100
Config.Backup.enabled      = true
Config.Backup.delay        = 45

Pay the pot straight out#

To skip carried bags, turn them off. The crew is paid the pot as dirty money when the job ends, split over the online members:

Config.MoneyBags.enabled = false

Change the keycard#

Config.GuardDrop = { item = 'humane_keycard', chance = 0.15, guaranteeAt = 3 }
Config.Bobcat.installed = true   -- guards carry Config.Bobcat.item instead

Add a depot#

Add an entry to Config.Spawns. The id also names the tablet contract site (truck_<id>):

Config.Spawns[#Config.Spawns + 1] = {
    id = 'mirror', label = 'Mirror Park depot', coords = vec4(1100.0, -330.0, 67.0, 90.0),
}

Reword a message#

Config.Text.truck_empty = 'Truck empty. Time to go.'

Read the tablet places#

glitch-criminaltablet calls this export itself. You can call it from another server script to see what the tablet will show:

local places = exports['glitch-truckRobbery']:GetTabletPlaces()
for _, p in ipairs(places) do
    print(p.id, p.label, p.kind)
end