🧋Bubble Cafe!

Installation Guide!

📦 Dependencies

Make sure these dependencies are installed before using this script:

dependencies {
    'ox_lib',           -- Required
    'xmmx_bridge',      -- Required
    'gcom_bubblecafe',  -- Required - Contains the MLO and some props
    'cfx-djs-uwu',      -- Required
}
Dependency:
Required:
Link:

ox_lib

Overextended Library: HERE

xmmx_bridge

Resource Bridge: Included or HERE

gcom_bubblecafe

GreenCom Bubble Cafe MLO: HERE

cfx-djs-uwu

DJ's UWU Cafe Props: HERE


🔧 Configuration

config.lua

  • Version: Enable update/version checking.

  • Images: Inventory image path for your item icons.

  • Receipts: Enable customers receive a receipt item.

  • Menu Options:

    • ui: built-in UI

    • ox: ox_lib

    • qb: qb-menu

Customize crafting menus, color schemes, HUD toggles, and cashier items here.


🗺 Location

location.lua

Enables all the interactive crafting spots. Modify the coordinates, prop spawning, blips, and zone definitions such as:

  • Customer Menus

  • Boss Menus

  • Cash Registers

  • Sinks & Workstations: Juicer, Griddle, Oven, Brewer, Stove, etc.

  • Trays & Storage

Each entry includes:

{ name = "example_name", coords = vector3(x, y, z), heading = 110.0, width = 1.0, length = 1.0, height = 1.0 }

Adjust for your MLO as needed.


🍽 Recipes

recipes.lua

Define crafting recipes based on stations (Stove, Oven, Brewer, etc.). Each entry includes:

{ ['output_item'] = { ['ingredient1'] = count, ['ingredient2'] = count }, ["amount"] = 10 }

You can create custom categories such as:

  • Café Stove

  • Café Griddle

  • Café Frozen

  • Café Chopping

  • Café Supplies

Example:

["Café Stove"] = {
    { ['bub_chikramen'] = { ['bub_rawchik'] = 1, ['bub_ramen'] = 1 }, ["amount"] = 10 }
}

💺 Chairs

seats.lua

Enables player seating interactions using xmmx_bridge. Types include:

  • chair

  • booth

  • couch

  • barstool

  • toilet

Each seat entry includes:

{ x = 0.0, y = 0.0, z = 0.0, rot = 110.0, type = "barstool" }

Use CancelKey (default: X) to exit the seat.


🍔 Metadata

metadata.lua

Sets hunger and thirst restoration values for food/drink items. This works automatically for qb-core or es_extended.

Example:

FoodMeta = {
    ["bub_pancakes"] = math.random(30, 50),
}

DrinkMeta = {
    ["bub_lattebrew"] = math.random(30, 50),
}

Edit values to match your needs or server balance.


✅ Final Steps

  1. Ensure all dependencies are installed and started.

  2. Add all items to your inventory system (qb-core/shared/items.lua, ox_inventory/data/items.lua, etc.)

  3. Verify crafting station placement aligns with your MLO layout.

  4. Restart the server or resource after changes.


Last updated