> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/multi-framework/ak47_business.md).

# ak47\_business

The ultimate business & restaurant management experience for FiveM servers.

{% embed url="<https://youtu.be/19weGHIJeGY>" %}

This script completely revamps commercial enterprises with a sleek, interactive tablet UI, a multi-step workstation crafting system, shopping cart checkout, and employee/boss management. Powered by `ak47_lib`, it features multi-framework support, 13 pre-configured businesses, customizable recipes, society funds, and dynamic auto-stocking.

***

### 🔥 Key Features

Designed to improve roleplay immersion and economy balancing:

#### 📱 Modern Interactive Tablet UI

* **Three-in-One Interface:** Sleek tablet interface featuring dedicated modules for **Storefront**, **Workstation**, and **Management**.
* **Responsive Shopping Cart:** Customers can browse paginated categories, search products in real-time, adjust quantities, and checkout using either **Cash** or **Card**.
* **Auto Image Fetching:** Automatically displays inventory item icons directly from your inventory resource via `ak47_lib`.

#### 🍔 13 Pre-Configured Businesses

* **Turnkey Setup:** Includes 13 ready-to-use popular and lore-friendly food and retail locations out of the box:
  * Burgershot, Cluck-N-Bites, Cluckin Bell, McDoodies, Donut Spot, Pizza Crust, Pearls Seafood, Taco, Chicken Wings, Pop Chicken, Aldentes, Craftbar, and Icy Vault (Jewelry & Chains).
* **Hundreds of Custom Items:** Pre-configured item definitions, icons, and SQL data for ESX, QBCore, Qbox, and ox\_inventory.

#### 🍳 Multi-Step Interactive Workstation Crafting

* **Realistic Cooking & Crafting:** Employees don't just stand still; recipes can require multiple coordinate stages, timed delays, animations, and custom progress labels.
* **Ingredient Verification & Durability:** Full server-side validation of required materials, consumable removal, and chance-based tool/ingredient damage.

#### 📦 Dynamic Inventory & Management Console

* **Live Stock Control:** Authorized employees can deposit (IN) or withdraw (OUT) items directly between their personal inventory and the shop catalog.
* **Real-time Price Adjustment:** Set unit prices on the fly without server restarts, constrained by employee rank permissions.
* **Automated Stock Regeneration:** Configurable `autoStock` mechanism that gradually replenishes shop items over time, keeping businesses operational even when employees are offline.
* **Storage Supply Orders:** Employees can order raw ingredients from the business storage, charging costs directly to the society bank account.

#### 🥤 Immersive Consumables & Stress Mechanics

* **Multi-Stage Eating & Drinking:** Custom eating and drinking sequences with prop attachments, unboxing animations for family combo meals, and progress bars.
* **Status Integration:** Seamlessly handles hunger, thirst, and stress relief for both ESX (`esx_status`) and QBCore/QBX metadata.

#### 🛠️ Technical Excellence & Security

* **Multi-Framework Support:** Native compatibility with ESX, QBCore, and Qbox (`qbx_core`).
* **Society & Boss Menus:** Integrates out of the box with `qb-management`, `qbx_management`, and `esx_society`.
* **Administrative Commands:** Server admins can manage stores on the fly with `/refill`, `/setprice`, `/refill-item`, and `/setprice-item` commands protected by Ace, Group, or License permissions.
* **Exploit Protection:** Server-authoritative price verification, transaction validations, and session-locked crafting checks.

***

### 💻 Framework:

* ESX, QB, QBX

***

### ⚙️ Dependencies:

* ak47\_lib: <https://github.com/MenanAk47/ak47_lib/releases/latest>

***

### ⚙️ How To Install:

* Download ak47\_business from your cfx portal.
* Add the script in your resources folder.
* Add items based on your framework instruction.
* Add item images into inventory.
* Start the script in your server.cfg below framework files.
* Make sure you have all dependencies.
* Restart the server.

***

### 🔗 Links & Support:

* **📖 Documentation:** <https://docs.menanak47.com/multi-framework/ak47_business>
* **🛒 Buy Now (Tebex):** <https://menanak47.tebex.io/package/6697314>
* **💬 Discord Support:** <https://discord.gg/menanak47>

***

### 📝 Note:

* We don't support custom framework. Make sure you are using official framework update.
* Renaming the script is not allowed. It may break the functionalities.
* MLO's are not included with the script.
* Don't upload the script with FileZilla, Use Winscp if you are using FTP for file uploading.
