Studios
Casino Heisthouse-3.jpg

Configuration

SoonCasino HeistQbox
PAGE 03 OF 06  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

Config files#

Everything this resource adds is in config.lua. The heist itself is the definition in heist/casino.lua, which reads several values from the config. Pot size, timers and guard counts live in that definition and can be changed live in /heisteditor.

Restart the resource after editing config.lua.

Job rules#

Config.Job = {
    minPolice       = 8,                  -- police needed online to start
    contract        = 'casino_diamond',   -- glitch-criminaltablet contract id
    requireContract = 'yes',              -- 'yes' needs the contract, 'no' lets anyone start
    cooldown        = 86400,              -- seconds the casino rests after a run
}
Config.Rewards  = { xp = 3000 }           -- heisting XP per crew member on escape
Config.Perks    = {
    dualWindow    = 'hacking_dual_window',
    saveExplosive = 'heist_save_explosive',
}
Config.Dispatch = { code = '10-90', codeName = 'casinoheist' }
Key Default What it does
Config.Debug false Prints run start, run end and start-up check results to the server console.
Config.Job.minPolice 8 Police online needed to start.
Config.Job.contract 'casino_diamond' The glitch-criminaltablet contract id.
Config.Job.requireContract 'yes' 'yes' needs the contract. Use 'no' on servers without the tablet.
Config.Job.cooldown 86400 Seconds the casino rests after a run (24 hours).
Config.Rewards.xp 3000 Heisting XP per crew member on escape. Needs glitch-xpSystem.
Config.Perks.dualWindow 'hacking_dual_window' glitch-xpSystem perk that lengthens the two-card swipe window. Set to nil to turn it off.
Config.Perks.saveExplosive 'heist_save_explosive' Perk that gives a chance to keep a shaped charge. Set to nil to turn it off.
Config.Dispatch.code '10-90' Code shown in the police alert.
Config.Dispatch.codeName 'casinoheist' The ps-dispatch alert name.
Config.Heist 'casino' The glitch-heistEditor heist id.
Config.Site 'diamond' The heist's site id.

Keep Config.Perks as a table and set each key inside it to nil. The definition reads Config.Perks.saveExplosive and Config.Perks.dualWindow, so setting the whole table to nil breaks it.

Notify text#

Config.Notify = {
    powerOut   = "City power is out, we're working on restoring it!",
    powerBack  = 'Power has been restored!',
    powerTitle = 'Power Station',
}

These are the blackout notifications players see. Messages inside the heist are part of the definition and are edited in /heisteditor.

Doors and cameras#

Config.DoorsFile = 'install/doors.json'
Config.Doors = {
    sideEntrance = 1, management = 3, stationGate = 4, officeHall = 6, hackerDen = 7,
    -- 35 entries in total, down to vaultRight2
}
Config.CameraIds = { entrance = 8501, door1 = 8502, door2 = 8503, door3 = 8504, staff = 8505 }
Key What it does
Config.Doors Door name to ox_doorlock id (number) or door name (text). The shipped numbers are placeholders from the developer's database. Replace all 35.
Config.DoorsFile The file server/doors.lua reads door definitions from when a Config.Doors value is a door name.
Config.CameraIds The five camera ids registered with glitch-securityCameras. The casino_cams steps use them.

Blackout, lasers and vault interior#

Key What it does
Config.Blackout.useVSync true uses vSync's LocalBlackout when vSync runs. Otherwise the game's own artificial lights are used.
Config.LaserArea center and radius (default 45.0) of the area where the lasers draw.
Config.Lasers A list of laser doorways. Each entry has from, to (two vector3 points across a doorway) and count (lasers stacked downwards, 8 by default). The default list has 11 doorways on the staff floor.
Config.VaultInterior probe coordinates and the interior sets switched on when the resource starts.

The blackout turns on while the run flag blackout is set, which happens at the final charge at the power station. The lasers turn on when the penthouse computer sets the flag lasers and turn off when the staff floor code is entered.

What the definition sets#

These values are in heist/casino.lua. They are listed here so you know what to expect. Change them in /heisteditor.

Setting Value
Run duration 3600 seconds
Maximum crew 8
Escape distance 300 m from the casino and its interior
Blackout 10 minutes, with 5 minutes after the tamper before the station recovers
Guards 10 in the penthouse, carbine rifles, 1500 health
Designed pot Roughly $450,000 to $550,000, plus gold bars and diamonds
Failed run Pays a 25% share

The run#

  1. Power station. Tamper with the circuit to start the run. It needs 8 police by default and uses up casino_blueprints and casino_vault_keycard. Disable the cameras, plant 4 charges, then the final charge. The city goes dark.
  2. Backup power. Blow two generators. The side door opens and the front door becomes alarmed.
  3. The office. Hack the first laptop, find the USB hidden in one of 30 spots and use it in the main laptop.
  4. Hacker den. Hit the electrical box. Four desks each give part of a 12-character code, keyed in within a minute. Then the servers and the stairs keypad.
  5. The roof. Rappel up the shaft, repair 8 power boards within 4 minutes, then the roof keypad and cameras. A 4-part code opens the hotel floor.
  6. Penthouse. Find the keycard (a random spot each run). Ten guards and tear gas under both doors, or fight. Then the office computer and the lift down.
  7. Security floor. A 3-part code within 3 minutes switches off the lasers. Then the cameras, security levels 2 and 1 and the secondary vault.
  8. B1. A 3-part code gives keycard B. Activate the tunnel access, then swipe both cards within 3 seconds.
  9. The vault. Two drill points, then the wheel. Inner doors, 4 cash carts, 2 gold carts and 2 diamond bonuses. Tear gas starts after 4 minutes.
  10. Escape. Get 300 m from the casino and its interior. The casino then rests for the cooldown.

Every 5th failed hack calls the police.