Studios
Data Thefthouse-3.jpg

Commands & Exports

SoonData TheftQbox
PAGE 06 OF 06  ·  TROUBLESHOOTING → COMMANDS & EXPORTSdocs.glitchstudios.dev
Browse docs

Commands#

This resource has no chat commands. Players use the start ped, the Broker dialogue or the datatheft:client:job_options event to open the menu. The menu has options to start a tier, cancel the current job and hand in an old drive.

Exports#

This resource defines no exports of its own. It calls exports from the resources it integrates with:

Resource Export Used for
qbx_core GetDutyCountType, GetPlayer, GetPlayerData, AddMoney, RemoveMoney Police count and built-in cash.
ox_inventory AddItem, RemoveItem, GetItemCount, Search Items and payouts.
glitch-abstraction getAbstraction Notifications, progress bars, context menu and XP.
glitch-xpSystem GetEffect, GetPerkRank, CanUseDaily, UseDaily Skill tree perks.
glitch-minigames StartBruteForce, StartBackdoorSequence Decrypt minigame.
glitch-economy LogCrime Crime ledger.
rc-interactions SetFlowVars Broker dialogue variables.
ps-dispatch CustomAlert Police alert.
sd-phone getActiveGroup Crew payout.
glitch-uiElements ShowTaskList, HideTaskList, FinishTaskList Task list.
Crafting resource RollCache(src, 'datatheft') Cache roll after a mid or high hand-in.

Events other resources can use#

Event Side Notes
datatheft:client:job_options Client Opens the job menu.
datatheft:client:start Client Starts a tier. Data is { diff = 'low' }, 'mid', 'high' or 'random'.
datatheft:client:start:low, :mid, :high Client Start a specific tier directly.
datatheft:client:cancelJob Client Cancels the current job.
datatheft:client:handInGoods Client Hands in drives at the nearest end ped.
datatheft:client:brokerSeen Client Fired by an rc-interactions flow node when the Broker has announced the newest tier.
glitch_criminaltablet:reportJobComplete Server, outgoing Sent once per paid hand-in of the player's own job when glitch-criminaltablet is running.

The datatheft:server:* events are internal and validate the caller, so do not trigger them from other resources.

Server callbacks#

Callback Returns
datatheft:server:handIn Hand-in result. Needs a live end ped within Config.handInRange.
datatheft:server:itemCheck Whether the caller holds an item. Only the decryption item, the two drives and the key can be asked about.
datatheft:getPerk The caller's rank in a skill tree perk.
datatheft:darknetReady Whether the caller can use the Darknet sale.
datatheft:servercallback:canCaseInteract Whether the caller may open a case.

Items#

Item Purpose
encrypted_drive The loot from the case. Using it starts decryption.
clean_drive The decrypted drive.
datatheft_key Case key, taken from a guard.
hacking_laptop Needed to decrypt (Config.Items.decryptionItem).

State bags#

The guard combat setup runs on whichever client owns each guard, through the entity state bag dtGuard. The server sets the player state bag dtTierEarly for players with the Inside source perk.