aura_foodtruck

Aura Food Truck Script

A comprehensive food truck scri[t that utilizes Aura Bridge for multi-framework support, supporting multiple inventory systems, target systems, and frameworks. Features cooking functionality, storage management, and consumable items with a modern & clean UI.

Features

🚚 Framework Support via Aura Bridge

  • ESX - Legacy ESX framework compatibility

  • QBCore - Compatibility with QBCore framework

  • QBox - Compatibility with QBox framework

🎯 Target Systems via Aura Bridge

  • qb-target - QBCore target system

  • ox_target - OX target system

📦 Inventory Systems via Aura Bridge

  • qb-inventory - QBCore inventory system

  • ox_inventory - OX inventory system

  • origen_inventory - Origen inventory system

  • tgiann-inventory - TGiann inventory system

  • qs-inventory - QS inventory system

🍳 Cooking System

  • Interactive cooking interface

  • Recipe-based cooking with ingredient validation

  • Multiple food truck themes with unique recipes

  • Cooking time simulation with notifications

🏪 Storage Management

  • Tray Stash - Public access for customer interactions

  • Storage Stash - Job-restricted storage for employees

  • Separate inventory slots and weight limits

  • Unique stash identification per vehicle

🍔 Consumable Items

  • Hunger and thirst restoration consumables

  • Support for food, drinks, and alcoholic beverages

  • Configurable restoration values

🎨 Modern UI

  • Built with React and TypeScript

  • Tailwind CSS for responsive design

  • Theme-based styling for different food trucks

  • Cooking progress indicators

🔧 Advanced Configuration

  • Per-vehicle configuration

  • Customizable recipes and ingredients

  • Flexible target positioning

  • Debug logging system

Installation

Prerequisites

Step-by-Step Installation

  1. Download and Install Dependencies

  2. Download the Resource

  3. Add to server.cfg

  4. Configure Settings Edit config.lua to match your server's setup:

  5. Framework additions:

QBCore

  1. Add the following jobs to your qb-core/shared/jobs.lua:

  2. Add the following jobs to your qb-core/shared/items.lua:

  1. Restart Server Restart your FiveM server to load the resource.

  2. Add Inventory images from 'images' folder to your_inventorysystem/images/

ESX

If using esx framework:

  1. Run the following sql in your database manager.

  1. Run the following sql in your database manager.

  1. Restart Server Restart your FiveM server to load the resource.

  2. Add Inventory images from 'images' folder to your_inventorysystem/images/

Configuration

Supported Food Trucks

The script supports the following food truck models:

  • sbww - Wig Wam (wigwam job)

  • sbsb - Snr Buns (snrbuns job)

  • sbcm - Bean Machine (beanmachine job)

  • sbbh - Burgershot (burgershot job)

  • sbcb - Cluckin' Bell (cluckinbell job)

  • sbgj - Greasy Joes (greasyjoes job)

  • sbpt - Pizzeria (pizzeria job)

  • sbtf - Taco Farmer (tacofarmer job)

Vehicle Configuration Structure

Each food truck has the following configuration:

Consumable Items Configuration

Configure hunger/thirst restoration values:

Usage

For Players

  1. Approach a Food Truck - Walk up to any configured food truck vehicle

  2. Open Tray - Use the tray target to access customer-facing inventory

  3. Cook Food (Employees Only) - Use the cooking target to open the cooking interface

  4. Access Storage (Employees Only) - Use the storage target for bulk inventory management

  5. Consume Items - Eat/drink purchased items for hunger/thirst restoration

For Server Owners

  • Add New Recipes - Extend the recipes array in vehicle configurations

  • Add New Trucks - Expand the truckmodels array in config

Troubleshooting

Common Issues

  1. Targets not appearing

    • Ensure the vehicle model is correctly configured in Config.FoodTrucks

    • Check that the vehicle is spawned and networked

    • Verify target system dependencies are installed

  2. Inventory not opening

    • Check inventory system configuration

    • Ensure aura_bridge is properly configured

  3. Job restrictions not working

    • Ensure jobs are added to your framework's job configuration

    • Check player job

    • Verify job names match configuration

Performance Considerations

  • Vehicle hashes are pre-calculated on resource start for optimal performance

  • Target zones are created only for active vehicles

  • Inventory stashes are cleaned up on resource stop

  • Debug logging is disabled in production by default

Support

For support and questions:

Last updated