luckyscripts.DOCUMENTATION
LuckyScripts / Business ManagementFIVEM FIELD GUIDE

Installation & database

Get the resource running, import the schema, and prepare your first restaurant.

Before your first shift
Work through the setup as you read.0 / 6

Place the Resource

resources/
└── [LuckyScripts]/
    └── lcky-restaurant_management/

Import the Database

Execute sql/schema.sql in your MySQL database. This creates:

  • lcky_restaurants — Restaurant master table
  • lcky_menu_items — Menu items per restaurant
  • lcky_recipes — Dynamic recipes
  • lcky_recipe_ingredients — Recipe ingredient mapping
  • lcky_interaction_points — Stored interaction points
  • lcky_orders_log — Completed/cancelled order history
  • lcky_discounts — Time-limited discount records

Register Inventory Items

Add all required items to your ox_inventory items configuration. Use the inventory item definitions supplied with your resource package. The source guide refers to an inventoryitems.lua file; check your download for the definitions that match your release.

Add the Resource to Your Server Config

server.cfg
ensure ox_lib
ensure oxmysql
ensure ox_inventory
ensure ox_target
ensure lcky-restaurant_management

Add ACE Permission (Admin)

server.cfg
add_ace group.admin command.restaurantadmin allow

Create Restaurants In-Game

Use the /restaurantadmin command to open the admin panel and register your restaurants.

Database Setup

The sql/schema.sql file creates all necessary tables with proper indexing and foreign key relationships. All tables use InnoDB with utf8mb4 character set.

Key Tables

TablePurpose
lcky_restaurantsRestaurant definitions (job, name, center coords, radius, settings JSON, open/close times)
lcky_menu_itemsPer-restaurant menu items (label, price, category, base item, recipe link)
lcky_recipesDynamic recipes (assembly station, output item, created by)
lcky_recipe_ingredientsRecipe ingredients with amounts and sort order
lcky_interaction_pointsInteraction point coordinates and types
lcky_orders_logCompleted/cancelled order log with payment details, tips, discounts
lcky_discountsTime-limited discounts with type, percentage, targets, start/end times

LuckyScripts Business Management · Match configuration examples to your downloaded release.
Need a hand? Read the support guide ↗

On this page