Studios
Bank Robberyhouse-3.jpg

Commands & Exports

SoonBank RobberyQbox
PAGE 06 OF 06  ·  TROUBLESHOOTING → COMMANDS & EXPORTSdocs.glitchstudios.dev
Browse docs

Commands#

This resource registers no commands. Heists are edited with /heisteditor, which belongs to Glitch Heist Editor.

Exports#

This resource registers no client or server exports.

Heist registration#

The heist/*.lua files fill a global HeistDefinitions list. @glitch-heistEditor/lib/register.lua, loaded by the manifest, hands each entry to the editor's RegisterHeist export when this resource starts and again on the glitch-heistEditor:ready event. The files in heist/ show the full shape of a definition.

Callbacks#

The Collector uses two ox_lib callbacks between its own client and server. They are validated on the server and are not an API for other resources.

Callback Direction Purpose
glitch-bankRobbery:collectorOffer client to server Returns the items the player carries with their current prices. Returns nothing when the player is too far away, throttled or blocked.
glitch-bankRobbery:collectorSell client to server Sells every unit of one item at the price the menu showed. Takes the item name and the seen price.

State bag#

Key Scope Value
gbr:collector global { x, y, z, w, model, label } for the Collector's position. Cleared when the resource stops.

Optional integrations#

When glitch-criminaltablet is running, the Collector calls its GetContact, MeetContact, GetTrust, AddTrust, LogEvent and HasAdminBypass exports. When glitch-economy is running, sales are written through its LogCrime export. Both are checked at run time and skipped when absent.