BurgerShot | Drive-Thru Addon
Adds a working drive-thru lane to BurgerShot. Speaker box ordering from the driver's seat, a pickup window, a cook serve point, price surcharge, and auto-void.
What it is
The Drive-Thru Addon bolts a real drive-thru lane onto BurgerShot | The Complete Restaurant Job. A customer pulls up to the speaker in a car, orders without leaving the driver's seat, drives round to the window, and pays and collects there. The kitchen sees the ticket in the same tablet queue as walk-ins, flagged with a car icon.
It is a separate resource that plugs into the base script's public exports. It does not patch or replace anything in the base.
From scripts.aczone.xyz.
Requires the base script
This addon does nothing on its own. You need BurgerShot | The Complete Restaurant Job v1.0 or newer installed and running first.
Features
- Order from the driver's seat. The speaker prompt only appears when you are actually driving. It reuses the base menu, so there is no second UI to learn or restyle.
- Pickup window. Drive round, press E, and the base payment dialog opens with the same cash, bank, and tip options.
- Cook serve point. A separate kitchen-side spot where the cook hands finished items to the drive-thru queue, so counter and lane orders do not get mixed up.
- Drive-thru surcharge. A configurable percentage markup over walk-in prices, defaulting to +10%.
- Auto-void. An order cancels itself if the customer disconnects, or drives more than 200m away and stays away for 30 seconds.
- First come, first served. No extra queue UI. Drive-thru tickets appear in the normal tablet queue with a car badge.
- Visual markers. A yellow ground circle and floating prop at the speaker, a red circle at the window when your order is ready, and a green circle at the cook's serve point.
- Horn suppressed. The horn control is disabled while a prompt is up, so pressing E at the speaker does not blast the horn.
How the flow works
- The customer drives to the speaker. The prompt appears only if they are in the driver's seat and have no open drive-thru order.
- They press E, the base menu opens on the
drive_thruchannel, they build a cart and confirm. - The addon calls the base
CreateOrderexport with the channel and the surcharge. The base creates the order and the kitchen sees it with a car badge. - A cook accepts the ticket in the tablet and makes the items at the normal stations, exactly like a walk-in.
- The cook goes to the addon's serve point and clicks Serve to Window. The addon calls
ServeItemsForChanneland the order goes READY. - The customer is told to drive up. At the window, E opens the base payment dialog.
- They pay, the items land in their inventory, the society gets the subtotal, and the cook gets the tip.
Meanwhile the server polls the customer's position every 10 seconds. Leave the area for too long, or disconnect, and the order is voided.
Quick start
- Drop
ac_burgershot_drivethruinto your resources next toAC_Burgershot. - Add
ensure ac_burgershot_drivethrutoserver.cfg, afterensure AC_Burgershot. - Adjust the coords in
config/config.luaif you do not use the Vespucci BurgerShot MLO. - Restart.
Detail on Installation.
What it is built on
Everything the addon does goes through the base script's public export surface, which is kept stable across base v1.x:
exports['AC_Burgershot']:CreateOrder({ customerSrc, items, channel = 'drive_thru', surchargePct })
exports['AC_Burgershot']:OpenPaymentDialog(customerSrc, orderId)
exports['AC_Burgershot']:ServeItemsForChannel(cookSrc, 'drive_thru')
exports['AC_Burgershot']:VoidOrder(orderId, reason, actorSrc)
exports['AC_Burgershot']:GetOrder(orderId)
AddEventHandler('AC_Burgershot:OrderStateChanged', function(orderId, newState, oldState, row) end)That makes it a working reference for anyone writing their own addon against the base script.
