Skip to content

Brownies — Editable Files (Server & Shared) ​

The whole bridge/ folder of both resources is open (not escrowed). fwb_rollsmoke/config/ and fwb_rollsmoke/locales/ are open too. Keep your copy when you update.

Restart the resource after you edit a file.

NOTE

Most settings are made in game and saved in the database. These files hold the defaults and things that can't be set in a menu.

fwb_brownies ​

FileWhat it is for
bridge/themes.luaThe menu themes the admin can pick from
bridge/business_setup/defaults.luaProp models, animations, payroll rules, catalog rules, stash size, plants, TVs, hookah lounge numbers
bridge/business_setup/economy.luaHow shop prices are worked out from the economy tier
bridge/business_setup/default_layout.luaThe shipped layout: zone, every spot and every door
bridge/business_setup/plants.luaRules for the grow spots (seed, harvest item, yield, growth time limits)
bridge/business_setup/crafting.luaThe default lab recipes and their limits
bridge/business_setup/doors.luaDoor types and their reach
bridge/business_setup/rollsmoke_catalog.luaThe starter shop catalog (the fwb_rollsmoke items the shop sells)
bridge/business_setup/identity.luaThe business name players see (from the resource name until the admin sets one)
bridge/business_setup/mlo_models.luaYour MLO's own prop models for the setup tool (see Client)
bridge/inventory/<inventory>/server.luaOne folder per inventory, plus custom for your own
bridge/notify/<name>/server.luabuiltin (default), framework, fs_notify, ox_lib
bridge/frameworks/<esx, qbcore, qbox>/server.luaThe framework code, if your framework is modified
bridge/target/fwb_interact.luaThe fwb_interact / cr_interact bridge and its console warning

fwb_rollsmoke ​

FileWhat it is for
bridge/themes.luaThe tablet themes (same list as fwb_brownies)
bridge/defaults/setup.luaEvery shipped item: steps, props, effects and tab rules
config/effect_media.luaImages and sounds the effect timeline may use
bridge/inventory/<inventory>/server.luaOne folder per inventory, plus custom
bridge/notify/<name>/server.luabuiltin (default), framework, fs_notify, ox_lib
bridge/frameworks/<esx, qbcore, qbox>/server.luaThe framework code
locales/en.luaTexts

Languages — locales/<language>.lua ​

Both resources ship English, German, French, Spanish, Portuguese (Brazil), Dutch, Polish, Turkish and Italian. The admin picks the language for the whole server in the admin menu (fwb_brownies: Settings → Language, fwb_rollsmoke: Command & access → Language); it changes live for every player.

To add a language: copy locales/en.lua, give the copy the new language id and label, translate the right side of every line and restart the resource. A line that is missing falls back to English. You can also change the English wording in en.lua. Names you type in game (spots, roles, doors) and item names are not translated.


Themes — bridge/themes.lua ​

Players get no theme switch. The admin picks one theme for the whole server:

  • fwb_brownies: Settings → Theme in /fwb_brownies
  • fwb_rollsmoke: Settings in /fwb_rollsmoke

It ships with FwB (default), Dark Grey, White and Fluid Glass. Every theme in the file shows in the admin's list.

Add your own: copy one block, give it a new id and label, change the colours and restart. Do it in both resources if you want the same theme in both.

lua
{
    id = 'purple', label = 'Purple',
    accent = '#a855f7',
    panel = { '#1e1029', '#0f0816' }, surface = '#221330',
    text = '#ffffff', muted = '#b9a6c9',
    tile = { '#6d5a7d', '#2a1f33' }, tileInk = '#ffffff',
},
KeyWhat it does
id / labelUnique name / the name in the admin's list
defaulttrue on the theme a fresh server starts with
lighttrue for a light menu
fluidtrue for the glass look with a highlight that flows from option to option
accentButtons, selection rings, highlights
panelMenu background, { top, bottom }
surfacePopups and dialogs
text / mutedNormal / secondary text
tile / tileInkThe wells item pictures sit in, { centre, edge } / icons in an empty well

Every colour is "#rrggbb". A missing or mistyped colour falls back to the first theme's, so a typo can't break the menu.


Business defaults — bridge/business_setup/defaults.lua ​

