Studios
Store Robberyhouse-3.jpg

Examples

SoonStore RobberyQbox
PAGE 04 OF 06  ·  CONFIGURATION → EXAMPLES → TROUBLESHOOTINGdocs.glitchstudios.dev
Browse docs

Open the robbery to everyone#

Leave Config.Heist.requireContract at 'no'. No criminal tablet is needed.

Require tablet contracts#

Config.Heist.requireContract = 'yes'
Config.Heist.contract = 'store_{site}'

Rename stores for your map#

Config.StoreLabels = {
    strawberry = 'Strawberry 24/7',
    grove      = 'Grove Street LTD',
    delperro   = 'Del Perro Liquor',
}

Let more police jobs pull footage#

Config.PoliceJobs = { 'police', 'sheriff', 'bcso' }

These jobs also cannot rob.

Make gas stations pay more and take a bigger crew#

Config.Heist.gas = { pot = { 9000, 12000 }, cut = { 300, 400 }, chain = 0.1, xp = 150, slots = 3 }

Restart glitch-heistEditor and then glitch-storeRobbery for the new seed values to reach the engine. A definition already edited in /heisteditor keeps the editor copy.

Pay lottery prizes in cash#

Config.Lottery.account = 'cash'
Config.Lottery.prizes = {
    { chance = 0.005, amount = 5000 },
    { chance = 0.03,  amount = 250 },
    { chance = 0.15,  amount = 25 },
}

Loosen wipes for staff testing#

Config.CCTV.wipeRequiresRun = false
Config.CCTV.wipeRetrySeconds = 5

Save a drill spot#

Stand where a robber should drill from, face the safe door and run /storedrill. The spot is saved for the nearest store safe within 5 m. Run /storedrill clear to remove it again.

Listen for a dead clerk#

-- server side, in any resource
AddEventHandler('glitch-storeRobbery:clerkKilled', function(e)
    if type(e) ~= 'table' then return end
    print(('Clerk down at %s (%s), back in %d s'):format(e.site, e.heist, tonumber(e.data and e.data.respawn) or 600))
end)

Read the closed stores#

-- server or client: [siteId] = os.time() when the clerk is back
local closed = GlobalState['gsr:closed'] or {}
for siteId, backAt in pairs(closed) do
    print(siteId, backAt)
end