Studios
Bank Robberyhouse-3.jpg

Examples

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

Rename the banks for a custom map#

Config.BankNames = {
    fleeca_pillbox = 'Fleeca, Martin Place',
    paleto         = 'Bank of Blaine',
}

Restart the resource, then reset the heist in /heisteditor so the new names replace saved ones.

Run the Collector without the criminal tablet#

Config.Tablet = { enabled = false, resource = 'glitch-criminaltablet' }
Config.Collector.coords = vector4(-1545.0, 125.0, 56.8, 220.0)

The ped spawns at Config.Collector.coords and trust is skipped.

Change the Collector's prices#

Config.Collector.prices.rare_stamp = { 4000, 6000 }
Config.Collector.rerollSeconds = 3600
Config.Collector.trustBonus = 0.15

Add a police job that cannot sell#

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

Find the Collector from another resource#

The Collector's position is published in a global state bag. Treat it as read-only, for example to draw a blip or run a test.

local spot = GlobalState['gbr:collector']
if spot then
    print(('Collector at %.1f %.1f %.1f (%s)'):format(spot.x, spot.y, spot.z, spot.label))
end

The table holds x, y, z, w, model and label. It is nil when the Collector is off or the resource is stopped.

Check a new install#

  1. Start the server and look in the console for heist registration lines from glitch-heistEditor.
  2. Open /heisteditor and confirm Fleeca, Paleto and Pacific Standard are listed.
  3. Walk to the Collector at the configured coordinates and look at him with ox_target.
  4. Give yourself a rare_coin and sell it. You should receive black_money and the sale message.