Studios
Humane Heisthouse-3.jpg

Examples

SoonHumane HeistQbox
PAGE 04 OF 06  ·  CONFIGURATION → EXAMPLES → TROUBLESHOOTINGdocs.glitchstudios.dev
Browse docs

Change the Chemist's position and number#

Config.Chemist.coords = vector4(100.0, 200.0, 30.0, 90.0)
Config.ChemistPhone.number = '5550101234'

With glitch-criminaltablet running, his ped and position come from the tablet contact chemist. Without it, a local ped is spawned at Config.Chemist.coords when you are within 80 metres.

Make the pot smaller and the hold shorter#

Config.ChemistPhone.pot = { min = 20000, max = 30000, perMember = 0.03, minCrew = 3 }
Config.ChemistPhone.holdHours = 24

Add a supply offer#

table.insert(Config.ChemistSupplies.offers, {
    id = 'filter2', item = 'filter_cartridge', label = 'Bulk filter', price = 9000,
    trust = 5, perDay = 2, desc = 'A better price per filter for regulars.',
})

Turn off the research bonus and the supplies#

Config.Research.enabled = false
Config.ChemistSupplies.enabled = false

Use another minigame pack#

In heist/humane.lua, each minigame phase names an export:

{ type = 'minigame', export = 'StartWireConnectGame', args = { 4, 30 }, anim = 'type' }

Change export and args to match your pack.

Read the research bonus from another resource#

-- server side
local points = exports['glitch-humaneHeist']:ResearchBonus(source)
if points > 0 then
    purityCap = purityCap + points
end

How a run is paid#

  1. The crew copies the drive. The resource texts the host and links every crew member to the job.
  2. The crew gets 250 m away. The engine hands the ticket to glitch-humaneHeist:held and nothing is paid yet.
  3. The resource rolls the pot, stores it in glitch_humane_owed and texts the host.
  4. The host walks to the Chemist and picks Collect your payment. The money is paid first, then the ticket is settled for every member who is online.
  5. A member who is offline gets a pending row and is settled on their next login.