Discord Store
Halo Backrooms

Installation

Run one SQL file, add 12 items, set your hidden kitchens and start it last.

Steps

1
Copy the resource
Place the Halo_Backrooms folder in your resources directory.
2
Check the hooks
Backrooms needs a menu hook in dh_restaurants, a level export in dh_urbansupply and CanCarryItem in dh_bridge. Current versions of those resources already include them. On older versions, apply the patches from your resources folder: patch -p1 < Halo_Backrooms/patches/<name>.diff.
3
Run the SQL
Import sql/install.sql.
4
Add the items
Paste items/ox_items.lua into ox_inventory/data/items.lua (6 front items + 6 real items) and add their PNGs to ox_inventory/web/images/.
5
Set your kitchens
Set coordinates for every entry in Config.Crafting.spots. They ship at 0,0,0.
6
Check your businesses
Each Config.Businesses entry's restaurant must match a restaurant name in dh_restaurants. Fill in counters for the proximity check.
7
Add to server.cfg
Start it after everything it hooks into.

SQL

sql/install.sql
CREATE TABLE IF NOT EXISTS `halo_backrooms_limits` (
    `identifier`   VARCHAR(64) NOT NULL,
    `business`     VARCHAR(64) NOT NULL,
    `window_start` INT UNSIGNED NOT NULL DEFAULT 0,   -- unix seconds
    `count`        INT UNSIGNED NOT NULL DEFAULT 0,
    PRIMARY KEY (`identifier`, `business`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

server.cfg

server.cfg
ensure ox_lib
ensure oxmysql
ensure ox_inventory
ensure dh_bridge
ensure dh_urbansupply
ensure dh_restaurants
ensure Halo_Backrooms

Testing

  1. Set Config.Debug = true
  2. Give yourself the level: UPDATE drug_progression SET level = 3, xp = 1500 WHERE identifier = 'yourid';
  3. Relog — access refreshes on load and every 5 minutes
  4. Open a restaurant menu: House Specials should show the front item
  5. Walk to a kitchen and use Work the goods
  6. Type /movegoods with real items on you

Troubleshooting

House Specials tab doesn't show the item — Check your Urban Supply level, that your job isn't in Config.BlockedJobs, and that the business's restaurant matches the dh_restaurants name.
No craft target — The spot is still at 0,0,0, is disabled, or none of its recipes are ones you qualify for.
/movegoods says "Nah. Not for you." — You're under the required level or in a blocked job.
"Your hands are full" — You can't carry the item. Make room — Backrooms checks before charging or crafting.
Changed a level but nothing happened — Relog. Access is cached and refreshes every 5 minutes.