The main open file of the business. Sections you are most likely to change:

SectionWhat it holds
animationsShort animations (door key, stock box, stash, paying). enabled = false turns them off.
auditLogs.retentionDaysHow long audit rows are kept: 7, 15, 30 or 90 days
payrollSalary modes (manual, automatic, hybrid), pay basis, interval, bank or cash, and what happens when the owner is offline or the account is short. locked = true forces your default on every owner.
catalogWhat owners may change in the catalog (create items, edit details, prices)
economyTiers (hard 0.2x, medium 1x, rich 3x), order cost (40% of the sell price), owner price limits and the medium price per item group
access.sharedStashEmployee stash slots (100) and weight
modelsThe prop lists in the setup tool for each spot type
plantsPot models, the 7 growth stage models, the map plants Scan by radius picks up, and the default seed / harvest items, yield and growth time
tvTV models and their screens, picture and sound range, default volume
hookahDevices, seats, fills, hoses (price, max per hookah), coal, heater, water, labels and puff settings

A row in a model dropdown looks like this:

lua
{ model = 'prop_model_name', label = 'Name shown in the setup UI' }

Economy — bridge/business_setup/economy.lua ​

Works out every shop price from the tier picked in the wizard (or Catalog & prices → Set all prices for an economy):

  • Price group of an item: exact name in economy.items → first match in economy.patterns → its catalog category → other.
  • Sell price = group price × tier multiplier, rounded ($5 steps under $100, $10 under $1000, $50 above).
  • Order price = orderCostPercent of the sell price, always below the sell price.

Change the numbers in the economy section of defaults.lua; this file only holds the rules.


Default layout — bridge/business_setup/default_layout.lua ​

The layout that loads on a first start (nothing placed yet): business zone, every spot and every door. It ships filled for the Brownies MLO.

  • Business data → Save current layout as the default writes your current layout into this file.
  • Business data → Load the default layout replaces the zone, spots and doors with it. Items, staff and settings stay.
  • Leave it empty for no default layout: the setup then asks you to draw the zone and place the spots.

Edit it by hand only if you need to.


Lab recipes — bridge/business_setup/crafting.lua ​

The default recipes: harvested weed into the flavour weed bags of fwb_rollsmoke. Recipes are edited in game on Lab & recipes; this file is used until the admin saves recipes there. Limits: 48 recipes, 4 inputs each, 50 bags per craft.


Inventory bridges — bridge/inventory/<name>/ ​

One folder per inventory, picked automatically (or on the Bridges page). For another inventory, fill in bridge/inventory/custom/server.lua and client.lua, then pick Custom on the Bridges page (fwb_brownies) and the Bridge tab (fwb_rollsmoke).

For fwb_rollsmoke, addItem must store metadata on the item: vape hits and flavour, lighter uses and bottle fill live there.


Notify bridges — bridge/notify/<name>/ ​

The built-in notify (cards at the right middle of the screen) is the default. ox_lib, fs_notify and the framework's notify can be picked on the Bridges page / Bridge tab.

Add another: copy a folder (for example ox_lib), rename it, and change the FSBridge.Notifies.<name> block: label, resource, detect() and show(opts) (opts.title, opts.message, opts.type, opts.duration; on the server also opts.source). The manifest loads every folder by itself.


Default items — fwb_rollsmoke/bridge/defaults/setup.lua ​

Every shipped item with its steps, props and effects. It is written to the database once, on a fresh install. After that the tablet (/fwb_rollsmoke) edits the database and this file is not read again.

To go back to these defaults, hand this to your database admin and restart the resource:

sql
DELETE FROM fwb_wd_settings WHERE business_key = 'fwb_rollsmoke';

Effect media — fwb_rollsmoke/config/effect_media.lua ​

The images and sounds the effect timeline can show or play (Screen Image, Image in the World, Music). Put the file in fwb_rollsmoke/web/build/effects/audio/ (.mp3) or fwb_rollsmoke/web/build/effects/images/ (.png / .jpg), add an entry, then restart the resource:

lua
{ id = 'audio/heartbeat.mp3', label = 'Heartbeat', kind = 'audio', path = 'effects/audio/heartbeat.mp3' },

FWB Studio documentation.