JCKSDocs
JCKS JobsV2Referenz

Restaurants and bars

Table service with menu cards, orders, kitchen queue, hand over and an ingredient supplier, from settings/config.restaurants.lua.

Table service for any job listed under venues. Orders become JCKS invoices, so Config.Billing.enabled must stay true.

How it plays

  1. A waiter aims at a guest and picks Show menu. The guest gets the menu card of the venue with the prices the management set and orders. If prices change while the card is open, the order is refused and the waiter shows the card again.
  2. The order becomes an invoice from the venue with the waiter as sender. Paying it in F7 sends the amount to the company account. The waiter gets Config.Billing.commission.
  3. Staff see orders at the order points or with /orders near them: unpaid, paid, ready, handed over, cancelled. Take it shows colleagues who is cooking. Cancelling an unpaid order withdraws the invoice, cancelling a paid one refunds the guest's bank from the company account.
  4. Hand over order: the server checks the employee carries exactly the ordered items, takes them and gives them to the guest.
  5. Ingredients are ordered from the supplier, paid in cash on pickup or from the company account, ready after readyMinutes, picked up in person.
  6. What the venue may sell and at what price is set by the admin in /jobadmin, job, Sales: the items on the card, the lowest and highest price of each item (or no limit), a job wide maximum and whether management may add other inventory items. Until an admin saves that list, the menu from this file is used and every item has no limit. Grades with Prices and menu (restaurant) set prices inside those limits, hide items and see what one piece costs the company, the profit and its share of the price. The cost comes from the craft recipes of the job with ingredient prices from company paid shops of the job and the supplier. Items without a recipe use the purchase price management enters. See Sales and prices.

The server prices every order from the database. Happy hour is priced on the server too, guests see the old price crossed out.

Options

All keys are under Config.Restaurants.

Key Type Default What it changes
enabled boolean true Restaurants
requireDuty boolean true Staff must be on duty
command string 'orders' Order screen near an order point, '' = off
commandDistance number 20.0 Metres from an order point for the command
pointDistance number 2.0 Metres to open an order point
keepDistance number 25.0 The order screen stops updating beyond this
menuDistance number 3.0 Waiter to guest for Show menu
orderDistance number 10.0 Waiter still this close when the guest confirms
venueDistance number 60.0 Show menu works this close to an order point, 0 = anywhere (food trucks)
deliverDistance number 3.0 Waiter to guest for the hand over
menuTimeout number 300 Seconds a menu card stays valid
maxPerItem, maxLines, maxTotal number 20, 20, 100000 Order limits
historyHours number 8 Hours finished orders stay on screen
unpaidExpireHours number 0 Unpaid orders cancel after this, 0 = never
venues table burgershot Venue per job name, see below
supplier.enabled boolean true Ingredient supplier
supplier.readyMinutes number 10 Minutes until pickup
supplier.maxOpen number 3 Open supplier orders per venue
supplier.expireHours number 48 Unpicked orders cancel, 0 = never
supplier.maxPerItem, maxLines number 50, 25 Supplier order limits
supplier.allowCompany boolean true Management pays from the company account
supplier.ped table s_m_m_trucker_01 at the port warehouse Supplier NPC
supplier.spawnDistance, distance number 40.0, 2.5 NPC spawn and talk distance
supplier.blip table sprite 478, colour 43 Shown only to venue jobs
supplier.prices table per ingredient Price per piece
supplier.catalog table per venue Ingredients a venue may order

Venue entry

lua
Config.Restaurants.venues.burgershot = {
    label = 'Burger Shot',
    style = 'diner',                 -- diner, pizzeria, seafood, cafe, bar
    points = { vec3(-1193.39, -895.42, 13.99) },
    happyHour = { from = 17, to = 19, percent = 15 },   -- optional, days = { 5, 6 }
    menu = {
        { label = 'Burgers', items = {
            { item = 'burger', price = 120, note = 'beef, cheese, lettuce, tomato' },
        } },
    },
}

Menu items that do not exist in the inventory are skipped. The name on the card is the inventory label. menu is the starting menu, used only until an admin saves the menu in /jobadmin, job, Sales (Edit here copies it there). Order points, style and happy hour stay in this file. Happy hour from and to are hours 0 to 23 (to exclusive, wraps over midnight), percent 1 to 90, days 0 Sunday to 6 Saturday.