Brownies — Installation
Dependencies
| Resource | Required | Notes |
|---|---|---|
oxmysql | Yes | The database. Both resources create their tables on first start. |
| Framework | Yes | es_extended, qb-core or qbx_core, detected automatically. |
fwb_interact | Yes (Free) | Every spot in the business (shop, duty, menus, stock, stash, plants, lab, hookah, poles, TVs, doors) goes through it. Press E or Target is picked in fwb_interact itself. cr_interact works too. |
| Inventory | Yes | See the Overview for the list. Vapes, bongs and lighters keep their charge in item data, so your inventory must keep data on items. |
ox_lib or PolyZone | Yes (one of them) | The zone engine that knows when a player is inside the business. Auto picks whichever runs; change it on the Bridges page. |
| Target | Optional | ox_target, qb-target or qtarget, only if you pick Target in fwb_interact. |
ox_lib notify / progress bar | Optional | The built-in notify and progress bar are used by default. |
| 3D sound resource | Optional | xSound, mx-surround, high_3dsounds, qs-3dsound or Sounity for TV sound. Built-in sound by default. See Editable Files. |
[Install_Me_First]
Both resources ship the same [Install_Me_First] folder. Install the items once, from fwb_brownies/[Install_Me_First] only. Installing them a second time from fwb_rollsmoke adds every item twice.
| Path | What it is |
|---|---|
README.md | The same steps as below |
[images]/ | One picture per item (<item name>.png) |
items/ox_inventory.lua | ox_inventory (ESX, QBCore or any framework with ox_inventory) |
items/qbox.lua | Qbox (its items live in ox_inventory) |
items/qb-core.lua | QBCore with qb-inventory (or any inventory that reads QBCore.Shared.Items) |
items/qs-inventory.lua | Quasar Inventory |
fwb_wd.sql (fwb_brownies only) | The database tables. Optional: the scripts create them on first start. Run it only if you want to create them by hand. |
The item files hold all 206 items of both resources.
Install Steps
- Put
fwb_browniesandfwb_rollsmokein yourresourcesfolder (for exampleresources/[fs]/). - Install
fwb_interact(free) if you don't have it yet. - Add the items and pictures (Items below).
- Add them to
server.cfgafteroxmysql, your framework and your inventory:
ensure oxmysql
ensure es_extended # or qb-core / qbx_core
ensure ox_lib # or PolyZone
ensure ox_inventory # your inventory
ensure fwb_interact
ensure fwb_brownies
ensure fwb_rollsmoke- Give yourself admin access (Admin Access).
- Restart the server, join, and type
/fwb_brownies. The setup wizard opens the first time (First Start). - Type
/fwb_rollsmoketo open the Roll & Smoke tablet. The effect wizard opens by itself until it has been run once.
Items
Pick the one file that matches your server.
ox_inventory / Qbox
- Open
ox_inventory/data/items.lua. - Paste everything from
items/ox_inventory.lua(Qbox:items/qbox.lua) inside itsreturn { ... }table. - Copy every PNG from
[images]intoox_inventory/web/images/. - Restart the server.
QBCore (qb-inventory / ps-inventory / lj-inventory)
- Open
qb-core/shared/items.lua. - Paste everything from
items/qb-core.luainside its items table. - Copy every PNG from
[images]intoqb-inventory/html/images/(or the images folder of your inventory). - Restart the server.
qs-inventory
- Open
qs-inventory/shared/items.lua. - Paste everything from
items/qs-inventory.luainside its items table. - Copy every PNG from
[images]intoqs-inventory/html/images/. - Restart the server.
Other inventories
There is no ready-made file for other inventories. Add the same item names in your inventory's own format (use items/ox_inventory.lua as the list) and copy the pictures into its images folder.
Good to know
- Do not add
consume,clientorserverfields to the items. The scripts make them usable themselves. - Lighters, bongs and vape devices are one per slot (
stack = false/unique = true). Keep them that way: they keep their own uses, fill and flavour. - An item name already on your server? Keep one entry only, or the inventory may refuse to start.
Admin Access
Each resource has its own admin command and ACE. The ACE is the only admin check.
| Resource | Command | ACE |
|---|---|---|
fwb_brownies | /fwb_brownies | fwb_brownies.admin |
fwb_rollsmoke | /fwb_rollsmoke | fwb_rollsmoke.admin |
# Give both to an admin group:
add_ace group.admin fwb_brownies.admin allow
add_ace group.admin fwb_rollsmoke.admin allow
# Or to a single player:
add_ace identifier.license:YOUR_LICENSE fwb_brownies.admin allow
add_ace identifier.license:YOUR_LICENSE fwb_rollsmoke.admin allowWithout the ACE, the command shows a screen with your own add_ace line (license filled in) to copy.
The command always matches the resource folder name. An extra command name and another ACE can be set in game (fwb_brownies: Name & access; fwb_rollsmoke: Settings).
First Start
The Brownies MLO
A default layout ships in bridge/business_setup/default_layout.lua for the Brownies MLO: the business zone, every spot and every door. On the first start (nothing placed yet), it is loaded into the database by itself. The setup wizard still opens the first time you type /fwb_brownies.
Another MLO or location
Draw the business zone and place every spot in game:
/fwb_brownies→ the setup wizard: business name, ownership (Player-owned or Automatic), economy (Hard, Medium, Rich), framework & inventory, business parts.- Business zone — draw the zone. Every spot must be inside it.
- Locations, Duty, Plants, Lab & recipes, Hookah tables, Dance poles — place each spot. You can place a prop, pick a prop that is already in the map, or mark a spot.
- Clean up — hide map props you don't want inside an area.
- Business data → Save current layout as the default — writes your layout into
default_layout.lua, so a fresh database gets it again.
The Overview page lists what still needs your attention. Use the Business open switch to open or close the business for players.
In Player-owned mode, add the first owner on the Owners page (only online players can be picked). Owners then hire staff from the boss menu.
Where Settings Are Saved
Everything is stored in your database through oxmysql. The tables are shared by both resources; every row carries a business_key (the resource name).
| Table | What it holds |
|---|---|
fwb_wd_schema | Table versions |
fwb_wd_settings | Settings and setup of both resources (fwb_rollsmoke items and effects too) |
fwb_wd_staff | Owners and employees |
fwb_wd_roles | Roles, permissions and salaries |
fwb_wd_spots | Placed spots and doors |
fwb_wd_items | Catalog, prices and stock |
fwb_wd_shifts | Duty shifts and their pay |
fwb_wd_history | Activity log (kept 30 days) |
Updating
Keep your own copy of the bridge/ folders of both resources (themes, business setup, bridges). Everything set in game is in the database and stays.
