Quasar Store Logo

Commands and Exports

This section lists all available commands, exports, and events included in the script. You’ll find client-side, server-side, and shared functions designed to help developers integrate, extend, or interact with the system easily within their own scripts or frameworks.

Commands

This section lists all available commands included in the script. Each command is designed to simplify administration, player interaction, or debugging tasks. You’ll find detailed descriptions, usage examples, and permission requirements to help you manage and customize your server efficiently.

CommandDescription
/robberycreatorOpens the robbery creator NUI. Only players matching an allowed ace or group may open it.





Server bridge — inventory listing

Each inventory bridge at server/custom/inventory/<id>.lua must define two globals. The creator UI uses them to populate its item picker and render item images.

-- Returns every item the inventory knows about, for the creator's item picker. function GetAllItems() -- Must return a list of { name = string, label = string, weight = number } return items end -- Returns the NUI image base path and a placeholder fallback path. function GetInventoryImagePath() -- return basePath, placeholderPath return 'nui://ox_inventory/web/images/', 'nui://ox_inventory/web/images/placeholder.png' end





Server bridge — doorlocks

Each doorlock bridge at server/custom/doorlock/<id>.lua defines these globals (ox_doorlock ships included). The active one is selected by Config.Doorlock.

-- Lock (true) or unlock (false) the given doors. function DoorlockSetState(doors, locked) end -- Current lock state of a door (true/false), or nil if unknown. Used to snapshot -- and restore door state around a robbery. function DoorlockGetState(door) end -- List registered doors for the creator's door picker: { id, label, coords }. function DoorlockListDoors() end -- Register a robbery's doors into the system (for AutoImportDoors). function DoorlockEnsureDoors(specs) end





Custom nodes

Add your own Action/Condition/Trigger nodes from server/custom/nodes/.

RegisterCustomNode({ kind = 'my_action', nodeType = 'action', -- 'action' | 'condition' | 'trigger' label = 'My Action', fields = { { key = 'amount', type = 'number', label = 'Amount' } }, handler = function(context, node) return true end, }) -- For custom triggers, start a robbery from a trigger's setup(): -- Custom_StartRobbery(robberyId, source, nodeId)