Studios
Data Thefthouse-3.jpg

Configuration

SoonData TheftQbox
PAGE 03 OF 06  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

Config files#

File What it holds
shared/config-main.lua Job behaviour, tiers, items, peds, minigames, crews, perks and integrations.
shared/config-locations.lua Guard models and weapons per tier, job sites, case positions, vehicles and drop-off points.
shared/config-client.lua Client helpers: the start menu, notifications, progress bars and target wrappers.
shared/config-server.lua Server helpers: inventory, money, XP, police count and optional integrations.
shared/locales.lua Player text in English and French.

Main settings#

Setting Default What it does
Config.Debug false Prints debug lines to the console.
Config.Lang 'english' english or french. Add a language in shared/locales.lua.
Config.progressType 'Circle' Circle or Bar from ox_lib.
Config.xpSystem 'glitch-xpSystem' XP provider. Set to '' to run without levels.
Config.tierChance low 0.5, mid 0.3, high 0.2 Used only when Config.xpSystem is '': players then get a random tier.
Config.checkCops true Require on-duty police before a job starts.
Config.PoliceDutyType 'leo' qbx_core duty count group.
Config.PoliceJobs {'police', 'lspd', 'sheriff'} Fallback job list when the qbx_core duty count is not available.
Config.timeToComplete 10 Minutes until the site is cleaned up when the owner has not taken the case.
Config.spawnDistance 100 Distance at which guards, vehicles and the case spawn.
Config.despawnDistance 500 Leaving this far from the site cancels the job.
Config.caseOpenTime 6000 Milliseconds to open the case after the lockpick.
Config.caseOpenTimeMinimum 1000 Shortest open time with perks.
Config.caseOpenTimeRandSec 2 Up to this many random seconds are added to the open time.
Config.decryptMulti Payout 1.4, Rep 1.2 Bonus for a decrypted drive. Set either value to 1 to turn it off.
Config.decryptMinSeconds 3 The server rejects a decrypt that finishes sooner than this.
Config.handInRange 8.0 Metres from the end ped needed to hand in.
Config.noJobPenalty 0.5 Share of the payout for drives that belong to another job.
Config.Guards true Keep on unless you are testing.
Config.useBuiltInCash false Pay with qbx_core cash instead of items.
Config.TabletRep per tier ranges REP per paid hand-in for the criminal tablet.

Tiers#

Config.Tier has a low, mid and high block. Defaults:

Key Low Mid High
runCost 30 3600 6000
payout 3200 to 4300 5250 to 7500 8100 to 10800
minimumPolice 1 2 3
alertPolice false false true
chanceOfAlert 0 20 70
minRep (Data Theft level) 0 10 18
repGain (XP) 40 to 60 80 to 120 150 to 250
RepLoss (XP) 20 to 40 40 to 80 80 to 150

Optional guardAccuracy and guardarmour per tier override Config.defaultValues (armour = 85, accuracy = 90).

Items#

Config.Items = {
    money = 'money',                   -- pays the run cost
    payout = 'black_money',            -- what the Broker pays with
    key = 'datatheft_key',
    caseItem = 'encrypted_drive',
    secondCaseItem = 'clean_drive',    -- result of decrypting
    decryptionItem = 'hacking_laptop', -- '' = no item needed
}

Config.caseProps lists the case models, and one is picked at random for each job.

Skill tree perks#

These settings apply when glitch-xpSystem is running.

Setting Default What it does
Config.insideSourceLevels 3 Inside source: tier 2 and 3 open this many levels sooner.
Config.ghostDrivePenalty 0.85 Ghost drive: drives from a job that fell through pay this share instead of noJobPenalty.
Config.leverageItems { 'bank_usb', 'g6_route_intel' } Leverage: items a paid hand-in can turn up. Set to {} if your server has no such items.
Config.darknetMulti 1.5 Darknet: payout multiplier for the once-a-day remote sale.
Config.darknetSeconds 15 Darknet: upload time in seconds.

Minigames#

Config.Minigames = {
    Lockpick = 'glitch-Lockpick',
    Decrypt = 'glitch-BruteForce', -- or 'glitch-BackdoorSequence'
}

Both come from glitch-minigames. Without it, ox_lib skill checks are used.

Peds#

Config.Peds.startPed sets the model, coordinates, scenario and target icon. active can be true, false or 'auto' (on unless the rc-interactions Broker flow is running). Config.Peds.endPed sets the fence model, scenario and deletionTime in milliseconds.

Crews#

Config.Crew = { enabled = true, maxSize = 4, radius = 15.0, bonusPerMember = 0.15 }

With sd-phone running, group members within radius of the hand-in split the payout. The pot grows by bonusPerMember for each extra member.

Integrations#

Config.Integrations has one entry per optional resource:

Key Default Purpose
dispatch enabled, ps-dispatch, code 10-66, priority 2, job group leo Police alert when the guards spot the owner.
phoneCrews true sd-phone groups split the payout.
craftingCache 'glitch-crafting' Resource that exposes RollCache(src, 'datatheft'). '' turns it off.
criminalTablet true Reports REP to glitch-criminaltablet.
economyLedger true Writes crime ledger entries to glitch-economy.
taskList true Shows a glitch-uiElements task list while a job runs.
brokerFlow 'Glitch Data Theft - Start NPC' rc-interactions flow name. '' uses the built-in start ped.
testingModeStateKey 'glitchTestingMode' GlobalState key that opens every tier and skips the police check. '' turns it off.

Adding sites#

Sites are made with CreateLocation in shared/config-locations.lua, inside the lowtier, midtier or hightier table:

My_Site = CreateLocation(
    'My site name',
    vector3(0.0, 0.0, 0.0),            -- centre of the site
    'low',                             -- tier
    { vector4(0.0, 0.0, 0.0, 0.0) },   -- guard positions
    { vector3(0.0, 0.0, 0.0) },        -- possible case positions
    {},                                -- fixed vehicles: { model = 'rebel', coords = vector4(...) }
    { vector4(0.0, 0.0, 0.0, 0.0) }    -- random vehicle positions, models from Config.JobVehicles
),

The file notes how many guards each tier needs at minimum. Drop-off points are in dropOffLocations in the same file.